Been busy the last week with getting home-assistant to run and so far so good. However I want to implement a template for an alert name, this should be possible according to documentation:
alert:
garage_door:
name: Garage has been open for {{ relative_time(states.binary_sensor.garage.last_changed) }}
done_message: Garage is closed
entity_id: binary_sensor.garage
state: 'on'
repeat:
- 30
- 60
- 120
can_acknowledge: true
skip_first: true
notifiers:
- ryans_phone
Having said that however, this doesn’t work for me and I get the literal string. Looking through the sourcecode the name field is marked as string and not template. So…is it a bug in my code (exact copy of the example code for name), in the documentation or in the source?
The description of the options is correct (message and title support templates) but the second last example is incorrect. As looking at the component source the name definitely does not support this: