Notification based on group

How’s it going.

I have a group of my door sensors, and I am trying to send a notification to a google home device, and a push notification to my android devices when I arm my alarm panel and a door is open. I have the Node-Red flow being triggered when the alarm panel gets armed, and then it checks if the group is ‘on’ or ‘off’. I’m not sure what to call after this point. How do I create a function to check the status of each door in the group, and then send those open doors in a message?

Thank you for any assistance, someone can provide!

The group is not sending the state of its members as a message in NodeRed does it?

Im not sure if it does but that would be the easiest and option 1.
Option 2:
I was thinking you could use the get entities node and filter for your doors, however since these are binary sensors (State = ON/OFF) you probably would need to name them all in a similar fashion i.e. Door_1, Door_2 etc and then search for all entities with the name Door. But that would not take into account different groups…
Option 3:
This leaves us with simply doing a current state check on all of the doors you want to check and then once one of them is open send a notification with the name. If more of them are open you can either aggregate the names via a function node, or simply send multiple notifications.

Hope one of my 3 options works for you. In my alarm panel im actually currently employing option 3 for a similar use case.

No the group only sends a “on” for if one of the doors are open, or and “off” if all the doors are closed. In yaml I know you can call a for loop basically and check the statuses of the doors. I just don’t know how to do that in node red.

I’m not really sure how to do your option 2. I was looking into the get entities node, but I was having trouble figuring it out. And your option 3 was my last resort. I just had to figure there was a better way to do it, rather than hardcoding in each individual door.