From 62aa08ba753d6c2cc0cc0aaf82903cd08bf5c48e Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Tue, 18 Oct 2016 00:37:26 +0000 Subject: [PATCH] Turn off TV when I go to Bed --- automation/tv_time_off.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 automation/tv_time_off.yaml 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