Running openHAB 3.1.0 Release build
Raspberry Pi4 4GB
I have been having a heck of a time with a Sengled bulb. Here’s the history:
- Bulb had been on my working SmartThings set up
- Deleted bulb from ST
- Added it to OH3, working fine for a few months of testing
- Was having unrelated issue with a different zigbee device so decided to reinstall the Zigbee Binding
- Removed all Zigbee devices, uninstalled the Zigbee binding
- In this process I updated to 3.1 Release (had been on the latest Maintenance)
- Successfully added back the various Zigbee devices
- Now, a Sengled bulb will not join properly (it is there but reported as “unknown device” and I get handler error:
2021-07-23 08:35:15.867 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'zigbee:device:ZigBee_Bridge:b0ce18140338dc6e' changed from UNKNOWN to OFFLINE (HANDLER_INITIALIZING_ERROR)
Tried multiple times resetting bulb to factory defaults (10 on/off sequence)
Tried resetting with just reset sequence (5 on/off)
Tried and tried … with same results (it joins but is unknown) … thought maybe I damaged the bulb somehow … so I went back to ST and paired it successfully on the first try. Bulb works fine. Paired and unpaired multiple times on ST with no issues. Went back to OH3 … tried again with the exact same outcome.
I see in the log:
2021-07-23 08:35:15.861 [ERROR] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Exception creating channels
java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')
at com.zsmartsystems.zigbee.serialization.DefaultSerializer.appendZigBeeType(DefaultSerializer.java:209) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.field.AttributeReportingConfigurationRecord.serialize(AttributeReportingConfigurationRecord.java:361) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclFieldSerializer.serialize(ZclFieldSerializer.java:38) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.clusters.general.ConfigureReportingCommand.serialize(ConfigureReportingCommand.java:107) ~[bundleFile:?]
at com.zsmartsystems.zigbee.ZigBeeNetworkManager.sendCommand(ZigBeeNetworkManager.java:905) ~[bundleFile:?]
at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.send(ZigBeeTransactionManager.java:443) ~[bundleFile:?]
at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.sendNextTransaction(ZigBeeTransactionManager.java:681) ~[bundleFile:?]
at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.queueTransaction(ZigBeeTransactionManager.java:372) ~[bundleFile:?]
at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.sendTransaction(ZigBeeTransactionManager.java:351) ~[bundleFile:?]
at com.zsmartsystems.zigbee.ZigBeeNetworkManager.sendTransaction(ZigBeeNetworkManager.java:2032) ~[bundleFile:?]
at com.zsmartsystems.zigbee.ZigBeeNode.sendTransaction(ZigBeeNode.java:926) ~[bundleFile:?]
at com.zsmartsystems.zigbee.ZigBeeEndpoint.sendTransaction(ZigBeeEndpoint.java:596) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclCluster.sendCommand(ZclCluster.java:294) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclCluster.sendCommand(ZclCluster.java:305) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclCluster.setReporting(ZclCluster.java:1767) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclCluster.setReporting(ZclCluster.java:589) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclAttribute.setReporting(ZclAttribute.java:431) ~[bundleFile:?]
at org.openhab.binding.zigbee.internal.converter.ZigBeeConverterMeteringSummationDelivered.initializeDevice(ZigBeeConverterMeteringSummationDelivered.java:81) ~[bundleFile:?]
at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.initializeDevice(ZigBeeThingHandler.java:514) ~[bundleFile:?]
at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.doNodeInitialisation(ZigBeeThingHandler.java:377) [bundleFile:?]
at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:227) [bundleFile:?]
at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:1) [bundleFile:?]
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:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Probably related to the issue, but I dont know.
Turned on Zigbee DEBUG and reran test - filtered for just the problem device:
2021-07-23 08:47:48.852 [INFO ] [bee.discovery.ZigBeeDiscoveryService] - B0CE18140338DC6E: Starting ZigBee device discovery
2021-07-23 08:47:48.854 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - B0CE18140338DC6E: Creating ZigBee device zigbee:device with bridge zigbee:coordinator_ember:ZigBee_Bridge
2021-07-23 08:47:48.857 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'zigbee:device:ZigBee_Bridge:b0ce18140338dc6e' to inbox.
2021-07-23 08:47:48.861 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - B0CE18140338DC6E: Node discovery not complete
2021-07-23 08:47:49.104 [DEBUG] [ding.zigbee.internal.ZigBeeDataStore] - B0CE18140338DC6E: ZigBee saving network state complete.
2021-07-23 08:47:48.857 [INFO ] [openhab.event.InboxAddedEvent ] - Discovery Result with UID 'zigbee:device:ZigBee_Bridge:b0ce18140338dc6e' has been added.
2021-07-23 08:47:52.887 [INFO ] [bee.discovery.ZigBeeDiscoveryService] - B0CE18140338DC6E: Starting ZigBee device discovery
2021-07-23 08:47:52.889 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - B0CE18140338DC6E: Creating ZigBee device zigbee:device with bridge zigbee:coordinator_ember:ZigBee_Bridge
2021-07-23 08:47:52.892 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - B0CE18140338DC6E: ZigBee node property discovery start
2021-07-23 08:47:52.895 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - B0CE18140338DC6E: ZigBee node property discovery using basic cluster on endpoint 7839/1
2021-07-23 08:47:53.359 [DEBUG] [ding.zigbee.internal.ZigBeeDataStore] - B0CE18140338DC6E: ZigBee saving network state complete.
2021-07-23 08:47:54.010 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - B0CE18140338DC6E: Date code failed
2021-07-23 08:47:54.012 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - B0CE18140338DC6E: ZigBee node property discovery using OTA cluster on endpoint 7839/1
2021-07-23 08:47:54.336 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - B0CE18140338DC6E: ZigBee node property discovery complete: {zigbee_logicaltype=END_DEVICE, zigbee_powerlevel=FULL, zigbee_manufacturercode=0x1160, modelId=E11-G13, zigbee_networkaddress=30777, zigbee_powersource=MAINS, zigbee_stkversion=0, zigbee_zclversion=1, vendor=sengled, zigbee_powermode=RECEIVER_ON_IDLE, zigbee_powersources=[MAINS], hardwareVersion=1, firmwareVersion=0x00000009, zigbee_applicationVersion=1}
2021-07-23 08:47:54.338 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - B0CE18140338DC6E: Checking endpoint 1 channels
2021-07-23 08:47:56.335 [DEBUG] [er.ZigBeeChannelConverterFactoryImpl] - B0CE18140338DC6E: Removing channel zigbee:switch_onoff in favor of zigbee:switch_level
2021-07-23 08:47:56.340 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - B0CE18140338DC6E: Initializing channel zigbee:device:ZigBee_Bridge:b0ce18140338dc6e:B0CE18140338DC6E_1_meteringinstantdemand with org.openhab.binding.zigbee.internal.converter.ZigBeeConverterMeteringInstantaneousDemand@c32109
2021-07-23 08:47:56.341 [DEBUG] [ConverterMeteringInstantaneousDemand] - B0CE18140338DC6E: Initialising electrical measurement cluster
2021-07-23 08:47:57.267 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - B0CE18140338DC6E: Initializing channel zigbee:device:ZigBee_Bridge:b0ce18140338dc6e:B0CE18140338DC6E_1_meteringsumdelivered with org.openhab.binding.zigbee.internal.converter.ZigBeeConverterMeteringSummationDelivered@1034d66
2021-07-23 08:47:57.268 [DEBUG] [eConverterMeteringSummationDelivered] - B0CE18140338DC6E: Initialising electrical measurement cluster
2021-07-23 08:49:09.059 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Initializing ZigBee thing handler zigbee:device:ZigBee_Bridge:b0ce18140338dc6e
2021-07-23 08:49:09.063 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Coordinator status changed to ONLINE.
2021-07-23 08:49:09.064 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Coordinator is ONLINE. Starting device initialisation.
2021-07-23 08:49:09.076 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Start initialising ZigBee Thing handler
2021-07-23 08:49:09.082 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - B0CE18140338DC6E: ZigBee node property discovery start
2021-07-23 08:49:09.083 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - B0CE18140338DC6E: ZigBee node property discovery using basic cluster on endpoint 7839/1
2021-07-23 08:49:09.035 [INFO ] [openhab.event.InboxRemovedEvent ] - Discovery Result with UID 'zigbee:device:ZigBee_Bridge:b0ce18140338dc6e' has been removed.
2021-07-23 08:49:09.047 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'zigbee:device:ZigBee_Bridge:b0ce18140338dc6e' changed from UNINITIALIZED to INITIALIZING
2021-07-23 08:49:09.062 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'zigbee:device:ZigBee_Bridge:b0ce18140338dc6e' changed from INITIALIZING to UNKNOWN
2021-07-23 08:49:10.163 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - B0CE18140338DC6E: Date code failed
2021-07-23 08:49:10.165 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - B0CE18140338DC6E: ZigBee node property discovery using OTA cluster on endpoint 7839/1
2021-07-23 08:49:10.167 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - B0CE18140338DC6E: ZigBee node property discovery complete: {zigbee_logicaltype=END_DEVICE, zigbee_powerlevel=FULL, zigbee_manufacturercode=0x1160, modelId=E11-G13, zigbee_networkaddress=30777, zigbee_powersource=MAINS, zigbee_stkversion=0, zigbee_zclversion=1, vendor=sengled, zigbee_powermode=RECEIVER_ON_IDLE, zigbee_powersources=[MAINS], hardwareVersion=1, firmwareVersion=0x00000009, zigbee_applicationVersion=1}
2021-07-23 08:49:10.171 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Checking endpoint 1 channels
2021-07-23 08:49:10.643 [DEBUG] [er.ZigBeeChannelConverterFactoryImpl] - B0CE18140338DC6E: Removing channel zigbee:switch_onoff in favor of zigbee:switch_level
2021-07-23 08:49:10.644 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Dynamically created 3 channels
2021-07-23 08:49:10.647 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Updating thing definition as channels have changed from [] to [zigbee:device:ZigBee_Bridge:b0ce18140338dc6e:B0CE18140338DC6E_1_meteringinstantdemand, zigbee:device:ZigBee_Bridge:b0ce18140338dc6e:B0CE18140338DC6E_1_meteringsumdelivered, zigbee:device:ZigBee_Bridge:b0ce18140338dc6e:B0CE18140338DC6E_1_dimmer]
2021-07-23 08:49:10.695 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Initializing device
2021-07-23 08:49:10.696 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Initializing channel zigbee:device:ZigBee_Bridge:b0ce18140338dc6e:B0CE18140338DC6E_1_meteringinstantdemand with org.openhab.binding.zigbee.internal.converter.ZigBeeConverterMeteringInstantaneousDemand@11c2ea0
2021-07-23 08:49:10.697 [DEBUG] [ConverterMeteringInstantaneousDemand] - B0CE18140338DC6E: Initialising electrical measurement cluster
2021-07-23 08:49:10.692 [INFO ] [penhab.event.FirmwareStatusInfoEvent] - Firmware status of thing zigbee:device:ZigBee_Bridge:b0ce18140338dc6e changed to UNKNOWN.
2021-07-23 08:49:11.612 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Initializing channel zigbee:device:ZigBee_Bridge:b0ce18140338dc6e:B0CE18140338DC6E_1_meteringsumdelivered with org.openhab.binding.zigbee.internal.converter.ZigBeeConverterMeteringSummationDelivered@1b7c6cc
2021-07-23 08:49:11.613 [DEBUG] [eConverterMeteringSummationDelivered] - B0CE18140338DC6E: Initialising electrical measurement cluster
2021-07-23 08:49:12.005 [ERROR] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE18140338DC6E: Exception creating channels
2021-07-23 08:49:12.011 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'zigbee:device:ZigBee_Bridge:b0ce18140338dc6e' changed from UNKNOWN to OFFLINE (HANDLER_INITIALIZING_ERROR)
Anyone else have this issue and any suggestions (other than toss the bulbs LOL)?