Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Zigbee] Aqara Cube fails cluster/channel discovery #737

Open
einalex opened this issue Feb 8, 2022 · 8 comments
Open

[Zigbee] Aqara Cube fails cluster/channel discovery #737

einalex opened this issue Feb 8, 2022 · 8 comments

Comments

@einalex
Copy link

einalex commented Feb 8, 2022

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.

@einalex einalex added the bug label Feb 8, 2022
@einalex
Copy link
Author

einalex commented Feb 8, 2022

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

@wborn
Copy link
Member

wborn commented Feb 8, 2022

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

@kaikreuzer kaikreuzer transferred this issue from openhab/openhab-addons Feb 8, 2022
@cdjackson
Copy link
Contributor

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.

@openhab-bot
Copy link
Collaborator

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

@richardklingler
Copy link

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...

@einalex
Copy link
Author

einalex commented Oct 10, 2022

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.

@cdjackson
Copy link
Contributor

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.

@Moytora
Copy link

Moytora commented Jan 18, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants