Setting entity area via action or template?

I am looking for a way to assign an entity to an area through an action or template.

Context:
I’ve been using ESPresense and other means to localize people in my home and I would like to set the Area of person entities I know the location in my home of. But there doesn’t seem to be any way to set the area of an entity other than through the UI (not by service, not through customize.yaml – which doesn’t support templates anyway).

If there is a way to set/change the area of an entity through an automation or using a template, please point me the right direction.
If not, I wonder if this is something that the community and developers would consider useful?

The following custom integration, Spook, provides services to add devices and entities to Areas.

1 Like

I was not aware of this custom integration. That looks like a great option. Thanks!

1 Like