@RGN01 wrote:
I’m tearing my hair out - there is an error in this automation condition and I can’t figure out what it is!
If I comment it out then the automation runs, as it does if I manually trigger it, but it does not run the actions when this is uncommented.
The intent is to only run the actions once a minute.
condition: # only notify once every 1 minutes at most condition: template value_template: “{{ ( as_timestamp(now()) - as_timestamp(state_attr('automation.alarm_shed','last_triggered')) |int(0) ) > 60 }}"
It also seems correct in the template editor in Developer Tools, resolving to True (or False if it had triggered in the last minute).
It is probably something simple that I’m looking over so any help gratefully received. Thanks.
Posts: 4
Participants: 2