From 824fe8cce7e7607a56c3569278a45a89a2cd5bfa Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Fri, 9 Mar 2018 13:05:18 -0500 Subject: [PATCH] Adding bad traffic home alerts --- alerts/jeff_bad_traffic_home.yaml | 2 +- automation/transit.yaml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/alerts/jeff_bad_traffic_home.yaml b/alerts/jeff_bad_traffic_home.yaml index 5eb471d..2ccc3fe 100644 --- a/alerts/jeff_bad_traffic_home.yaml +++ b/alerts/jeff_bad_traffic_home.yaml @@ -1,7 +1,7 @@ jeff_bad_traffic_home: name: Traffic Bad! Currently {{states.sensor.jeff_ett_home.attributes.duration_in_traffic}} mins home! done_message: Canceling Traffic Alert - entity_id: jeff_traffic_alert_home + entity_id: input_boolean.jeff_traffic_alert_home state: 'on' repeat: 10 can_acknowledge: True diff --git a/automation/transit.yaml b/automation/transit.yaml index d2b4641..bff4ec9 100644 --- a/automation/transit.yaml +++ b/automation/transit.yaml @@ -29,7 +29,6 @@ - condition: state entity_id: sensor.jeff_location state: 'Summit' - condition: - condition: state entity_id: input_boolean.jeff_traffic_alerts state: 'on' @@ -42,7 +41,7 @@ - platform: mumeric-state entity_id: sensor.jeff_ett_home below: 40 - condition: + condition: - condition: state entity_id: input_boolean.jeff_traffic_alert_home state: 'on'