Page 1 of 1

how to sent a switch command with html

Posted: Mon Dec 12, 2016 11:45 pm
by Harry
i try to sent a switch command to the source webserver.
but i am not sure it's the richt one.

i use the command

http://192.168.0.xxx:8080/cc.html?applid=41&cmd=off
the applid is the id i found in the database en match the device i want to switch off

i get the 404 error response. :(

Re: how to sent a switch command with html

Posted: Tue Dec 13, 2016 11:38 pm
by Harry
solved
i used the wrong link
this is the one to use

for off
http://192.168.0.xxx:8080/api/actions.h ... hoff&id=33
for on
http://192.168.0.xxx:8080/api/actions.h ... chon&id=33

for the list of device id's u can use this

http://192.168.0.xxx:8080/api/data.xml?type=appliances

Re: how to sent a switch command with html

Posted: Wed Dec 14, 2016 7:19 pm
by Edwin
Nice , thanks
I can use this too
Super :-)

Re: how to sent a switch command with html

Posted: Mon Mar 19, 2018 10:54 pm
by Art
Using this for voice control of Plugwise, sending commands from Amazon Echo through HAbridge to Source. It's reasonably stable, so I'm happy that I can still use my plugs. They are slowly turning obsolete after all...