Adding bad traffic home alerts

This commit is contained in:
Jeffrey Stone 2018-03-09 12:58:46 -05:00
parent 2ffd5ad8f0
commit d99d1e24fd
4 changed files with 51 additions and 1 deletions

View File

@ -0,0 +1,10 @@
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
state: 'on'
repeat: 10
can_acknowledge: True
skip_first: False
notifiers:
- jeff_ios

View File

@ -72,6 +72,8 @@
action:
- service: script.jeff_destination_na
- service: script.jeff_at_work_notification
- service: input_boolean.turn_off
entity_id: input_boolean.jeff_traffic_alert_home
- alias: Kat Arrives Home Notification
trigger:

View File

@ -17,3 +17,35 @@
- service: input_boolean.turn_on
entity_id: input_boolean.jeff_heading_home
##### Jeff Traffic Alerts
- alias: Enable Jeff Bad Traffic Home
trigger:
- platform: mumeric-state
entity_id: sensor.jeff_ett_home
above: 59
condition:
- condition: state
entity_id: sensor.jeff_location
state: 'Summit'
condition:
- condition: state
entity_id: input_boolean.jeff_traffic_alerts
state: 'on'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.jeff_traffic_alert_home
- alias: Disabling Jeff Bad Traffic Home
trigger:
- platform: mumeric-state
entity_id: sensor.jeff_ett_home
below: 40
condition:
- condition: state
entity_id: input_boolean.jeff_traffic_alert_home
state: 'on'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.jeff_traffic_alert_home

View File

@ -74,4 +74,10 @@ washer_running:
icon: mdi:speaker-wireless
skylar_dressed_alarm:
name: Skylar Dressed Alarm
icon: mdi:speaker-wireless
icon: mdi:speaker-wireless
jeff_traffic_alerts:
name: Jeff Traffic Alerts
icon: mdi:bell-plus
jeff_traffic_alert_home:
name: Jeff Traffic Alert Home
icon: mdi:traffic-light