2024-06-06 01:53:27 +00:00
#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
#-------------------------------------------
# Waze Travel Time Sensor
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/1463
#-------------------------------------------
# Mag Safe Phone Holders - https://amzn.to/4bDBBJf
#-------------------------------------------
##############################################################################
### Automations - Warn us when there is traffic to/from work.
### There is also a Speech Macro with this.
##############################################################################
automation :
- alias : "Check on Traffic to Spectrum"
id : 7dcfc6aa-5abc-460b-b783-609748ed56d7
trigger :
- platform : numeric_state
entity_id : sensor.waze_travel_time
2024-06-06 02:18:09 +00:00
above : 34
2024-06-06 01:53:27 +00:00
condition :
- condition : or
conditions :
- condition : time
after : '08:00:00'
2024-08-07 16:00:12 +00:00
before : '20:30:00'
2024-06-06 01:53:27 +00:00
action :
- service : script.notify_engine
data :
value1 : 'There is traffic on the Spectrum Route'
2024-06-06 02:18:09 +00:00
value2 : "Reported Time is : {{ states.sensor.waze_travel_time.state }} minutes"
2024-06-06 01:53:27 +00:00
who : 'family'
- service : input_boolean.turn_on
entity_id : input_boolean.alert_mode
- service : script.speech_engine
data :
2024-06-11 12:54:22 +00:00
value1 : "Attention! Traffic on the Spectrum Route for Justins job. Estimated travel time right now is {{ states.sensor.waze_travel_time.state }} minutes. Beep beep!"