How to retrieve area of an entity?

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

That would be indeed quite a useful feature, especially in dynamic notification messages.

I would love that as well

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 official HA documentation