Page 1 of 1

Toggle switch with Python

Posted: Sunday 23 October 2022 8:38
by willem9136
How can I toggle a switch in Domoticz by using a Python script and maybe sending a JSON string?
A switch also has an IDX number.
Maybe there is a JSON string available to talk to the switch just like we do with things like thermometers etc.

Re: Toggle switch with Python

Posted: Sunday 23 October 2022 15:23
by willem9136
Problem solved by using a JSON string to turn on and off the switch.