From 5f344c90fa5f659ab6f765378327cbcb0230fec4 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Tue, 27 Mar 2018 21:03:37 -0400 Subject: [PATCH] Added automation for vacation mode --- automation/transit.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/automation/transit.yaml b/automation/transit.yaml index 843e0f0..df2096f 100755 --- a/automation/transit.yaml +++ b/automation/transit.yaml @@ -17,8 +17,6 @@ - service: input_boolean.turn_on entity_id: input_boolean.jeff_heading_home - - ##### Jeff Traffic Alerts - alias: Enable Jeff Bad Traffic Home trigger: @@ -47,4 +45,23 @@ state: 'on' action: - service: input_boolean.turn_off - entity_id: input_boolean.jeff_traffic_alert_home \ No newline at end of file + entity_id: input_boolean.jeff_traffic_alert_home + +- alias: Enable Vacation Mode + trigger: + - platform: numeric_state + entity_id: sensor.jeff_ett_home + above: 180 + - platform: numeric_state + entity_id: sensor.kat_ett_home + above: 180 + condition: + - condition: numeric_state + entity_id: sensor.jeff_ett_home + above: 180 + - condition: numeric_state + entity_id: sensor.kat_ett_home + above: 180 + action: + - service: input_boolean.turn_on + entity_id: input_boolean.vacation_mode