From 5a0dd45d3b0283951540f34cdf51712977629b37 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Wed, 12 Oct 2016 17:22:09 +0000 Subject: [PATCH] Multiple COnditions - Hopefully! --- automation/tv_time.yaml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/automation/tv_time.yaml b/automation/tv_time.yaml index 33c7bd8b..51fff3f9 100755 --- a/automation/tv_time.yaml +++ b/automation/tv_time.yaml @@ -5,12 +5,22 @@ offset: '+00:30:00' - platform: event event_type: tv_time - - condition: - condition: state - entity_id: group.family - state: home - + - platform: state + entity_id: sensor.samsungtv + state: 'Online' + + condition: and + conditions: + - condition: state + entity_id: group.family + state: home + - condition: state + entity_id: sensor.samsungtv + state: online + - condition: state + entity_id: sun.sun + state: 'below_horizon' + action: service: scene.turn_on entity_id: scene.living_room_tv_time