How to switch a Selector Switch from Python
Posted: Sunday 21 March 2021 14:51
I am pretty new to Python programming.
Right now I am trying to find out how to gracefully switch a selector switch from Python.
I can turn switches on and off using:
But switching a selector switch does not work.
In the meantime I solved it with a CURL command, but there must surely be a better way.
Right now I am trying to find out how to gracefully switch a selector switch from Python.
I can turn switches on and off using:
Code: Select all
import domoticz
import DomoticzEvents as DE
DE.Command("{name of the device", "on")
In the meantime I solved it with a CURL command, but there must surely be a better way.