Node Red: Trigged for one member of the group

Hello,

i have a group of window sensors.
For example: all windows are opened - group has state - ON.
Now one window has closed, group stayes - ON, but one sensor of group has updated to OFF.
How can i get this update using group (please do not adwise me to list all the sensors in events:state node) - it does not matter to me which sensor, i need only to know, that it was update.

Thanks a lot!

You can’t - the state of the group didn’t change

1 Like

Thanks!
Very positive answer to me :smiley:
What could i do in this case, maybe not NR but make it direct in HA and then use it in NR?

PS
And what is the meaning of sensor groups if i can not use them? :disappointed_relieved:

If you don’t want to list all of your sensors you could use the get entities node :slight_smile:

I know it, thanks, i would do exacly this, but only when the sensor get trigged. As is understand with get entities i can not know if it was trigged or not - that is the main problem.

In this case, maybe you can first listen to Event: all with the filter on state_changed and then filter for binary sensors and trigger the get_entities

1 Like

Ohhh, great Idea! Have top Hey try this.
I thought about it yesterday, but i did not found information about available events in HA. Maybe you know where could i ger more info about it?

I just test it myself. Listen to all events and connect it to a debug node. There you can see all the correct event names.

I found docs on events https://www.home-assistant.io/docs/configuration/events/
But it do not help, as i understand, because it is the same as if i set trigger on every sensor (and the load will be less, that monitoring all the state changes). But i wanted to use groups for it, not every sensor.

Are you concerned about it using too many resources?
From my observations, these calls and event listeners barely add any overhead.
So I’d just go with what works.
The groups itself you cannot use, as the groups do not report the state changes of the individual entity to NodeRed.