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"
trigger:
- platform: state
entity_id: media_player.apple_tv
to: 'playing'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
- service: scene.turn_on
entity_id: scene.movie_time
# - alias: "Movie Started - Turn Off Lights"
# trigger:
# - platform: state
# entity_id: media_player.apple_tv
# to: 'playing'
# condition:
# - condition: state
# entity_id: sun.sun
# state: 'below_horizon'
# action:
# - service: scene.turn_on
# entity_id: scene.movie_time
- alias: "Movie Paused - Lights Dim"
trigger:
- platform: state
entity_id: media_player.apple_tv
from: 'playing'
to: 'paused'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
- service: scene.turn_on
entity_id: scene.livingroom_dim
# - alias: "Movie Paused - Lights Dim"
# trigger:
# - platform: state
# entity_id: media_player.apple_tv
# from: 'playing'
# to: 'paused'
# condition:
# - condition: state
# entity_id: sun.sun
# state: 'below_horizon'
# action:
# - service: scene.turn_on
# entity_id: scene.livingroom_dim
- alias: "Movie Stopped - Lights On"
trigger:
- platform: state
entity_id: media_player.apple_tv
from: 'playing'
to: 'idle'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
- service: script.house_lights_up
# - alias: "Movie Stopped - Lights On"
# trigger:
# - platform: state
# entity_id: media_player.apple_tv
# from: 'playing'
# to: 'idle'
# condition:
# - condition: state
# entity_id: sun.sun
# state: 'below_horizon'
# action:
# - service: script.house_lights_up
# - alias: "Movie Resumed - Lights Off"