[HSTouch] GET url on button press ON / OFF

Alles m.b.t. HSTtouch (DUTCH forum)

Moderators: TANE, Ruud

[HSTouch] GET url on button press ON / OFF

Postby raymonvdm » Tue Feb 09, 2016 9:01 pm

I would like to open an URL to switch a device from on to off / off to on

http://user:password@xx.xx.xx.xx/dev/ir_ctrl.cgi?ir=0

It does not need to open a webinterface but just perform the get command
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
 
Posts: 1153
Joined: December 2011

Re: [HSTouch] GET url on button press ON / OFF

Postby raymonvdm » Thu Feb 11, 2016 8:09 am

I created an event with the following

Code: Select all

IF   Camera Infrarood changes and becomes On
Then   Execute the command: &hs.GetURL ("http://username:password@ipadress","/dev/ir_ctrl.cgi?ir=1", TRUE, 80)



Camera Infrarood is a virtual devices used in HSTouch :-)
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
 
Posts: 1153
Joined: December 2011


Return to Homeseer HStouch Forum

Who is online

Users browsing this forum: No registered users and 1 guest