openhab/org.openhab.binding.zigbee

[Zigbee] Aqara Cube fails cluster/channel discovery

einalex opened this issue · 8 comments

Expected Behavior

The binding should be able to discover the cube's service clusters and create the appropriate channels.

Current Behavior

ZigBee node property discovery completes but no channels are created, and no supported clusters are found.
See attached aqara cube failure log.txt.
mac address of cube is: 00158D0007999FC1

Steps to Reproduce (for Bugs)

  1. Get cube
  2. Start OH Scan
  3. Hold Button on Cube for 3s, optionally keep repeatedly pressing the link button to keep it alive after it stops blinking
  4. witness failure

Your Environment

  • Version used: OH and Zigbee 3.2.0

  • Environment name and version: POPP Zigbee stick (ember based) FW 6.9.1.0

  • Operating System and version: Ubuntu 20.04, Kernel 5.4.0-97-generic

Feel free to ask for additional information if required.

More detailed debug logs attached
oh.log
oh-event.log

wborn commented

Can you transfer this issue to the zigbee repo @kaikreuzer?

I'd need to see a log showing the initialisation of the device to understand why it's not initialising. Please can you provide this.

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

https://community.openhab.org/t/sonoff-usb-zigbee-v2-stick-not-working-with-aqara-switches/139835/1

This error persists also with regular Aqara rocker switches (single/double) on OH3.3 and RPi4.

Seems to be an issue with Ember as on Homeassistant with the same Sonoff USB stick all Aqara switches work flawlessly...

old-cube.patch.txt
This was my (working) attempt to fix the problem back then.
The issue was afaik missing channel types for ANALOGINPUT and MULTISTATEINPUT.
I'm not sure this is the correct way to solve it, but it worked for me.

This was my (working) attempt to fix the problem back then.

If you have a fix to add this support, I'd really suggest to provide a PR so it can be reviewed.

This error persists also with regular Aqara rocker switches (single/double) on OH3.3 and RPi4.

Probably this is a completely different issue if it's a different device. I would suggest to raise a new issue.

Seems to be an issue with Ember as on Homeassistant with the same Sonoff USB stick all Aqara switches work flawlessly.

It's unlikely, and Homeassistant also uses the Sonoff switches which use the Ember chipset.

Hi Alex,
is this fix still woking for you? I tried to compile the Addon with the changes from your patch, however it is not compiling. I guess its missing files like: "ZigBeeConverterAnalogInput.java" and "ZigBeeConverterMultiStateInput.java"

I get these compilation errors:
[ERROR] /home/.../org.openhab.binding.zigbee/src/main/java/org/openhab/binding/zigbee/internal/converter/ZigBeeDefaultChannelConverterProvider.java:[46,20] The method put(org.openhab.core.thing.type.ChannelTypeUID, java.lang.Class<? extends org.openhab.binding.zigbee.converter.ZigBeeBaseChannelConverter>) in the type java.util.Map<org.openhab.core.thing.type.ChannelTypeUID,java.lang.Class<? extends org.openhab.binding.zigbee.converter.ZigBeeBaseChannelConverter>> is not applicable for the arguments (org.openhab.core.thing.type.ChannelTypeUID, java.lang.Class<ZigBeeConverterAnalogInput>)

[ERROR] /home/.../org.openhab.binding.zigbee/src/main/java/org/openhab/binding/zigbee/internal/converter/ZigBeeDefaultChannelConverterProvider.java:[46,68] ZigBeeConverterAnalogInput cannot be resolved to a type

[ERROR] /home/.../org.openhab.binding.zigbee/src/main/java/org/openhab/binding/zigbee/internal/converter/ZigBeeDefaultChannelConverterProvider.java:[47,20] The method put(org.openhab.core.thing.type.ChannelTypeUID, java.lang.Class<? extends org.openhab.binding.zigbee.converter.ZigBeeBaseChannelConverter>) in the type java.util.Map<org.openhab.core.thing.type.ChannelTypeUID,java.lang.Class<? extends org.openhab.binding.zigbee.converter.ZigBeeBaseChannelConverter>> is not applicable for the arguments (org.openhab.core.thing.type.ChannelTypeUID, java.lang.Class<ZigBeeConverterMultistateInput>)

[ERROR] /home/.../org.openhab.binding.zigbee/src/main/java/org/openhab/binding/zigbee/internal/converter/ZigBeeDefaultChannelConverterProvider.java:[47,72] ZigBeeConverterMultistateInput cannot be resolved to a type

Do you have a git repository with these changes, where I could pull them from?