Subflow with dynamic entity_id in curent_state

hi, i’m try to create a subflow with a curent_state where i use:

msg.payload.data.entity_id

for the entity_id.

This is working fine if i only have 1 entity_id. but fails if I try to send more id’s.

"Entity could not be found in cache for entity_id: light.light_2244189, light.light_217693, light.light_2254941"

As far as I know, the current state node can only check a single entity_id

exactly my experience :slight_smile: so what is the solution ?

Use a current state node for each entity id?

I do not see this as a dynamic solution… hope to find a better one.

Let us know if you find a better way :slight_smile: