Attempting a house lights up solution
This commit is contained in:
parent
530626523c
commit
9e73a9180d
|
@ -31,19 +31,19 @@
|
||||||
- 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: scene.turn_on
|
- service: sript.house_lights_up
|
||||||
# entity_id: scene.livingroom_normal
|
|
||||||
|
|
||||||
# - alias: "Movie Resumed - Lights Off"
|
# - alias: "Movie Resumed - Lights Off"
|
||||||
# trigger:
|
# 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