Hello, I would like to be notified when sensor-triggered automation ran before 10 hours or more. Can you please advise condition for automation, which is true only if previous sensor event was at least 10 hours or more ago? Thank you very much!
This Template Trigger will trigger when the value of the sensor’s last_changed
is 10 hours ago.
alias: example
trigger:
- platform: template
value_template: '{{ now() - states.sensor.your_sensor.last_changed >= timedelta(hours=10) }}'
condition: []
action:
... etc ...