I have a custom Zigbee dimmer device that registers just fine with OH2 M4, the problem is that I get the error below when I add the device. Switch cluster works fine, but for whatever reason the Level Control cluster fails to initialize. Logs attached.
Thanks in advance.
2019-11-21 17:37:40.392 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 0013A20041A406E7: No handler found for zigbee:device:9caa92e7:0013a20041a406e7:0013A20041A406E7_3_dimmer
2019-11-21 18:13:20.389 [INFO ] [ng.zigbee.handler.ZigBeeThingHandler] - 0013A20041A406E7: Channel zigbee:device:9caa92e7:0013a20041a406e7:0013A20041A406E7_3_dimmer failed to initialise device
2019-11-21 18:13:20.658 [INFO ] [ng.zigbee.handler.ZigBeeThingHandler] - 0013A20041A406E7: Channel zigbee:device:9caa92e7:0013a20041a406e7:0013A20041A406E7_4_dimmer failed to initialise device
2019-11-21 18:13:20.840 [INFO ] [ng.zigbee.handler.ZigBeeThingHandler] - 0013A20041A406E7: Channel zigbee:device:9caa92e7:0013a20041a406e7:0013A20041A406E7_3_dimmer failed to initialise converter
2019-11-21 18:13:20.851 [INFO ] [ng.zigbee.handler.ZigBeeThingHandler] - 0013A20041A406E7: Channel zigbee:device:9caa92e7:0013a20041a406e7:0013A20041A406E7_4_dimmer failed to initialise converter
Thanks for the quick response. I’ve never had reporting implemented in my code yet this used to work in previous versions of OH. Is this a new requirement from the previous version or milestones?
So the device is sorta working. the on/off EP works fine, OH sends the command to the device whenever i press the button in the OH Control page, yet OH does not send the command for the level control EP when i move the slider.
The other thing is that this device will be asleep most of the time until a button/slider is pressed, is OH expecting the device to wake up every 900secs to send a report? What are the expectations of the Coordinator and the End Device in this scenario?
No - it’s the same. The logging might have changed though, but clearly without reporting, state updates will not work.
If the device sleeps, then OH will not be able to send any commands to it.
Well, normally in ZigBee a sleepy device should wake up at least once every 7.8 seconds. On top of this, OH will expect to receive data from the polling - I’m not sure what the duration of this is though as it normally would use reporting on most devices (these days, it’s mandatory for ZB compliance).
Ok, my device (XBee3) wakes up every 3 secs to check for any commands waiting in the Coordinator’s queue, without waking up the rest of the components. If there is a command waiting, it wakes everything up and processes the command.
But the question still remains, if my device does not support reporting, why does OH works with the on/off EP but not with the level control EP?
Also I just got done implementing reporting, at least device is responding with a ConfigureReportingResponse. But OH still does not initialize the dimmer channels. Log attached. openhab-snip.log (278.8 KB) This is on Openhabian OH2.5.M4 running on Raspberry Pi 3 Model B Rev 1.2
The issue is caused by the fact that the binding expects the device to support the OnOff cluster, and yours doesn’t. Probably it shouldn’t assume that, but that’s the issue and most if not all devices do this.