#Show all entities of a type, if in a room
1 messages · Page 1 of 1 (latest)
You can try this.
|selectattr('entity_id', 'search', 'automation')
|sort(attribute="entity_id")
|map(attribute='entity_id')
|list
|join('\n')
}}```
you can change with script,...
The auto-entities card should be able to do what you want as well: https://github.com/thomasloven/lovelace-auto-entities
You can also script this if you need by using the above scripting example and adding areas to it (if you use areas):
selectattr('entity_id', 'in', area_entities('Bedroom'))
Thanks for taking the time to reply, all. I'll look in to all of the above. Appreciate the responses.
This worked well, thank you.