How to use target's states or state attributes in Automation Action when having multiple targets

I made a script blueprint to make it easier to do this… though you do have to list the climate entities.

It’s possible to do something similar that is area-based. You would need to change the input and change the template in the for_each to retrieve all the climate entities in the area…

EDIT:

Here’s an Area-based version. Just be aware that it is only minimally tested:

It’s definitely possible to use a Target selector to allow you to get the entities from all the options available that way as well.

2 Likes