Hi all !
I was happy to read that an entity can now be assigned to an area.
Now, I’m creating automation and I would like to retrieve this information, the area, based on the entity_id (e.g. in a template).
Do you know a way to achieve this?
Thanks !
1 Like
That’s not possible yet as far as I can see.
1 Like
panache67
(Panache67)
3
That would be indeed quite a useful feature, especially in dynamic notification messages.
kongo09
(kongo09)
4
I would love that as well
Valem
5
A way to get the area has been introduced with HA 2021.9.0
At least in a template it’s possible now with this
{{ area_name('deadbeefdeadbeefdeadbeefdeadbeef') }} # 'Living Room'
see
see official HA documentation
5 Likes