Grouping and state_change

Hi there,

i am using several motion and state sensors for my alarm system which i implemented completely in node-red.
I want to do a rewrite and thought it would be a good idea to create a group of sensors in home assistant and just listen to state_changed of that group in node-red.
The problem is, that i do not want to trigger the alarm immediatley when the first sensor is triggered. Currently i am waiting for 3 sensors triggering in 120seconds before triggering the alarm (that part i want to leave in node-red). The group just outputs its “global” state change but not every single sensor change within the group.
In short: I want to have grouped items in home assistant which send every state change without having the need to filter them manually in node red.
any ideas appreciated

If u use a state change node.
Untick the output on state change
It will output on all changes.

I tried that. Unfortunately that doesnt seem to work on groups. It still outputs just the first change.
:pensive:

Sure its not as neat as i single node, but why dont you have a node for each ?

Because we are talking about 70 devices :sweat_smile:
I could use a few nodes with some kind of regex but that is not my intention.
Then i better keep it as it is right now.

How about a timed-counter node? Lets you specify how many triggers in a certain period of time

Yes, i am using that node already. But the problem here is that i do not get all the needed state_changes from the Homeassistant Group.

Oh I see so you are saying if one entity triggers the group and the group hasn’t had a chance to reset it won’t pick up another trigger because the original already set it to on?

Yes, exactly.