Aqara Cube ZHA - Simplified face-based device control

Hi!

I have tried to update the blueprint with your changes but I get the error:

Error:`Invalid blueprint: Missing input definition for last_face_input

Am I missing anything?

I added the input current_face_input, added the calculation for deactivated_face and the new services for the ‘slide’, ‘knock’ and ‘flip’.

Thank you!

I posted this answering Fireblade:

Thank you for your support

Hi @EdwardTFN - Is it possible to add an automation to ANY AND ALL of the 57 actions of the Aqara Cube?

So that if it is shaken, moved, rotated, flipped on any side, etc, it simply runs one automation?

Or is there a simple test to do? I keep failing to get it to do any action and I have 4 of them.

  • Firmware became unavailable means what? zigbee is cryptic :frowning:

They register fine to zha but I see logs like:
LUMI lumi.remote.cagl02-NEW-A Firmware became unavailable
10:49:50 PM - 2 hours ago

  • And what does event fired mean? What action was it that caused this log?

LUMI lumi.remote.cagl02-NEW-A Zha Event was fired
10:49:50 PM - 2 hours ago

Thanks.

Hi Bruce B,

trigger:
- platform: event
  event_type: zha_event
  event_data:
    device_id: ---your cube device_id here ---

Should trigger any and all things your cube does.
It is the basis of most Cube Blueprints if you want further reference. But it will give you a lot of traffic, so you may want to condition that down a bit to cut out some noise.

Perhaps just taking control of someones blueprint is a better way to start what you are asking (or just using their blueprint).

1 Like

Hi @Sir_Goodenough - Thanks. Very good idea. Where can I find someone else’ working blueprint to copy and test?

1 Like

When I tried this code snippet in yml editor of the blueprint I get an error like below:

This is not the thread for this, start a new thread please.
Don’t want to hijack the thread for this blueprint.

I think this device is not a good device. Already spent more than 20 hours on this.

My comments may help someone else too. I think this thread is about the Aqara Cube.

This thread is about a specific blueprint someone is sharing that happens to control the cube, not writing your own automation to control the cube. A new post in Configuration - Home Assistant Community would be the place for that.

Noted. Thanks.

Posted here:
https://community.home-assistant.io/t/how-to-setup-aqara-cube-to-do-one-single-action-with-any-movement/844811

Hi @EdwardTFN I have tried to use @Sir_goodenough blueprint but his writing is very confusing and his replies seem to be intentionally holding info. I am going to use other blueprints as this is a waste of time.

I have multiple aqara cube. Where can I define which one to select for an automation? In sir_goodenough blueprint this step is not clear. Is this done inside the blueprint for you or outside somewhere?

Much appreciated.

1 Like

I’m sorry you feel that way.
My help files are about as detailed as I can get and the required inputs are the ones that designate the cube.

That is ok. No worries. But you don’t know what I tried or not so saying I should try before reaching out is not something you know. If your responses are clear and pointing to a specific part of your guide then yes it is correct, if not, then I don’t know what your intention is as it wastes my time and everyone else’s who inquires. People inquire because you encourage to inquire.

Anyhow, thanks. I have posted so others know which blueprint to work with in an efficient manner. Did not mean any ill intention.

My question remains for anyone who can answer. Thanks

Did the side changing issue get resolved? I dug the old cube out of the cupboard after a HA hardware refresh this weekend and I’m curious if it got sorted out.

I’m also interested. I have the T1 Pro (new) cube set up and have the same problems.

Face 2 and 5 as well as 3 and 6 are mixed up.
Notably, they don’t do this all the time, but often enough. I didn’t use the knock action, so I can knock to get the face update in.

I’d really like to use this cube as central living rool portable control (and also, in a different automation, as pen&paper scene controller for music and lighting). Would be great if it just worked as one should expect it to. :slight_smile:

Sidethought: How do I even find out, if it reports the correct or the incorrect face first? Can I get the raw zigbee data somehow? I am only looking at the helper input at the moment…

edit: Nevermind, I just used rvaidya’s blueprint and it works without problem. No mixed up sides. What I saw with a blueprint that works is: The first face recognized with the faulty one is the correct one, and the updated face is the wrong one.
This blueprint is definately working with my T1 Pro magic cube. ZHA - Aqara Magic Cube (69 actions)

1 Like

I have the original cube and it does the same as yours: knocking and sliding will end up to the opposite face. I guess there's no solution as no every one has this issue. I'm thinking either getting a second cube or skip those malfunctioning movements.

It should be easy to add some input and invert those commands. I can look at this later, but will need someone to test and give feedback.

Anyhow, can’t you just assign the commands in a way to compensate this?

Hi Edward, you can’t assign to compensate as it changes depending on what you are doing.