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