# \[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:** 20\
**Page:** 5

<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)

---

<div class="post-metadata">

**Author:** ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)\
**Post date:** [March 28, 2021, 7:37pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/85 "2021-03-28T19:37:07Z")

</div>

My Homey was affected by [CVE-2020-28952](https://community.homey.app/t/cve-2020-28952/45343/26).

I had added my first and only ZigBee (Aqara vibration) sensor with firmware v4, but am currently on 5.0.4.

A ZigBee reset indeed changed the network key to a much more random one (it also changed the channel from 11 to 19).

The scripts complains that I should add ZigBee routers, but I only have a single end-device that is directly coupled to my Homey (and about 5 meters away from it, on the same floor):

```auto
Please add more zigBee Routers to create a better mesh network

You only have 0 routers for 1 end-devices 

```

Can I safely ignore this warning with my setup?

(I actually have a lot more ZigBee devices; Hue bulbs and IKEA wall outlets, but those are connected to their bridges, not to the Homey directly)

---

<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, 7:41pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/86 "2021-03-28T19:41:59Z")

</div>

> [@prosumer](#):
>
> Can I safely ignore this warning with my setup?

Homey only knows of one ZigBee Network,  
if it works for you,  
it just test you have one router for every five end-device as advised by Athom.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [March 28, 2021, 7:42pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/87 "2021-03-28T19:42:31Z")

</div>

So you have EndDevice , which are battery powered, yet they have receiveWhenIdle flag ? I don’t know if that is alright or not but after I have removed and added again that particular device, now NONE of my battery operated ZigBee device has this flag… at least based on [Homey Developer](https://developer.athom.com/tools/zigbee)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 28, 2021, 11:34pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/88 "2021-03-28T23:34:37Z")

</div>

I have 4 aqara sensors @ Homey zigbee and works perfect without router/hop. Upstairs, down the hallway, the “back kitchen” 6 metres away from Homey with walls in between. Homey has free sight in the living room and sits 1.80m high.  
Not that I recommend an other setup as Athom advices, but just to show what Homey’s capable of.  
I will add a router though, when more end-devices appear 😉

---

<div class="post-metadata">

**Author:** ![rvdeijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rvdeijk/32/22542_2.png) [@rvdeijk](https://community.homey.app/u/rvdeijk)\
**Post date:** [March 29, 2021, 4:49am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/89 "2021-03-29T04:49:57Z")

</div>

> [@prosumer](#):
>
> it also changed the channel from 11 to 19

Hmm, why would Athom do that, anyone knows the reason? Is it is just random, a new default or can they scan how crowded a frequency is. My zigbee is very stable on Channel 11. I am however doubting to reset the zigbee network for this _CVE-2020-28952_ issue.

Did more people see the channel # change and if so, did you leave it like that or switched back to channel 11? According to this post it’s also the most popular (or default) channel:

> [@\[Community Survey\] Homey v5 ZigBee Health check and statistics collection (HomeyScript)](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/3):
>
> Situations after ~37 reports: Majority still on Channel 11,

My wifi is on Channel 11, so it won’t interfere with zigbee channel 11 or 19 anyway. But I do prefer as much separation as possible + my neighbor is on wifi channel 6.

 ![20210306_221451](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/a/fab4874efb55000f270b573fe9718df51231ca0b.jpeg)

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [March 29, 2021, 5:31am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/90 "2021-03-29T05:31:34Z")

</div>

> [@rvdeijk](#):
>
> Did more people see the channel # change and if so, did you leave it like that or switched back to channel 11? According to this post it’s also the most popular (or default) channel:

Yes, the channel of mine Homey changed automatically from 11 to 20 after Zigbee reset.  
Because the channel 20 is not optimal in mine environment (WLAN, other Zigbee gateways) I wanted to change it back to channel 11.  
I asked Athom if this would be possible without any problems, but they advised me not to do it. It could be that after changing the channel, the Zigbee devices no longer work properly and may have to be added again.  
So I did not make any change at Homey, but I changed the WiFi channel of my WLAN .router

---

<div class="post-metadata">

**Author:** ![Wesley\_Witjes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_witjes/32/16366_2.png) [@Wesley\_Witjes](https://community.homey.app/u/Wesley_Witjes)\
**Post date:** [March 29, 2021, 7:54am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/91 "2021-03-29T07:54:13Z")

</div>

reporting : 0,“00124b001b445366”,3,false,“Homey (Early 2019)”,“5.0.4”,0,13,0,2,“2.6.3”,30,8,22,2,8,8,false,"#",0,4,17,9 , $

---

<div class="post-metadata">

**Author:** ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)\
**Post date:** [March 29, 2021, 7:57am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/92 "2021-03-29T07:57:30Z")

</div>

Some time ago I changed my router setup to use WiFi channel 1.

I was not aware of the WiFi/ZigBee overlap… (thanks for the picture!)

WiFi channel 6 is the next least crowded here (after channel 1), so ZigBee channel 19 might be better than 11 in my new setup?

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [March 29, 2021, 8:13am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/93 "2021-03-29T08:13:18Z")

</div>

For someone with a username like yours, you sure ask lot’s of questions. You already mentioned you have looked at the picture. If you now run your Zigbee on 11, there is a (small) overlap with Channel 1 of wifi. If there are lot’s of other wifi networks and they are mostly on Channel 6 and 11 maybe you should use channel 20 for Zigbee?  
I’m aware of this being off topic, so maybe if you have more question regarding the best channel choice for Zigbee versus Wifi you should search the forum and if you really cannot find your answers (you aren’t the first with these challenges) you could open your own thread.

---

<div class="post-metadata">

**Author:** ![Arjan-21](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arjan-21/32/27181_2.png) [@Arjan-21](https://community.homey.app/u/Arjan-21)\
**Post date:** [March 29, 2021, 8:17am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/94 "2021-03-29T08:17:16Z")

</div>

> reporting : 9,“00124b001f1f9b27”,3,false,“Homey (Early 2019)”,“5.0.4”,0,11,0,2,“2.6.3”,29,18,11,6,14,15,true,“#”,0,9,10,8,2 , $

---

<div class="post-metadata">

**Author:** ![rvdeijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rvdeijk/32/22542_2.png) [@rvdeijk](https://community.homey.app/u/rvdeijk)\
**Post date:** [March 29, 2021, 9:08am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/95 "2021-03-29T09:08:43Z")

</div>

Off-topic, although it’s good to have the answer here, cause this zigbee health script will mention that you have a well-known key and the only solution to change it, is a zigbee reset. Which could result in a change of used zigbee channel (frequency). That could have effect on the zigbee health. ➿

> [@DirkG](#):
>
> I wanted to change it back to channel 11.  
> I asked Athom if this would be possible without any problems, but they advised me not to do it.

My solution would be:

1. zigbee reset
2. change zigbee channel back to 11 (if desired/needed)
3. add router devices
4. add end-devices

---

<div class="post-metadata">

**Author:** ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)\
**Post date:** [March 29, 2021, 10:04am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/96 "2021-03-29T10:04:30Z")

</div>

> [@Martijn\_Hoogenbosch](#):
>
> For someone with a username like yours, you sure ask lot’s of questions.

🙂

It was more of a rhetorical question, a possible answer to why the channel changed after the ZigBee reset.

(and I like to learn by asking questions)

Apologies for being off-topic.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/colin/32/13288_2.png) [@Colin](https://community.homey.app/u/Colin)\
**Post date:** [March 30, 2021, 9:34am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/97 "2021-03-30T09:34:07Z")

</div>

> reporting : 6,“00124b00199f16fb”,3,false,“Homey (Early 2019)”,“5.0.4”,0,11,0,2,“2.6.3”,23,14,9,5,13,10,true,“#”,2,6,11,4,0,1 , $

---

<div class="post-metadata">

**Author:** ![rvdeijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rvdeijk/32/22542_2.png) [@rvdeijk](https://community.homey.app/u/rvdeijk)\
**Post date:** [March 30, 2021, 10:34am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/98 "2021-03-30T10:34:31Z")

</div>

@Eternity How is it possible you mentioned you haven’t resetted your Zigbee network or started fresh with homey V5. Cause I thought you did do the reset, to see if it fixed your high cpu load + you do not have the well-known key according to the report, this means a reset is done?

@Wesley_Witjes Same counts for this one:

> [@\[Community Survey\] Homey v5 ZigBee Health check and statistics collection (HomeyScript)](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/91):
>
> reporting : 0,“00124b001b445366”,3,false,“Homey (Early 2019)”,“5.0.4”,0,13,0,2,“2.6.3”,30,8,22,2,8,8,false,"#",0,4,17,9 , $

It’s not possible right to have a false for ‘zigbee reset or started with v5’ and another false for ’ well-known key’ as a health script output report. Cause those two are related to each other?

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [March 30, 2021, 10:50am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/99 "2021-03-30T10:50:36Z")

</div>

So I’ve started on reading the zigbee documentation, and there it is specified like this:  
There are actually 4 types of devices.

- Coordinator (Homey)
- Routing devices
- End devices
- Sleepy end devices

**Sleepy end devices** are always asleep, and only wake up when they want to send a signal (receive when idle = unchecked)  
**End devices** _can_ still receive signals when it is idle, just like a routing device (you can compare it to FLiRS devices in terms of z-wave), as example a thermostatic to change the target temperature, just don’t route data from any other nodes to other nodes as that takes up too much power.

The “receive on idle” flag, is send by the device (_if_ false), so if it changes after a re-pair it could be that that flag was just not received by Homey.  
I think it is hard to determine afterwards if it is wrong or not, unless you have multiple of the same device that don’t have this.

(ps: am still reading and getting myself familiar with zigbee, so small changes/additional information is possible)

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [March 30, 2021, 11:30am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/100 "2021-03-30T11:30:04Z")

</div>

> [@rvdeijk](#):
>
> How is it possible you mentioned you haven’t resetted your Zigbee network

I tried first without a reset. Later, I did do a zigbee reset.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [March 30, 2021, 11:52am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/101 "2021-03-30T11:52:13Z")

</div>

> [@Caseda](#):
>
> The “receive on idle” flag, is send by the device ( _if_ false), so if it changes after a re-pair it could be that that flag was just not received by Homey.  
> I think it is hard to determine afterwards if it is wrong or not, unless you have multiple of the same device that don’t have this.

Well, yes - I have 61 devices in total - BUT the one battery operated, not router was the _only_ device which this “deviation” (also several Vibration sensors) - and it disappeared after pairing it again. Currently I have _none_ receiveWhenIdle flag (battery operated / not routers)

Btw, I checked the ZigBee documentation as well, but didn’t understand much to be honest…but generally agree what you wrote 😉

> **[zigbee.pdf](https://www3.nd.edu/~mhaenggi/ee67011/zigbee.pdf)**
>
> 6.08 MB

> **[Home - Homey Apps SDK v3](https://apps-sdk-v3.developer.homey.app/)**

---

<div class="post-metadata">

**Author:** ![Toine\_Wolfs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/toine_wolfs/32/34026_2.png) [@Toine\_Wolfs](https://community.homey.app/u/Toine_Wolfs)\
**Post date:** [March 30, 2021, 12:54pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/102 "2021-03-30T12:54:07Z")

</div>

> reporting : 9,“00124b0020b94346”,3,true,“Homey Pro (Early 2019)”,“5.0.4”,0,17,0,2,“2.6.3”,9,3,6,5,6,2,false,“#”,0,2,4,1 , $

Alvast bedankt!

---

<div class="post-metadata">

**Author:** ![XeNoN62](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xenon62/32/88365_2.png) [@XeNoN62](https://community.homey.app/u/XeNoN62)\
**Post date:** [March 30, 2021, 7:56pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/104 "2021-03-30T19:56:16Z")

</div>

reporting : 10,“00124b00183e2fd4”,3,false,“Homey Pro (Early 2019)”,“5.0.4”,0,11,0,2,“2.6.3”,8,0,8,1,2,0,true,"#",0,0,0 , $

[Previous page](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231.md?page=4)

[Next page](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231.md?page=6)
