Attempting a house lights up solution
This commit is contained in:
parent
530626523c
commit
9e73a9180d
|
@ -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:
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue