Dear HomeSeer Experts,
I would like to send with my HomeSeer Zee a simple HTTP command to another device. Goal is to turn a virtual device on / off on another box.
If I use the web browser the successful commands are:
http://192.168.1.13/api/callAction?deviceID=34&name=turnOn
http://192.168.1.13/api/callAction?deviceID=34&name=turnOff
The web browser will ask me for login (admin) and password (admin).
How can I call the same URL with the admin:admin authentication from a HomeSeer script command?
&hs.GetURL("192.168.1.13/api/callAction?deviceID=34&name=turnOff",TRUE,80) did not do anything.
And &hs.GetURL("http://admin:admin@192.168.1.13/api/callAction?deviceID=34&name=turnOff",TRUE,80) did not work either.
Any advice?
Would be great if you could help.
Best regards,
Alex
I would like to send with my HomeSeer Zee a simple HTTP command to another device. Goal is to turn a virtual device on / off on another box.
If I use the web browser the successful commands are:
http://192.168.1.13/api/callAction?deviceID=34&name=turnOn
http://192.168.1.13/api/callAction?deviceID=34&name=turnOff
The web browser will ask me for login (admin) and password (admin).
How can I call the same URL with the admin:admin authentication from a HomeSeer script command?
&hs.GetURL("192.168.1.13/api/callAction?deviceID=34&name=turnOff",TRUE,80) did not do anything.
And &hs.GetURL("http://admin:admin@192.168.1.13/api/callAction?deviceID=34&name=turnOff",TRUE,80) did not work either.
Any advice?
Would be great if you could help.
Best regards,
Alex
Comment