Direct access to Domoticz from a Python3 script

Python and python framework

Moderator: leecollings

Post Reply
MMSoft
Posts: 14
Joined: Sunday 22 September 2019 8:20
Target OS: -
Domoticz version:
Contact:

Direct access to Domoticz from a Python3 script

Post 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.
User avatar
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

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
MMSoft
Posts: 14
Joined: Sunday 22 September 2019 8:20
Target OS: -
Domoticz version:
Contact:

Re: Direct access to Domoticz from a Python3 script

Post by MMSoft »

Thanks !!!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest