Aqara cube w/ ZHA, how to know which side is being rotated?

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

If I am correct the cube’s rotation events are exactly the same on each side. Rotation isn’t depicted by the side the cube is on.

The input number way (or input_select as I do it) is probably your best option here. Though it doesn’t always register as well. I use multiple sides with different actions. E.g. side 1 rotation will dim lights, side 2 will control the google home volume, etc.

Thanks @jimz011. I guess I’ll go with the workaround.

Do you have an example of what your automation looks like to get different options for rotation based on the side that’s activated?