Toggle switch with Python

Moderator: leecollings

Post Reply
willem9136
Posts: 53
Joined: Friday 11 December 2020 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands Paesens
Contact:

Toggle switch with Python

Post 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.
willem9136
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

Post by willem9136 »

Problem solved by using a JSON string to turn on and off the switch.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest