Check multiple devices

Hi everyone :slight_smile:

I don’t know if my question even relates to Gladys since I don’t know whether it’s technically possible or not.

I use a SURVEILLANCE function at home that, once active, triggers an alarm if a contact sensor is triggered.
What I’d like is that at the moment I activate my SURVEILLANCE scene, Gladys (or Node-RED or something) does a quick check of my contact sensors to make sure they all respond properly (that none have dropped off the network / one doesn’t have dead batteries without my noticing / etc…) and if there’s a problem then I’m notified, via Telegram message or otherwise.

Basically it’s a kind of ping of my devices. I should add that they’re all managed by zigbee2mqtt.

Do you think this is feasible?

I think it’s possible, but it’s really a lot of tinkering in my opinion :stuck_out_tongue:

You’d need to write a bit of code in Node-RED that calls the Gladys API, loops over all devices, filters for door-opening devices, checks that the last state is less than X hours old, etc…

Thanks Pierre-Gilles for your reply :slight_smile:
In principle, even if it’s a lot of tinkering it doesn’t bother me, what would bother me is someone opening a door and I’m not even notified LOL

That said, my current skills don’t allow