Attempting a house lights up solution

This commit is contained in:
Jeffrey Stone 2018-03-09 08:36:43 -05:00
parent 530626523c
commit 9e73a9180d
2 changed files with 22 additions and 13 deletions

View File

@ -31,19 +31,19 @@
- 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: scene.turn_on
# entity_id: scene.livingroom_normal
- 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: sript.house_lights_up
# - alias: "Movie Resumed - Lights Off"
# trigger:

View File

@ -0,0 +1,9 @@
house_lights_up:
sequence:
- delay:
seconds: 3
- condition: state
entity_id: media_player.apple_tv
state: "idle"
- service: scene.turn_on
entity_id: scene.livingroom_normal