diff --git a/automation/tv_time_off.yaml b/automation/tv_time_off.yaml new file mode 100755 index 00000000..e5d85b7d --- /dev/null +++ b/automation/tv_time_off.yaml @@ -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 \ No newline at end of file