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

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…

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

2 Likes

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

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.

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

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?

# Nodes               : 34
# Routers             : 13
# EndDevice           : 21
# manufacturerNames   : 7
> manufacturerNames   : ["SONOFF","Sunricher","frient A/S","Shelly","eWeLink","","Athom B.V."]
# modelIds            : 11
> 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"]
-=-=-=-=-=-=-=-=-=-=-=-=-=-[ 3b: routing is an ephemeral state and may change at any time  ]-=-=-=-=-=-=-=-=-=-=-=-=-=-
 # Bad Routes    : 0
 # Routes 0 hops : 0
 # Routes 1 hops : 0

Curious if this script shows other results?

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

> 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 , $

If you have Homey 2023, this is not available.

1 Like