ZHA - Aqara Cube T1 Pro

Hi, I just got the new Cube.

Problem on my site is that zha_events are fired for rotate_left (and right) and shake only. Not for knock, flip etc.

Any help?

The cube was listed to be compatible with ZHA (last week), now it is no longer.

3 Likes

If it is has a new model (i.e. unique Zigbee device signature) then submit a new " Device support request" as an issue to ZHA Device Handlers or if it is the same model (i.e. same as existing Zigbee device signature) then submit Bug report to that GitHub project → https://github.com/zigpy/zha-device-handlers/issues

The reason why custom ZHA Device Handlers (a.k.a. quirks) are needed to be written/coded for some devices is explained in ZHA docs → https://www.home-assistant.io/integrations/zha#zha-exception-and-deviation-handling

Hey, did you get the Cube T1 Pro working by any chance?

Unfortunately not.

I created a Device Support Request in GitHub here, maybe you can support this?

Also tried to create a custom quirk and made it to recognize which side is up, but my knowledge about this is too limited.

So hoping for the Device Support Request

This is going to be a long shot, and I am not entirely sure if it is the correct answer, but I have 2 of the Cube T1 Pros, and they are currently fully working (all events are registering in HA with the ZHA integration). Looking at some of the Aqara marketing material, it appears that they have implemented a new mode that controls “Scenes” in their app. Clicking the pair button 5 times in a row, it appears to change the “mode” of the cube. Try pressing it 5 times in a row and see if it changes what is being sent to ZHA. You might have to do it a couple times for it to work properly. Again, might just be a fluke that mine started working.

Edit: I am using the Sonoff 3.0 Zigbee Dongle for my adapter.

5 Likes

Thank you so much for this, works like a charm now.

Wahoo! Glad to hear they are up and running!

I’m pulling my hair out trying to get this to work - After repairing it I can get it to register rotations and shakes, but nothing else - I’ve tried pressing the pair button five times, but that makes no difference at all. So far it’s very little use to me :pensive:

It took me forever to make it work, but eventually, some random combination of resetting the radio (migrate from backup) and retrying to pair over and over was enough.

My toolset of random actions included: remove battery from cube and reinsert. Reset zigbee radio from backup. Remove and readd cube.

In my case there was
no resetting or repairing needed.

Also had the situation with only rotating and shaking triggering events, presses the pairing button 5 times and I was good to go.

Appreciate the tips in the thread, but - related question/issue.

I have flip, slide, and knock events showing up with “activated_face” in the event data. However, rotate events do not seem to carry it. This means that without some sort of helper, I can’t use rotate events correctly.

For example, picking the cube up when face 1 is up, waiting a few seconds, gently rotating it to face 5, waiting a few seconds, and then placing it on the table (not knocking it), there are no events in the interim that show up with a new activated face, and since the rotation events themselves don’t carry that data, it seems like there’s no way to (for example) guarantee that rotating right with face 1 up brightens the lights instead of increasing my TV volume.

What’s interesting is that slide events do register correctly - if you gently place the cube on another face without registering a face change, but then slide the cube, that event shows up with the correct activated_face. So it seems like the rotate event should know which face is up, but I don’t know how to get at the information.

Anyone had any luck with this?

i cannot even see any events when listening to zha_event.
In the Logbook the cube is registered as a switch that toggles when i shake it or sometimes when flipping.
No entities such as acticated_face are shown. Only LQI and RSSI.

Pressing the button slowly will make the led flash 2 times quickly. repeating it 5 times changes nothing

I am having the exact same problem.

I also experienced a very weird action where it would turn on all lights and turn off all lights when I flipped it or turn it.

Still playing around with it though. Will let you know if I solve this.

I just want to follow up with some additional information.

It seems I can get my ZHA integration to add the device as two different type of devices. In one mode it acts as a switch and turns on and off with flipping, twisting, shaking, etc. It doesn’t really do anything though.

If I remove it and hammer the button the integration might add it as a remote instead and then it seems to turn on or off all my lights when I flip it, turn it or shake it. It’s not one move that specifically turns the lights on or off. If they are on it will turn them off, and vice versa. I can’t see anythingin the logs weirdly enough.

None of these register any zha_events at all in the log.

EDIT:
Starting to think it is my Conbee II-stick that simply does not support it yet?

To anyone still having issues with this: update your Zigbee coordinator firmware. Immediately after that the “press five times” solution will work for you.

I had a Sonoff Zigbee Dongle P that was running the firmware it arrived with. ZHA worked fine, no obvious issues, though the Aqara Cube T1 Pro would only pair as a switch and only shakes turned the switch on or off.

When looking in Developer Tools → Events to debug the issue, listening to zha_event showed nothing. Ever. That’s when I updated the coordinator firmware. Now listening to zha_event shows everything it should. Applied the “press five times” solution and now my Cube is working.

2 Likes

This worked for me too. Flashed the dongle plus “P” with the 2022-12 firmware following the instructions here - Sonoff Zigbee 3.0 USB Dongle Plus - How to upgrade the firmware - YouTube

I struggled a lot to properly integrate the T1 pro via ZHA.

With my drivers (Sonoff Zigbee 3.0 P) and my HASSIO (container-based) up-to-date I was only able to get the “shake” working. However, I saw this morning that an update was available on the stable channel of HASSIO (container) and now I get the correct quirks (CubeCAGL02) and all zha_events are correctly recorded.

TLDR : Update your drivers (at least 2022-12 for the Sonoff) and update HASSIO to at least 2023.4

This worked for me too. I had to press 5 times quite fast though. I’m using the SkyConnect dongle

1 Like

Incredibly fortunate you wrote this, I got a cube today and it wasn’t working with any of the tips above. Then I did a fast 5 presses and now we are rolling - cheers!

1 Like

Does not work for me, even with 5 press =(.
I use Snoff Dongle-E.
It actually reports Error handling '_save_attribute' event with ....