2015-08-07, 16:41
I'm trying for day's now to figure out how to send a http command from within home_automation.py
I'm using a http command to execute an device in homeseer: http://[myipadres]/HomeSeer_REST_API.aspx?function=setdevicebyid¶m1=309¶m2=ON
if trigger == "Script Start" and ha_settings[ "ha_script_start" ]:
# place code below this line
http://[myipadres]//HomeSeer_REST_API.aspx?function=setdevicebyid¶m1=309¶m2=ON
myipadres is my local ipadres from Homeseer so no need for username and password
when I enter this url in my browser the device will switch on
is it not possible to fire an url command from within the home_automation.py script?
Any help is very welcome!
I'm using a http command to execute an device in homeseer: http://[myipadres]/HomeSeer_REST_API.aspx?function=setdevicebyid¶m1=309¶m2=ON
if trigger == "Script Start" and ha_settings[ "ha_script_start" ]:
# place code below this line
http://[myipadres]//HomeSeer_REST_API.aspx?function=setdevicebyid¶m1=309¶m2=ON
myipadres is my local ipadres from Homeseer so no need for username and password
when I enter this url in my browser the device will switch on
is it not possible to fire an url command from within the home_automation.py script?
Any help is very welcome!