Page 1 of 1
Change multiple switch state with json call
Posted: Tuesday 08 March 2016 15:23
by Slinkos
Hi all,
With this json call you can turn a switch off:
Code: Select all
/json.htm?type=command¶m=switchlight&idx=99&switchcmd=Off
My question: Is it possible to set 2 (or more) switches to "Off" within 1 json call?
Re: Change multiple switch state with json call
Posted: Tuesday 08 March 2016 17:13
by gizmocuz
Put them in a group or scene, and turn this on/off
Re: Change multiple switch state with json call
Posted: Tuesday 08 March 2016 23:20
by Slinkos
Yeah I could do that, or make a dummy switch with an event that triggers both. But I was just curious if it is possible at all.
Re: Change multiple switch state with json call
Posted: Sunday 18 September 2016 9:52
by flabrosse
I have a similar question. One of my devices (an ESP-12) regularly sends two pieces of information (temperature and voltage) to domoticz, both each time. I only just realised that often only one gets to domoticz. So I was wondering if I could merge the two in one JSON call.