Is it possible to read or control the status of a Switch in domoticz directly from a Python3 script (made outside of domoticz)?
Through Json I now read the Switch in domoticz and control it. This works via the network, but cannot immediately do so without internet because it is on the same Raspberry.
I know that I can also create a Python3 script in Domoticz, but that is not my intention.
Sorry for my bad English.
Direct access to Domoticz from a Python3 script
Moderator: leecollings
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Direct access to Domoticz from a Python3 script
Through Json can be done on the same system. Just enter the IP address of the server or localhost or 127.0.0.1 and the software is smart enough to stay on the same system.MMSoft wrote: ↑Friday 27 December 2019 18:38 Is it possible to read or control the status of a Switch in domoticz directly from a Python3 script (made outside of domoticz)?
Through Json I now read the Switch in domoticz and control it. This works via the network, but cannot immediately do so without internet because it is on the same Raspberry.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Who is online
Users browsing this forum: No registered users and 1 guest