Hi guys. Just received my Aqara Magic cube and it works fantastic with ZHA. One question though. When the cube is being rotated, the event doesn’t describe which side is facing up. My current ugly workaround is to have a input_number
that is updated every time the flip
event arrives, but it’s not very stable as the flip action isn’t guaranteed to fire reliably. So it would be nice to tell which side is being rotated directly from the rotation event itself.
Is there a better way to get this information? Thanks!
{
"event_type": "zha_event",
"data": {
"device_ieee": "00:15:8d:00:05:c1:9b:39",
"unique_id": "00:15:8d:00:05:c1:9b:39:3:0x000c",
"device_id": "03827c394d511af706b16f90186609a4",
"endpoint_id": 3,
"cluster_id": 12,
"command": "rotate_left",
"args": {
"relative_degrees": -17.009998321533203
}
},
"origin": "LOCAL",
"time_fired": "2021-07-03T23:46:36.500080+00:00",
"context": {
"id": "80f0e9f4694f71d5c2e814a069532faa",
"parent_id": null,
"user_id": null
}
}