# Check multiple devices

**URL:** <https://community.gladysassistant.com/t/faire-un-check-de-plusieurs-devices/8022>\
**Category:** Configuration\
**Created:** [March 15, 2023, 12:13pm UTC](https://community.gladysassistant.com/t/faire-un-check-de-plusieurs-devices/8022 "2023-03-15T12:13:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [March 15, 2023, 12:13pm UTC](https://community.gladysassistant.com/t/faire-un-check-de-plusieurs-devices/8022/1 "2023-03-15T12:13:41Z")

</div>

Hi everyone 🙂

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?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [March 20, 2023, 3:42am UTC](https://community.gladysassistant.com/t/faire-un-check-de-plusieurs-devices/8022/2 "2023-03-20T03:42:49Z")

</div>

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

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…

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [March 20, 2023, 8:47am UTC](https://community.gladysassistant.com/t/faire-un-check-de-plusieurs-devices/8022/3 "2023-03-20T08:47:01Z")

</div>

Thanks Pierre-Gilles for your reply 🙂  
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
