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.
Toggle switch with Python
Moderator: leecollings
-
- Posts: 53
- Joined: Friday 11 December 2020 15:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands Paesens
- Contact:
-
- Posts: 53
- Joined: Friday 11 December 2020 15:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands Paesens
- Contact:
Re: Toggle switch with Python
Problem solved by using a JSON string to turn on and off the switch.
Who is online
Users browsing this forum: No registered users and 1 guest