Turn off TV when I go to Bed

This commit is contained in:
CCOSTAN 2016-10-18 00:37:26 +00:00
parent 1eeb3abbd5
commit 62aa08ba75

18
automation/tv_time_off.yaml Executable file
View File

@ -0,0 +1,18 @@
- alias: TV Time
trigger:
- platform: state
entity_id: sensor.samsungtv
state: offline
condition:
condition: and
conditions:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
service: light.turn_off
entity_id:
- group.living_room
- group.living_room_accents