# \[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:** 2

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [March 9, 2021, 4:01pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/24 "2021-03-09T16:01:43Z")

</div>

**I’m sorry, Dave. I’m afraid I can’t do that !**

 ![20210309_164612](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/a/aa65dda9f1e456bffdd5f9864214f53aebb014cb.jpeg)

There really is such a unique piece. Homey Pro circuit board was installed. The control lights and the pulsating eye are controlled with 4 Shelly RGBW. A Raspberry 3b + takes care of the screen and the movie quotes.  
From the idea to the completion it was 1 year of work and a lot of money. I’ll never do that again!

---

<div class="post-metadata">

**Author:** ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)\
**Post date:** [March 9, 2021, 5:01pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/25 "2021-03-09T17:01:18Z")

</div>

> reporting : 7,“00124b0005f0d517”,2,true,“Homey (Early 2016)”,“5.0.1-rc.1”,0,11,0,2,“2.6.3”,22,6,16,5,9,6,“#”,0,4,13,4,1 , $

---

<div class="post-metadata">

**Author:** ![Allram](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/allram/32/191_2.png) [@Allram](https://community.homey.app/u/Allram)\
**Post date:** [March 9, 2021, 9:54pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/26 "2021-03-09T21:54:37Z")

</div>

reporting : 6,“00124b001e9a9bcf”,2,true,“Homey Pro (Early 2019)”,“5.0.1”,0,11,0,2,“2.6.3”,72,36,36,6,33,29,"#",0,17,28,18,9 , $

---

<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 10, 2021, 2:34pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/27 "2021-03-10T14:34:38Z")

</div>

reporting : 4,“00124b0004f8a48c”,2,false,“Homey (Early 2016)”,“5.0.0”,0,11,0,2,“2.6.3”,26,4,22,1,9,0,"#",0,0,0 , $

---

<div class="post-metadata">

**Author:** ![Zawinul](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zawinul/32/71221_2.png) [@Zawinul](https://community.homey.app/u/Zawinul)\
**Post date:** [March 11, 2021, 5:37am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/28 "2021-03-11T05:37:00Z")

</div>

> reporting : 8,“00124b001b43f541”,2,true,“Homey Pro (Early 2019)”,“5.0.0”,0,11,0,2,“2.6.3”,38,18,20,6,19,12,“#”,0,10,20,5 , $

---

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

</div>

> [@Dijker](#):
>
> Edit the **7th and 8th line** to tell me how happy you are and if you started with ZigBee of reset ZigBee after upgrading to Firmware v5.

8th and 9th you mean 😉

`> reporting : 7,"00124b001b44558e",2,false,"Homey Pro (Early 2019)","5.0.1",0,11,0,2,"2.6.3",26,13,13,9,15,9,"#",0,8,10,7,1 , $`

I haven’t reset my zigbee network, however I do had to fix several ‘bad route’ zigbee devices with the help of your [topic](https://community.homey.app/t/fixing-disconnected-zigbee-devices-without-having-to-modify-all-flows/37896).

@Dijker I am wondering if this line is correct:  
`Memory Total : 996 MB - Free : 196032 KB - (19%)`  
The settings of Homey app mentions this:

 ![Screenshot_20210311-152239_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/1/1147241f79463176662e42354df06dfc8aabc3cf.jpeg)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 11, 2021, 3:45pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/30 "2021-03-11T15:45:28Z")

</div>

> [@rvdeijk](#):
>
> Memory Total : 996 MB - Free : 196032 KB - (19%)

Athom very likely uses different metrics for both: RSS for each app for the graph and the (equivalent of the) output of the “free” command for how much free memory there is (but they probably chose the wrong column, “free” instead of “available”).

---

<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 11, 2021, 4:14pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/31 "2021-03-11T16:14:29Z")

</div>

> [@robertklep](#):
>
> but they probably chose the wrong column, “free” instead of “available”

Okay not sure cause looking at the graph it seems that I use 50% and have 50% of free space left. So the 19% that I got from the homeyscript seems wrong in either way, even if it was reversed.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 11, 2021, 4:22pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/32 "2021-03-11T16:22:11Z")

</div>

What I mean is that for “free memory” Athom uses the wrong metric internally.

---

<div class="post-metadata">

**Author:** ![JMWC](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jmwc/32/17022_2.png) [@JMWC](https://community.homey.app/u/JMWC)\
**Post date:** [March 11, 2021, 4:40pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/33 "2021-03-11T16:40:47Z")

</div>

reporting : 8,“00124b001f1f9aac”,2,false,“Homey Pro (Early 2019)”,“5.0.1”,0,11,0,2,“2.6.3”,25,22,3,4,7,11,"#",0,11,10,3 , $

---

<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 11, 2021, 4:48pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/34 "2021-03-11T16:48:57Z")

</div>

Look at  
[https://developer.athom.com/tools/system](https://developer.athom.com/tools/system)  
What does it say?  
If i remember correct these values.

| freememMachine | 425934848 |
| --- | --- |
| freememHuman | 20% |

---

<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 11, 2021, 5:03pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/35 "2021-03-11T17:03:20Z")

</div>

| totalmem | 1044193280 |
| --- | --- |
| freememMachine | 187482112 |
| freememHuman | 18% |

App says:

 ![Screenshot_20210311-180251_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/e/9e4b7438a024ae14b3a5d4c3345039be4f71871f.jpeg)  
I could edit this picture with the whole list if needed.

---

<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 11, 2021, 5:36pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/36 "2021-03-11T17:36:55Z")

</div>

> [@rvdeijk](#):
>
> @Dijker I am wondering if this line is correct:  
> `Memory Total : 996 MB - Free : 196032 KB - (19%)`

it is just this in HomeyScript:

```
let SysInfo = await Homey.system.getInfo();
log('Memory Total : ' + Math.round(SysInfo.totalmem / 1024 / 1024), 'MB - Free : ', SysInfo.freememMachine / 1024, 'KB - (' + SysInfo.freememHuman + ')',);
log(SysInfo)

```

---

<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 11, 2021, 6:00pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/37 "2021-03-11T18:00:11Z")

</div>

Yes probably it’s alright, matches the developer page. Apparently my Homey uses a lot more memory than I thought, based on the graph and memory consumption app list at homey app settings.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 11, 2021, 6:43pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/38 "2021-03-11T18:43:17Z")

</div>

> [@rvdeijk](#):
>
> Apparently my Homey uses a lot more memory than I thought, based on the graph and memory consumption app list at homey app settings.

The graph is showing your Homey is using about 50% of its memory. That’s acceptable, isn’t it?

---

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

</div>

Yes that’s acceptable, but the developer page and homeyscript says 180/190MB is free (available?) out of 1GB. Based on that Homey is using 82% of its memory? Or am I missing something again.

---

<div class="post-metadata">

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

</div>

> [@rvdeijk](#):
>
> Or am I missing something again.

I’ll quote myself: _“What I mean is that for “free memory” Athom uses the wrong metric internally.”_

To be more clear: **Don’t Trust The Free Memory Values That Homey Is Providing.**

---

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

</div>

After fixing some of the devices with a Bad Route info I first made a script to check only that and report on the Timeline. After that I fixed them and monitor the current Zigbee Health by running that script scheduled.

The notification script is published here:

> <https://github.com/Dijker/nu.Dijker.UnseenHomeyScripts/blob/master/zigbeeHealthNotificatonReport.js>

I Scheduled it simple from a Flow:

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/c/ccaea457186228598fd3790c542edba1db83bc91.png)

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [March 11, 2021, 11:45pm UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/42 "2021-03-11T23:45:12Z")

</div>

`reporting : 7,"00124b001b446e33",2,false,"Homey Pro (Early 2019)","5.0.1",0,11,0,2,"2.6.3",35,15,20,4,15,14,"#",1,4,19,8,2,0,1 , $`

The one ‘bad route’ is no problem; it’s a dimmable buld that is behind a (non smart) switch 😉

```
 # Bad Routes : 1
 # Routes 0 hops : 4
 # Routes 1 hops : 19
 # Routes 2 hops : 8
 # Routes 3 hops : 2
 # Routes 4 hops : 0
 # Routes 5 hops : 1

```

What I don’t understand is the routes with 2, 3 and even 5 hops while there is a zigbee router only a few meters from the end device 😲

---

<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 12, 2021, 6:22am UTC](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231/43 "2021-03-12T06:22:25Z")

</div>

> [@Le\_Cactus](#):
>
> What I don’t understand is the routes with 2, 3 and even 5 hops while there is a zigbee router only a few meters from the end device 😲

Thanks!  
That’s the nice thing of the Mesh, it works out itself and only reports the route for what I know. ’  
It could be different the next time.  
I would advise to remove (or Fix) the non-smart switch as this could lead to multiple devices losing a previous working route, needing to re-discover a working route.

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

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