Friendly name of the zone in a notification

I have an automation that sends notification if one of two phones changes the zone. However with {{ trigger.to_state.state }} I get an internal name of a zone. How to get a friendly name as defined in customize.yaml?

If not possible, do you how to define a map/array in the template to the translation on the fly?

This should work.


Nope, that’s the name of a device, not the state.