Toggle device by rest

Posted on
Tue Jul 18, 2017 3:40 pm
qcvictor offline
Posts: 43
Joined: Apr 23, 2015
Location: Quebec, Canada

Toggle device by rest

I'm looking for send request for turn on / turn off switches.
http://indigoIP:8176/devices/Office?toggle=1&_method=put
work great but I don't know what I send ! On or Off
Does a particular syntax for sending On or Off?
Also I call the device by the name "Office", If I rename the device I' will have to change also all the requests......, I try with ID without success, another way to do that whiteout device name ?

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests