I’ve created a lightgroup in the gui.
Checking the state in the Template editor like this:
{{states('light.spotlights_eingang')}}
The result is: 'on'
But when using
{{ expand(states.light) | selectattr('state', 'eq', 'on') |
map(attribute='entity_id') | list
}}
the entity light.spotlights_eingang
(in fact all lightgroup entities) are not in the list.
What`s the reason for that?
Thank you in advance
Btw. In Template Editor on the very right side, it is stated that the whole domain light (including the entity light.spotlights_eingang
) is being watched for changes