Lights from deconz component missing in `hass.states.entity_ids('light')`

Hi,

I am a newbie here and trying to set up my first custom component scripts. I am stuck acquiring the entity_ids of all the lights.

Most of my lights use the deconz plattform. If I check group.all_lights in the web interface all the deconz lights show up. However when I use hass.states.entity_ids('light') or group.get_entities_ids(hass, 'group.all_lights') only the non-deconz lights are in the resulting list.

What am I doing wrong here? What further information would you need to help me.

Thanks

Johannes

With your custom component; when are you actually doing the check for the lights? Is it directly when it starts? Could it be that you do the check before deconz have populated the lights?

1 Like

Good point. It turns out that the lights appear if I ask for them again later in the loop. So yes, probably they have not been populated when I ask for them right on starup.

Thanks a lot.