Can I access Alert duration value?

I did a search and found this topic.

I put in:

    message: The garage door has been open for {{ relative_time(states.binary_sensor.garage_door_opened_closed.last_changed) }}

Does exactly what I wanted but this may not work for a more complicated alert trigger.

1 Like