Page 1 of 1

Direct access to Domoticz from a Python3 script

Posted: Friday 27 December 2019 18:38
by MMSoft
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.

Re: Direct access to Domoticz from a Python3 script

Posted: Friday 27 December 2019 20:37
by waaren
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.
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.

Re: Direct access to Domoticz from a Python3 script

Posted: Monday 30 December 2019 10:39
by MMSoft
Thanks !!!