# \[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:** 10\
**Page:** 9

<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:** [May 6, 2024, 5:30pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/167 "2024-05-06T17:30:49Z")

</div>

On which Homey, which Homeyscript version ? Just tested on Homey 2023 / Homeyscript 3.5.1 and didn’t get this error (the functionality is naturally limited on HP23) while running “Classic” script, while in the new Homey script indeed it’s not defined.

**update** Athom will have a look on it…

---

<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:** [May 6, 2024, 7:50pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/168 "2024-05-06T19:50:47Z")

</div>

The new Homey api used in the later version of HomeyScript uses `zigbee.getState` instead of `zigBee.getState` (the B in zigbee not being capitalized), already noticed this today when working on my overview script.

so change line 245 from:  
`let zigBeeState = await Homey.zigBee.getState();`  
to:  
`let zigBeeState = await Homey.zigbee.getState();`

---

<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:** [May 7, 2024, 8:42am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/169 "2024-05-07T08:42:43Z")

</div>

I had to read it twice, to find difference 😉  
Anyway, seems to be bug, informed Jeroen on your finding.

---

<div class="post-metadata">

**Author:** ![Thomas\_Buran](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomas_buran/32/107750_2.png) [@Thomas\_Buran](https://community.homey.app/u/Thomas_Buran)\
**Post date:** [May 8, 2024, 2:45pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/170 "2024-05-08T14:45:22Z")

</div>

thank you guys. Here is my report:

> reporting : 5,“00124b002257f56d”,3,false,“Homey Pro (Early 2019)”,“10.0.9”,0,11,0,2,“2.6.3-20231124”,36,12,24,6,12,7,false,“#”,4,6,14,12,4 , $

I ahve some issues with my zigbee devices and I found I have 4 devices with error in route.

---

<div class="post-metadata">

**Author:** ![hugopeeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hugopeeters/32/105840_2.png) [@hugopeeters](https://community.homey.app/u/hugopeeters)\
**Post date:** [November 10, 2024, 3:00pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/171 "2024-11-10T15:00:01Z")

</div>

Also lines 38 and 39, router and enddevice need to be changed to all lowercase.

---

<div class="post-metadata">

**Author:** ![Rasket787](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rasket787/32/138382_2.png) [@Rasket787](https://community.homey.app/u/Rasket787)\
**Post date:** [December 3, 2025, 10:53am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/174 "2025-12-03T10:53:59Z")

</div>

With the above bugfix it now shows the node count correctly, but I know I have two disconnected Zigbee devices that I can still see on the dev page. However, they no longer show up here — what could be the issue?

```auto
# Nodes : 34

```

```auto
# Routers : 13

```

```auto
# EndDevice : 21

```

```auto
# manufacturerNames : 7

```

```auto
> manufacturerNames : ["SONOFF","Sunricher","frient A/S","Shelly","eWeLink","","Athom B.V."]

```

```auto
# modelIds : 11

```

```auto
> modelIds : ["SNZB-02D","HK-SL-DIM-A","MOSZB-140","HK-LN-DIM-A","1PM","SNZB-05P","SNZB-04P","SNZB-02P","SMSZB-120","lumi.vibration.aq1","Homey Bridge"]

```

```auto
-=-=-=-=-=-=-=-=-=-=-=-=-=-[3b: routing is an ephemeral state and may change at any time]-=-=-=-=-=-=-=-=-=-=-=-=-=-

```

```auto
 # Bad Routes : 0

```

```auto
 # Routes 0 hops : 0

```

```auto
 # Routes 1 hops : 0

```

---

<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:** [December 3, 2025, 8:13pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/175 "2025-12-03T20:13:45Z")

</div>

Curious if this script shows other results?

> [@\[Homey Pro\] overview script](https://community.homey.app/t/homey-pro-overview-script/77459):
>
> Homey Pro overview script Always wanted an overview of your current Homey? Because you are in the process of migrating to another Homey Pro, or just for the fun of it. Well that is what this very HomeyScript script is for. Feel free to share your results in this thread, as I do like to see every ones Homey too! (no sensitive data is shown) I’ve tried to make this overview script somewhat user friendly to use. The only thing you need is an Homey Pro (any version, besides Homey (Cloud)) and t…

---

<div class="post-metadata">

**Author:** ![Rasket787](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rasket787/32/138382_2.png) [@Rasket787](https://community.homey.app/u/Rasket787)\
**Post date:** [December 4, 2025, 10:44am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/176 "2025-12-04T10:44:56Z")

</div>

Actually, I’m curious about Zigbee-related info, like hops and such; these are not included in the other script you sent.

---

<div class="post-metadata">

**Author:** ![JonHB](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonhb/32/123371_2.png) [@JonHB](https://community.homey.app/u/JonHB)\
**Post date:** [December 4, 2025, 11:55am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/177 "2025-12-04T11:55:51Z")

</div>

```auto
> reporting : 7,"0ceff6fffe546743",3,true,"Homey Pro (Early 2023)","12.9.0",null,25,null,null,"7.4.2-0",13,0,0,10,7,0,false,"#",0,0,0 , $

```

---

<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:** [December 4, 2025, 12:39pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/178 "2025-12-04T12:39:37Z")

</div>

If you have Homey 2023, this is not available.

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