# How to check a device still online in the ZigBee network

**URL:** <https://community.homey.app/t/how-to-check-a-device-still-online-in-the-zigbee-network/7474>\
**Category:** Devices\
**Created:** [January 20, 2019, 10:59am UTC](https://community.homey.app/t/how-to-check-a-device-still-online-in-the-zigbee-network/7474 "2019-01-20T10:59:51Z")\
**Posts on this page:** 1\
**Showing post:** 32

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [January 23, 2023, 5:19pm UTC](https://community.homey.app/t/how-to-check-a-device-still-online-in-the-zigbee-network/7474/32 "2023-01-23T17:19:27Z")

</div>

Maybe you can do something with HomeyScript:

> [@A script to check sensor last update](https://community.homey.app/t/a-script-to-check-sensor-last-update/63142/9):
>
> There isn’t a per-device “last updated” field so it has to check every capability of each device, that’s why you get multiple logs per device. Right now, it will mark a device as “invalid” if one of the capabilities is older than 1 day, but I guess it makes more sense if it only invalidates a device is all of the capabilities are too old: const INVALIDATE\_AFTER = 86400; const invalidatedDevices = []; for (const device of Object.values(await Homey.devices.getDevices())) { if (! device.capabi…

---

_[View the full topic](https://community.homey.app/t/how-to-check-a-device-still-online-in-the-zigbee-network/7474)._
