openhab / org.openhab.binding.zigbee

openHAB binding for ZigBee
Eclipse Public License 2.0
73 stars 111 forks source link

OH 4.1 M4 Devices with a voltage Channel remain unknown: `this.cluster` is null #816

Closed rkoshak closed 6 months ago

rkoshak commented 7 months ago

Outline

After upgrading to OH 4.1 M4 some but not all of my Zigbee devices which previously worked stopped working. They show up in MainUI as unknown.

During the boot the following exception is thrown repeatedly for different nodes:

2023-12-05 07:24:56.238 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
java.lang.NullPointerException: Cannot invoke "com.zsmartsystems.zigbee.zcl.clusters.ZclPowerConfigurationCluster.getAttribute(int)" because "this.cluster" is null
        at org.openhab.binding.zigbee.internal.converter.ZigBeeConverterBatteryVoltage.getChannel(ZigBeeConverterBatteryVoltage.java:125) ~[?:?]
        at org.openhab.binding.zigbee.internal.converter.ZigBeeChannelConverterFactoryImpl.getChannels(ZigBeeChannelConverterFactoryImpl.java:82) ~[?:?]
        at org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService$2.run(ZigBeeDiscoveryService.java:248) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:840) [?:?]

Only those devices that have a voltage Channel have the problem. In my case that's two battery powered water leak detectors and a bunch of Peanut Plugs which, while being mains powered, has always had battery type Channels though nothing is ever published there.

I've attached the full boot log with the binding in debug.

Configuration

Configuration Description
Coordinator used HUSZB
openHAB version OH 4.1 M3 to OH 4.1 M4
Hardware VM on Intel CPU running in Docker
Memory 12 GB
Java version Whatever comes with the Docker image
Devices

Not working Devices

Working Devices

Logs

openhab.log

rkoshak commented 7 months ago

A sharp eyed person on the forum noticed https://github.com/openhab/org.openhab.binding.zigbee/pull/814, perhaps the errors are related to this PR?

openhab-bot commented 7 months ago

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/openhab-4-1-milestone-discussion/149502/112