Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.settings/
/.project
/.pydevproject
22 changes: 22 additions & 0 deletions resources/ha_scripts/home_automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,90 +75,112 @@ def activate_on( self, trigger = None ):
utils.log( " - [ home_automation.py ] - Trigger %s" % trigger, xbmc.LOGNOTICE )
# Script Start
if trigger == "Script Start" and ha_settings[ "ha_script_start" ]:
utils.broadcastUDP( "<b>CE_Automate<li>script_start</b>" )
# place code below this line
pass
# Trivia Intro
elif trigger == "Trivia Intro" and ha_settings[ "ha_trivia_intro" ]:
utils.broadcastUDP( "<b>CE_Automate<li>trivia_intro</b>" )
# place code below this line
pass
# Trivia
elif trigger == "Trivia" and ha_settings[ "ha_trivia_start" ]:
utils.broadcastUDP( "<b>CE_Automate<li>trivia_start</b>" )
# place code below this line
pass
# Trivia Outro
elif trigger == "Trivia Outro" and ha_settings[ "ha_trivia_outro" ]:
utils.broadcastUDP( "<b>CE_Automate<li>trivia_outro</b>" )
# place code below this line
pass
# Movie Theatre Intro
elif trigger == "Movie Theater Intro" and ha_settings[ "ha_mte_intro" ]:
utils.broadcastUDP( "<b>CE_Automate<li>movie_theatre_intro</b>" )
# place code below this line
pass
# Coming Attractions Intro
elif trigger == "Coming Attractions Intro" and ha_settings[ "ha_cav_intro" ]:
utils.broadcastUDP( "<b>CE_Automate<li>coming_attractions_intro</b>" )
# place code below this line
pass
# Trailer
elif trigger == "Movie Trailer" and ha_settings[ "ha_trailer_start" ]:
utils.broadcastUDP( "<b>CE_Automate<li>trailer</b>" )
# place code below this line
pass
# Coming Attractions Outro
elif trigger == "Coming Attractions Outro" and ha_settings[ "ha_cav_outro" ]:
utils.broadcastUDP( "<b>CE_Automate<li>coming_attractions_outro</b>" )
# place code below this line
pass
# Feature Presentation Intro
elif trigger == "Feature Presentation Intro" and ha_settings[ "ha_fpv_intro" ]:
utils.broadcastUDP( "<b>CE_Automate<li>feature_intro</b>" )
# place code below this line
pass
#3D Intro
elif trigger == "3D Intro" and ha_setting [ "ha_3d_intro" ]:
utils.broadcastUDP( "<b>CE_Automate<li>3d_intro</b>" )
# place code below this line
pass
#3D Trailers
elif trigger == "3D Movie Trailer" and ha_setting [ "ha_3d_trailer" ]:
utils.broadcastUDP( "<b>CE_Automate<li>3d_trailer</b>" )
# place code below this line
pass
#3D Outro
elif trigger == "3D Outro" and ha_setting [ "ha_3d_outro" ]:
utils.broadcastUDP( "<b>CE_Automate<li>3d_outro</b>" )
# place code below this line
pass
# MPAA Rating
elif trigger == "MPAA Rating" and ha_settings[ "ha_mpaa_rating" ]:
utils.broadcastUDP( "<b>CE_Automate<li>mpaa_rating</b>" )
# place code below this line
pass
# Countdown
elif trigger == "Countdown" and ha_settings[ "ha_countdown_video" ]:
utils.broadcastUDP( "<b>CE_Automate<li>countdown_video</b>" )
# place code below this line
pass
# Audio Format
elif trigger == "Audio Format" and ha_settings[ "ha_audio_format" ]:
utils.broadcastUDP( "<b>CE_Automate<li>audio_video</b>" )
# place code below this line
pass
# Movie
elif trigger == "Movie" and ha_settings[ "ha_movie" ]:
utils.broadcastUDP( "<b>CE_Automate<li>movie_start</b>" )
# place code below this line
pass
# Feature Presentation Outro
elif trigger == "Feature Presentation Outro" and ha_settings[ "ha_fpv_outro" ]:
utils.broadcastUDP( "<b>CE_Automate<li>feature_outro</b>" )
# place code below this line
pass
# Movie Theatre Intro
elif trigger == "Movie Theatre Outro" and ha_settings[ "ha_mte_outro" ]:
utils.broadcastUDP( "<b>CE_Automate<li>movie_theatre_outro</b>" )
# place code below this line
pass
# Intermission
elif trigger == "Intermission" and ha_settings[ "ha_intermission" ]:
utils.broadcastUDP( "<b>CE_Automate<li>intermission</b>" )
# place code below this line
pass
# Script End
elif trigger == "Script End" and ha_settings[ "ha_script_end" ]:
utils.broadcastUDP( "<b>CE_Automate<li>script_end</b>" )
# place code below this line
pass
# Paused
elif trigger == "Pause" and ha_settings[ "ha_paused" ]:
utils.broadcastUDP( "<b>CE_Automate<li>paused</b>" )
# place code below this line
pass
# Resumed
elif trigger == "Resume" and ha_settings[ "ha_resumed" ]:
utils.broadcastUDP( "<b>CE_Automate<li>resumed</b>" )
# place code below this line
pass
else:
Expand Down