I'm trying to figure out how to manage a pretty classic presence detection management.
I have multiple devices that can be detected near a light. If only one of them is close then I have to turn on the light but I don't have to turn it off until all the devices are far away.
I'm still new to node-red so I still have problem with the flow approach and I'm thinking about a simple boolean approach.
I just can check all devices status with an OR but I'm not sure it's a best practice.
Do you have any advice?