From dfbc8d3467194c1cae4c3aaa15ce152042b08145 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Sun, 9 Apr 2017 22:01:26 +0000 Subject: [PATCH] Closes #121 - Turn off TV when we are away if it's on. --- automation/away.yaml | 5 +---- script/interior_off.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/automation/away.yaml b/automation/away.yaml index 1fc59fda..031de155 100755 --- a/automation/away.yaml +++ b/automation/away.yaml @@ -4,15 +4,12 @@ - alias: 'Away Mode' trigger: - - platform: state - entity_id: binary_sensor.upstairs_away_mode - to: 'on' - platform: state entity_id: binary_sensor.downstairs_away_mode to: 'on' - platform: state entity_id: group.family - state: 'not_home' + state: 'not_home' condition: - condition: state diff --git a/script/interior_off.yaml b/script/interior_off.yaml index 1747ce89..3d5c5e52 100755 --- a/script/interior_off.yaml +++ b/script/interior_off.yaml @@ -8,9 +8,9 @@ interior_off: sequence: - service: light.turn_off - entity_id: + entity_id: - group.interior_lights - - - service: script.switch_turn_off_all - - \ No newline at end of file + - service: script.switch_turn_off_all + - service: media_player.turn_off + entity_id: + - media_player.living_room_tv