# \[Community Survey\] Homey v5 ZigBee Health check and statistics collection (HomeyScript)

**URL:** <https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231>\
**Category:** Questions & Help\
**Tags:** zigbee\
**Created:** [March 7, 2021, 3:22pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231 "2021-03-07T15:22:23Z")\
**Posts on this page:** 1\
**Showing post:** 84

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [March 28, 2021, 6:56pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/84 "2021-03-28T18:56:03Z")

</div>

> [@Sharkys](#):
>
> However, as you can see, it was marked as “Enddevice” with “Receive when idle” checked - so maybe "IF DeviceType=EndDevice AND ReceiveWhenIdle=1 THEN " … you know what I mean…

No, sorry I don’t know what…

But it is possible, see here from the API Playground:

> [@Developer Web API Playground - Notes of geeky oneliners](https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392/1):
>
> ```auto
> // Some ZigBee Queries Online devices:
> // online receiveWhenIdle name modelId type 
> Homey.zigBee.getState().then(f => Object.values(f.nodes).reduce((r,b)=> Object.assign(r, b.online ? {[b.name]:b.type} : ''), {}) );
> // receiveWhenIdle => name 
> Homey.zigBee.getState().then(f => Object.values(f.nodes).reduce((r,b)=> Object.assign(r, b.receiveWhenIdle ? {[b.name]:b.type} : ''), {}) );
> // receiveWhenIdle => modelId
> Homey.zigBee.getState().then(f => Object.values(f.nodes).reduce((r,b)=> Object.assign(r, b.receiveWhenIdle ? {[b.modelId]:b.type} : ''), {}) );
> 
> ```

And I See I also have two:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/7/87c9c7a2c5dcfb2af5ba87fda2cac0a76dc0cf94.png)

---

_[View the full topic](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231)._
