2014-02-28, 18:15
Hi, this is my first attempt at HA and python (but I'm a long time programmer) and I'm trying to achieve something similar to the above, but with Domoticz, not the Philips equipment.
There's no POST data with domoticz, instead I just have to call a URL with (using GET) like
This will turn on the light group I have selected (obviously, swapping On for Off would do the opposite).
However, I cannot for the life of me get this to work with the home_automation.py script and I've tried everything I can think of. For example, I've tried this:
but it doesn't work. I can see in the XBMC logs, XBMC running the home_automation.py script, but this just gets skipped straight over. I've also tried using a simple function, popping the code in there then calling that, but that failed too.
EDIT: Just to mention, I do have the correct home automation settings enabled in the CE settings dialog.
Can anyone point me in the right direction? I did try editing the Philips Hue stuff, but that didn't work either.
Thanks in advance
There's no POST data with domoticz, instead I just have to call a URL with (using GET) like
Code:
http://192.168.1.4:8080/json.htm?type=command¶m=switchscene&idx=1&switchcmd=On
This will turn on the light group I have selected (obviously, swapping On for Off would do the opposite).
However, I cannot for the life of me get this to work with the home_automation.py script and I've tried everything I can think of. For example, I've tried this:
Code:
...
# Movie
elif trigger == "Movie" and ha_settings[ "ha_movie" ]:
# place code below this line
os.system('curl "http://192.168.1.4:8080/json.htm?type=command¶m=switchscene&idx=1&switchcmd=On"')
# Feature Presentation Outro
elif trigger == "Feature Presentation Outro" and ha_settings[ "ha_fpv_outro" ]:
...
EDIT: Just to mention, I do have the correct home automation settings enabled in the CE settings dialog.
Can anyone point me in the right direction? I did try editing the Philips Hue stuff, but that didn't work either.
Thanks in advance