[New device support]: Aqara Cube T1 Pro support request
Link
https://www.aqara.com/en/product/cube-t1-pro
Database entry
{"id":5,"type":"EndDevice","ieeeAddr":"0x54ef44100062e05a","nwkAddr":25105,"manufId":4447,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.remote.cagl02","epList":[1,2,3],"endpoints":{"1":{"profId":260,"epId":1,"devId":259,"inClusterList":[0,3,6],"outClusterList":[0,3],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"2":{"epId":2,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"3":{"epId":3,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":25,"stackVersion":2,"hwVersion":1,"dateCode":"20220602","swBuildId":"2019\u0000www.","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1671404743897,"defaultSendRequestWhen":"immediate"}
Comments
I tried creating a custom converter using the one already exisiting for the older model MFKZQ01LM but I was stuck at some point, I didn't know how to properly fill the fromZigbee array in.
External converter
const fz = {...require('zigbee-herdsman-converters/converters/fromZigbee'), legacy: require('zigbee-herdsman-converters/lib/legacy').fromZigbee};
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['lumi.remote.cagl02'],
model: 'CTP-R01',
vendor: 'Xiaomi'
description: 'Aqara Cube T1 Pro',
fromZigbee: [fz.xiaomi_basic],
toZigbee: [], // Should be empty, unless device can be controlled (e.g. lights, switches).
exposes: [e.battery(), e.battery_voltage(), e.angle('action_angle'), e.device_temperature(), e.power_outage_count(false), e.cube_side('action_from_side'), e.cube_side('action_side'), e.cube_side('action_to_side'), e.cube_side('side'), e.action(['shake', 'wakeup', 'fall', 'tap', 'slide', 'flip180', 'flip90', 'rotate_left', 'rotate_right'])],
};
module.exports = definition;
Supported color modes
No response
Color temperature range
No response
+1 from me - just purchased a Cube T1 Pro, not realising it's not yet supported. I'm happy to help with figuring out how to integrate it - but creating a custom converter is beyond my (very limited) abilities. It's really difficult to test too, because some cube actions seem to trigger every zigbee device on the network
+1!
+1 from me - just purchased a Cube T1 Pro, not realising it's not yet supported. I'm happy to help with figuring out how to integrate it - but creating a custom converter is beyond my (very limited) abilities. It's really difficult to test too, because some cube actions seem to trigger every zigbee device on the network
From what I understand, the most important parts are the "fromZigbee" key (to process the input) and the "exposes" key (to output the entities that are displayed on HA). On the older version, they've created custom methods for the zigbee input processing. Maybe taking inspiration from there could lead us somewhere.
What is logged to the debug log when triggering actions on this device?
See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable debug logging.
I couldn't get it to log anything at all when I enabled debug logging - I'm bound to be doing something wrong. Part of the problem is that even without any external converter, the cube does weird 'stuff', messing with every other zigbee device - so there's a lot of noise to contend with. In response to @dabrahim 's comment - I played with the converter you specified at the top of this post, but couldn't get the device to show any values in Zigbee2MQTT

T1 Pro is a lot different than the classic cube. It can operate in two modes:
- Scene Mode (default mode, this is new)
- rotate
- shake
- hold
- side up (which side is facing up when put down)
- 1 min inactivity
- Action Mode (default mode, works like the classic cube)
- slide
- rotate
- tap
- flip90, flip180
- shake
- 1 min inactivity (new feature, but I personally didn't see any responses after 1min delay, I suppose it has to be manually turned on via Aqara Home app)
~~I'm new to HA, and only get to know z2m literally two weeks ago. So totally novice on coding converters. But I fiddled with MFKZQ01LM's code a bit, and ~~able to get shake, rotation, hold, and side up working.~~ able to get action mode working (slide, rotate, tap, flip90, flip180, shake).~~
~~Those satisfies most of my needs. It'll be really awesome if tap and flip could work too, but that requires switching operation mode to Action Mode, and I can't figure out how, to be precise, I don't know what cluster attribute controls the operation mode.~~
~Looks like action mode is the default operation mode, I haven't figured out how to switch mode yet.~
UPDATE 1/3
Pressing the LINK/PAIRING button 5 times can toggle between the two modes.
Some folks reporting my converter code doesn't work, and they run into debug messages like this:
Debug 2023-01-03 21:52:45 - Received Zigbee message from '0x54ef44100062c386', type 'commandToggle', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
Debug 2023-01-03 21:52:45 - No converter available for 'CTP-R01' with cluster 'genOnOff' and type 'commandToggle' and data '{}'
It never occurred to me, I guess it could be because the cube needs the Aqara Home app for initial configuration, and I happen to have an Aqara hub and played with that first before pairing to Z2M and coding my converter.
Anyways, Here's my code, feel free to take it:
/**
# Two Modes
## Scene Mode
- rotate
- shake
- hold
- side up
- trigger after one-min inactivity
## Action Mode
- slide
- rotate
- tap twice
- flip90, flip180
- shake
- trigger after one-min inactivity
# Clusters (Scene Mode):
## Endpoint 2:
| Cluster | Data | Description |
| ------------------ | ------------------------- | ----------------------------- |
| aqaraopple | {329: 0-5} | i side facing up |
| genMultistateInput | {presentValue: 0} | action: shake |
| genMultistateInput | {presentValue: 4} | action: hold |
| genMultistateInput | {presentValue: 2} | action: wakeup |
| genMultistateInput | {presentValue: 1024-1029} | action: fall with ith side up |
## Endpoint 3:
| Cluster | Data | Desc |
| --------- | ------------------------------------- | ------------------------------------------ |
| genAnalog | {267: 500, 329: 3, presentValue: -51} | 267: NA, 329: side up, presentValue: angle |
*/
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const xiaomi = require('zigbee-herdsman-converters/lib/xiaomi');
const e = exposes.presets;
const ea = exposes.access;
const OPS_MODE = {
ACTION: 0,
SCENE: 1,
};
const ops_mode_lookup = { 0: 'action mode', 1: 'scene mode' };
const aqara_opple = {
cluster: 'aqaraOpple',
type: ['attributeReport', 'readResponse'],
options: (definition) => [
...xiaomi.numericAttributes2Options(definition),
exposes.enum('operation_mode', ea.STATE, ['scene mode', 'action mode']),
],
convert: (model, msg, publish, options, meta) => {
// console.log('>>>> ops mode', meta.state.operationMode);
if (msg.data.hasOwnProperty('155') || msg.data.hasOwnProperty('328')) {
const ops_mode = msg.data['155'] || msg.data['328'];
meta.state.operationMode = ops_mode;
}
const operation_mode = ops_mode_lookup[meta.state.operationMode];
return {
...xiaomi.numericAttributes2Payload(msg, meta, model, options, msg.data),
operation_mode,
action: 'side_up',
side_up: msg.data['329'],
};
},
};
const action_multistate = {
...fz.MFKZQ01LM_action_multistate,
convert: (model, msg, publish, options, meta) => {
if (meta.state.operationMode === OPS_MODE.ACTION) {
return fz.MFKZQ01LM_action_multistate.convert(
model,
msg,
publish,
options,
meta
);
} else {
const value = msg.data['presentValue'];
let scene_action_multistate;
if (value === 0) scene_action_multistate = { action: 'shake' };
else if (value === 2) scene_action_multistate = { action: 'wakeup' };
else if (value === 4) scene_action_multistate = { action: 'hold' };
else if (value >= 1024)
scene_action_multistate = { action: 'side_up', side_up: value - 1024 };
return scene_action_multistate;
}
},
};
const definition = {
zigbeeModel: ['lumi.remote.cagl02'],
model: 'CTP-R01',
vendor: 'Lumi',
description: 'Aqara cube T1 Pro',
meta: { battery: { voltageToPercentage: '3V_2850_3000' } },
fromZigbee: [aqara_opple, action_multistate, fz.MFKZQ01LM_action_analog],
toZigbee: [],
exposes: [
/* Device Info */
e.battery(),
e.battery_voltage(),
e.device_temperature(),
e.power_outage_count(false),
exposes
.enum('operation_mode', ea.STATE, ['scene mode', 'action mode'])
.withDescription(
'Press LINK button 5 times to toggle between action mode and scene mode'
),
/* Actions */
e.angle('action_angle'),
e.cube_side('action_from_side'),
e.cube_side('action_side'),
e.cube_side('action_to_side'),
e.cube_side('side').withDescription('Destination side of action'),
e.cube_side('side_up').withDescription('Upfacing side of current scene'),
e.action([
'shake',
'wakeup',
'fall',
'tap',
'slide',
'flip180',
'flip90',
'hold',
'side_up',
'rotate_left',
'rotate_right',
]),
],
};
module.exports = definition;
I tried using the external converter code provided by @JJPro and although the cube is now correctly identified by Z2M (including sensor, configuration and diagnostic entities), they all report N/A or Unknown states. Not only that, but when I shake the cube, it toggles all of by Zigbee lights on/off, despite not having any automation set up.
they all report N/A or Unknown states
Do you mean the following:
- action
- action_angle
- action_side
- side_up
- action_to_side
- action_from_side
It's normal you see null values, cause they only contain values while in motion, and change very fast and won't get a chance to show in z2m frontend. If you take a look at the z2m logs or node-red debug console, you'll see their values being logged.
Not only that, but when I shake the cube, it toggles all of by Zigbee lights on/off, despite not having any automation set up.
I don't have this issue. Could it be the gateway you use? T1 Pro requires Zigbee 3.0. I'm using SONOFF Dongle Plus-E.
@JJPro, thank you for the reply.
My logs are not reporting any activity from the Cube T1 Pro.
As for the dongle, I'm using the SONOFF Dongle Plus-P, which supports Zigbee 3.0 as well.
The configuration is correct, so I'm not really sure why this is happening.
I have a similar problem. The only activity i see in my logs is from endpoint 1 cluster "genOnOff". These messages are empty but are toggling all of my devices on/off, despite having no automation set up.
@filipeaparicio91 @sjohannsen1
I've updated code in my original comment.
Last night, I reset my cube and found all my actions failing to work. Then I figured the cube is now in action mode (which works exactly like the classic cube).
Most likely during my last experiment, I have switched its operation mode to scene mode in Aqara Home app before pairing to Z2M, and the mode was saved. I wasn't aware of the situation, and assumed that to be the default operation mode.
Now the code has been updated, it should pull data in correctly, and work like the classic cube. I still haven't figured how to switch between modes yet.
For your issue randomly toggling other devices on/off, it yet haven't occurred to me. I have a hypothesis, could it be like the cube is paired to a router instead of the coordinator? and that router is not fully compatible with zigbee 3.0? I'm still new to HA and Z2M, just random thoughts. Then I suggest try repairing it directly to your main coordinator. (See Map view in Z2M frontend to confirm)

@JJPro, I tried your updated code and the behavior is the same. I was able to retrieve some debug log entries from Z2M, which say this:
Debug 2023-01-03 21:52:45 - Received Zigbee message from '0x54ef44100062c386', type 'commandToggle', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
Debug 2023-01-03 21:52:45 - No converter available for 'CTP-R01' with cluster 'genOnOff' and type 'commandToggle' and data '{}'
I keep getting these entries when I shake the cube and occasionally when I rotate it on a random side.
I continue not getting any values reported in Z2M, even in the info logs.
As for the connection, it is currently connected through a router (which supports Zigbee 3.0), but the same behavior was observed when connected directly to the coordinator.
I have a similar problem. The only activity i see in my logs is from endpoint 1 cluster "genOnOff". These messages are empty but are toggling all of my devices on/off, despite having no automation set up.
I'm having this exact same issue.
I have noticed this behavior
Flip:
Received Zigbee message from '0x54ef4410006a47c0', type 'commandOn', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
Rotate:
Received Zigbee message from '0x54ef4410006a47c0', type 'commandOff', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
Tap:
Received Zigbee message from '0x54ef4410006a47c0', type 'commandToggle', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
Attempt to switch modes by pressing the reset button 5x:
Received Zigbee message from '0x54ef4410006a47c0', type 'attributeReport', cluster 'aqaraOpple', data '{"328":0}' from endpoint 1 with groupID 0
This last one goes back and forth from data '{"328":0}' to data '{"328":1}'
Hey, I updated my code again in original comment, Now it's working on both scene mode and action mode. Pressing the LINK button 5 times to toggle between them.
I never saw the genOnOff/commandToggle message probably because the cube needs the Aqara Home app for initial configuration, and I happen to have an Aqara hub and played with that first before pairing to Z2M and started coding my converter. I have no idea.
I only have one cube and can't start from fresh to cover the genOnOff cluster personally. I don't see an option to reset the cube within Aqara Home app. and long pressing the LINK button and repairing doesn't give me that message either.
So your comment about the device being configured when you first connected it to the aqara hub got me thinking and I think I'm onto something.
I added a configure: section
Here's a snippet from your code with the added configure section
const definition = {
zigbeeModel: ['lumi.remote.cagl02'],
model: 'CTP-R01',
vendor: 'Lumi',
description: 'Aqara cube T1 Pro',
meta: { battery: { voltageToPercentage: '3V_2850_3000' } },
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await endpoint.write('aqaraOpple', {'mode': 1}, {manufacturerCode: 0x115f});
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff','genPowerCfg','genMultistateInput']);
},
fromZigbee: [aqara_opple, action_multistate, fz.MFKZQ01LM_action_analog],
I'm not sure if this is complete and fully configured but I am finally starting to see the proper actions.
2023-01-04 01:00:02Received Zigbee message from '0x54ef4410006a47c0', type 'attributeReport', cluster 'genAnalogInput', data '{"267":500,"329":2,"presentValue":-58.40999984741211}' from endpoint 3 with groupID 0
Info 2023-01-04 01:00:02MQTT publish: topic 'zigbee2mqtt/0x54ef4410006a47c0', payload '{"action":"rotate_left","action_angle":-58.41,"action_from_side":null,"action_side":null,"action_to_side":null,"battery":null,"device_temperature":null,"linkquality":15,"operationMode":1,"operation_mode":"scene mode","power_outage_count":null,"side":null,"side_up":2,"voltage":null}'
Info 2023-01-04 01:00:02MQTT publish: topic 'zigbee2mqtt/0x54ef4410006a47c0', payload '{"action":"","action_angle":null,"action_from_side":null,"action_side":null,"action_to_side":null,"battery":null,"device_temperature":null,"linkquality":15,"operationMode":1,"operation_mode":"scene mode","power_outage_count":null,"side":null,"side_up":2,"voltage":null}'
Info 2023-01-04 01:00:02MQTT publish: topic 'zigbee2mqtt/0x54ef4410006a47c0/action', payload 'rotate_left'
I also needed to comment out these lines (55 and 68):
...xiaomi.numericAttributes2Options(definition),
...xiaomi.numericAttributes2Payload(msg, meta, model, options, msg.data),
@jzee923 & @JJPro
You two are getting somewhere! Adding the configure block at first gave me a configuration error, but after switching between action and scene modes a few times, if correctly configured the cube and started reporting payloads correctly.
Commenting lines 55 & 68 was not required for my cube to start behaving correctly.
I have not tried any automation yet, but the action mode is showing some inconsistent behaviours. For example, occasionally it becomes stuck on one of the sides and does not update until a rotate or shake action happens. Using the scene mode is much more reliable, and accurately reports the side facing up every time.
~~Z2M logs also report rotate_left and rotate_right in both scene and action mode, but the HA action sensor only reports rotation when the cube is set to action mode.~~ EDIT: After changing modes back and forth, HA is now picking up rotation for scenes as well! I'm going to start testing some automations.
Nevertheless, this is a massive improvement and I can finally start testing the cube without having my lights flashing all the time.
Thank you @JJPro & @jzee923! The cube is finally reporting correctly with the addition of your code. Just like @filipeaparicio91 has commented, I got a configuration error that could be resolved by changing the mode a few times. Both modes behave consistently. However, I noticed that the reported side was always off. After looking into the old "action_multistate"- converter, i noticed that assignment of numbers to sides has changed. While the old cube was numbered 0-5, the new one is numbered 1-6.
Source: https://github.com/kirovilya/ioBroker.zigbee
+---+
| 3 |
+---+---+---+
| 5 | 1 | 2 |
+---+---+---+
| 4 |
+---+
| 6 |
+---+
Side 1 is with the MI logo, side 6 contains the battery door.
adapted from "zigbee-herdsman-converters/converters/fromZigbee"
I added:
const utils = require('zigbee-herdsman-converters/lib/utils');
and changed @JJPro converters by adding the old converter with updated sides:
const aqara_opple = {
cluster: 'aqaraOpple',
type: ['attributeReport', 'readResponse'],
options: (definition) => [
...xiaomi.numericAttributes2Options(definition),
exposes.enum('operation_mode', ea.STATE, ['scene mode', 'action mode']),
],
convert: (model, msg, publish, options, meta) => {
if (msg.data.hasOwnProperty('155') || msg.data.hasOwnProperty('328')) {
const ops_mode = msg.data['155'] || msg.data['328'];
meta.state.operationMode = ops_mode;
};
const operation_mode = ops_mode_lookup[meta.state.operationMode];
return {
...xiaomi.numericAttributes2Payload(msg, meta, model, options, msg.data),
operation_mode,
action: 'side_up',
side_up: msg.data['329']+1,
};
},
};
const action_multistate = {
cluster: 'genMultistateInput',
type: ['attributeReport', 'readResponse'],
options: [exposes.options.legacy()],
convert: (model, msg, publish, options, meta) => {
const value = msg.data['presentValue'];
let result;
if (value === 0) result = { action: 'shake' };
else if (value === 2) result = { action: 'wakeup' };
else if (value === 4) result = { action: 'hold' };
else if (value >= 512) result = { action: 'tap', side: value - 511 };
else if (value >= 256) result = { action: 'slide', side: value - 255 };
else if (value >= 128) result = { action: 'flip180', side: value - 127 };
else if (value >= 64) result = { action: 'flip90', action_from_side: Math.floor((value - 64) / 8) + 1, action_to_side: (value % 8) + 1, action_side: (value % 8) + 1, from_side: Math.floor((value - 64) / 8) + 1, to_side: (value % 8) + 1, side: (value % 8) + 1 };
else if (value >= 1024) result = { action: 'side_up', side_up: value - 1023 };
if (result && !utils.isLegacyEnabled(options)) { delete result.to_side, delete result.from_side };
return result ? result : null;
},
};
Now everything works consistently and as it should for me. The only thing missing is a way to change modes without accessing the reset button.
@sjohannsen1 this works!
I had to reformat some of the else statements as Z2M was not starting, and it's now reporting the correct side every time.
Here is the full working code:
/**
# Two Modes
## Scene Mode
- rotate
- shake
- hold
- side up
- trigger after one-min inactivity
## Action Mode
- slide
- rotate
- tap twice
- flip90, flip180
- shake
- trigger after one-min inactivity
# Clusters (Scene Mode):
## Endpoint 2:
| Cluster | Data | Description |
| ------------------ | ------------------------- | ----------------------------- |
| aqaraopple | {329: 0-5} | i side facing up |
| genMultistateInput | {presentValue: 0} | action: shake |
| genMultistateInput | {presentValue: 4} | action: hold |
| genMultistateInput | {presentValue: 2} | action: wakeup |
| genMultistateInput | {presentValue: 1024-1029} | action: fall with ith side up |
## Endpoint 3:
| Cluster | Data | Desc |
| --------- | ------------------------------------- | ------------------------------------------ |
| genAnalog | {267: 500, 329: 3, presentValue: -51} | 267: NA, 329: side up, presentValue: angle |
*/
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const xiaomi = require('zigbee-herdsman-converters/lib/xiaomi');
const utils = require('zigbee-herdsman-converters/lib/utils');
const e = exposes.presets;
const ea = exposes.access;
const OPS_MODE = {
ACTION: 0,
SCENE: 1,
};
const ops_mode_lookup = { 0: 'action mode', 1: 'scene mode' };
const aqara_opple = {
cluster: 'aqaraOpple',
type: ['attributeReport', 'readResponse'],
options: (definition) => [
...xiaomi.numericAttributes2Options(definition),
exposes.enum('operation_mode', ea.STATE, ['scene mode', 'action mode']),
],
convert: (model, msg, publish, options, meta) => {
if (msg.data.hasOwnProperty('155') || msg.data.hasOwnProperty('328')) {
const ops_mode = msg.data['155'] || msg.data['328'];
meta.state.operationMode = ops_mode;
};
const operation_mode = ops_mode_lookup[meta.state.operationMode];
return {
...xiaomi.numericAttributes2Payload(msg, meta, model, options, msg.data),
operation_mode,
action: 'side_up',
side_up: msg.data['329']+1,
};
},
};
const action_multistate = {
cluster: 'genMultistateInput',
type: ['attributeReport', 'readResponse'],
options: [exposes.options.legacy()],
convert: (model, msg, publish, options, meta) => {
const value = msg.data['presentValue'];
let result;
if (value === 0) result = { action: 'shake' };
else if (value === 2) result = { action: 'wakeup' };
else if (value === 4) result = { action: 'hold' };
else if (value >= 512) result = {action: 'tap', side: value-511};
else if (value >= 256) result = {action: 'slide', side: value-255};
else if (value >= 128) result = {action: 'flip180', side: value-127};
else if (value >= 64) result = {action: 'flip90', action_from_side: Math.floor((value-64) / 8)+1, action_to_side: (value % 8)+1, action_side: (value % 8)+1, from_side: Math.floor((value-64) / 8)+1, to_side: (value % 8)+1, side: (value % 8)+1};
else if (value >= 1024) result = { action: 'side_up', side_up: value - 1023 };
if (result && !utils.isLegacyEnabled(options)) {delete result.to_side, delete result.from_side};
return result ? result : null;
},
};
const definition = {
zigbeeModel: ['lumi.remote.cagl02'],
model: 'CTP-R01',
vendor: 'Lumi',
description: 'Aqara cube T1 Pro',
meta: { battery: { voltageToPercentage: '3V_2850_3000' } },
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await endpoint.write('aqaraOpple', {'mode': 1}, {manufacturerCode: 0x115f});
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff','genPowerCfg','genMultistateInput']);
},
fromZigbee: [aqara_opple, action_multistate, fz.MFKZQ01LM_action_analog],
toZigbee: [],
exposes: [
/* Device Info */
e.battery(),
e.battery_voltage(),
e.device_temperature(),
e.power_outage_count(false),
exposes
.enum('operation_mode', ea.STATE, ['scene mode', 'action mode'])
.withDescription(
'Press LINK button 5 times to toggle between action mode and scene mode'
),
/* Actions */
e.angle('action_angle'),
e.cube_side('action_from_side'),
e.cube_side('action_side'),
e.cube_side('action_to_side'),
e.cube_side('side').withDescription('Destination side of action'),
e.cube_side('side_up').withDescription('Upfacing side of current scene'),
e.action([
'shake',
'wakeup',
'fall',
'tap',
'slide',
'flip180',
'flip90',
'hold',
'side_up',
'rotate_left',
'rotate_right',
]),
],
};
module.exports = definition;
EDIT: I just tried automating the cube while in "scene mode" and everything runs smoothly. Using MQTT as the trigger to listen to "zigbee2mqtt/[YOUR_CUBE_NAME]/action", I can choose between "tap", "side_up", "rotate_left", "rotate_right", "hold", "shake" and "wakeup" payloads in combination with the "Side up" sensor. I have not tried doing any automations using the "action mode" yet, but I assume it will work as well.
As previously mentioned, I think the last missing piece is being able to change the Operation mode directly on HA or Z2M without having to open the cube.
As previously mentioned, I think the last missing piece is being able to change the Operation mode directly on HA or Z2M without having to open the cube.
I'm fairly certain we need to create or use an existing converter in toZigbee in order for this to work. I tried a few things but have made no progress. I'm not entirely sure where to go for this one.
@CrazyCoder no, ... is spread operator in JS.