Hi,
For some reason, the following automation is never triggered. However, when I take out the time condition, I receive notifications. Does anyone know why the time condition is never met?
- alias: Commute delay evening - Jeroen
trigger:
platform: numeric_state
entity_id: sensor.home_to_work
above: 10
condition:
- condition: time
after: '17:45:00'
before: '18:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: switch.alert_delays__jeroen
state: 'on'
- condition: state
entity_id: device_tracker.jeroensiphone
state: 'not_home'
action:
service: notify.notify
data_template:
message: >
Commute delay of {{ trigger.to_state.state|round }} minutes, which is highter than usual.
target:
- +00000000000