2014-11-04, 08:12
In userdata/addon_data/script.cinema.experience/ha_scripts/home_automation.py I've put the following code
This works for "Feature Presentation Intro", but not when the moving ends (so "Script End"). It didn't work for the trigger "Pause", but I've made a typo, so I have to retest it.
Of course, the correct code will depend on the way you have automated your lights. I have a KNX system at home and created some PHP scripts that work on top of eibd and linknx.
PHP Code:
# Feature Presentation Intro
elif trigger == "Feature Presentation Intro" and ha_settings[ "ha_fpv_intro" ]:
# place code below this line
urllib2.urlopen("http://192.168.1.134/include/process.php?gad=startMovie&action=0")
pass
elif trigger == "Script End" and ha_settings[ "ha_script_end" ]:
# place code below this line
urllib2.urlopen("http://192.168.1.134/include/process.php?gad=stopMovie&action=1")
pass
This works for "Feature Presentation Intro", but not when the moving ends (so "Script End"). It didn't work for the trigger "Pause", but I've made a typo, so I have to retest it.
Of course, the correct code will depend on the way you have automated your lights. I have a KNX system at home and created some PHP scripts that work on top of eibd and linknx.