Turning off theater automations temporarily

This commit is contained in:
Jeffrey Stone 2018-03-19 06:41:37 -04:00
parent f078d38968
commit f080bbf30b
1 changed files with 37 additions and 37 deletions

View File

@ -4,45 +4,45 @@
# #
############ ############
- alias: "Movie Started - Turn Off Lights" # - alias: "Movie Started - Turn Off Lights"
trigger: # trigger:
- platform: state # - platform: state
entity_id: media_player.apple_tv # entity_id: media_player.apple_tv
to: 'playing' # to: 'playing'
condition: # condition:
- condition: state # - condition: state
entity_id: sun.sun # entity_id: sun.sun
state: 'below_horizon' # state: 'below_horizon'
action: # action:
- service: scene.turn_on # - service: scene.turn_on
entity_id: scene.movie_time # entity_id: scene.movie_time
- alias: "Movie Paused - Lights Dim" # - alias: "Movie Paused - Lights Dim"
trigger: # trigger:
- platform: state # - platform: state
entity_id: media_player.apple_tv # entity_id: media_player.apple_tv
from: 'playing' # from: 'playing'
to: 'paused' # to: 'paused'
condition: # condition:
- condition: state # - condition: state
entity_id: sun.sun # entity_id: sun.sun
state: 'below_horizon' # state: 'below_horizon'
action: # action:
- service: scene.turn_on # - service: scene.turn_on
entity_id: scene.livingroom_dim # entity_id: scene.livingroom_dim
- alias: "Movie Stopped - Lights On" # - alias: "Movie Stopped - Lights On"
trigger: # trigger:
- platform: state # - platform: state
entity_id: media_player.apple_tv # entity_id: media_player.apple_tv
from: 'playing' # from: 'playing'
to: 'idle' # to: 'idle'
condition: # condition:
- condition: state # - condition: state
entity_id: sun.sun # entity_id: sun.sun
state: 'below_horizon' # state: 'below_horizon'
action: # action:
- service: script.house_lights_up # - service: script.house_lights_up
# - alias: "Movie Resumed - Lights Off" # - alias: "Movie Resumed - Lights Off"