#Show all entities of a type, if in a room

1 messages · Page 1 of 1 (latest)

rancid turtle
#

Trying to find the right card/code to dynamically show "all scenes in my office", or something similar. All Lights in the Kitchen, etc. If I create or delete scenes in my office, I'm hoping to find a card that will dynamically update.
Any tips would be appreciated.

hard timber
#

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,...
fervent mica
wary patrol
#

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'))
rancid turtle
#

Thanks for taking the time to reply, all. I'll look in to all of the above. Appreciate the responses.