Never mind, stumbled here and there myself and found the way forward. So sharing here just for someone in a fix like myself.
In short I was unable to make much headway without the Mijia Gateway, so ordered one I was getting for cheap. I got the Mijia Gateway (the old version v1 as HASS tell that new Aqara V2 has troubles enabling the local LAN access protocol).
Onwards I installed the Mijia Home android app, and added the gateway, which promptly asked for a firmware update, to which I permitted. After the update I added the newer Aqara Cube “MFKZQ01LM” in the Mijia Home app, and tried making some if cube action “x” , then do “y” on Mijia gateway (like changing a light or playing a tune).
When I enabled local LAN communication on Mijia Gateway, it was auto detected on Home Assistant and the gateway ring light and the aqara cube were available as entities in HASS (0.91.0).
From the main screen cube “badge”, I was able to see that any cube positional events were sent to HASS and were updated. The events available on Aqara Cube are
flip90
flip180
move
tap_twice
shake_air
swing
alert
free_fall
rotate
So i tried to build some basic automation to toggle lights on/off with the rotate action. Based on the excellent information provided on this page
Cube actions
I tried building the automation via automation editior UI. I did write the automation correctly by only changing and replacing my own entity IDs and action type in the code syntax from the above page. However the automation were not getting triggered by rotating the cube.
I tried firing the event manually via Events UI in HASS, by putting in the event type cube_action, it worked, and toggled the connected smart light in on/off sequence.
I guessed probably events are not sent to HASS, but it was contradictory, since the cube badge on the main page was showing the different events coming from cube (it was live as they happened like move, rotate, tap twice).
So by hit and trial I stumbled over this post , which was true help.
Listen to Events
Observing the events log this way I found that newer aqara cube fire events with the event type
event_type: xiaomi_aqara.cube_action (and not older cube_action only)
So i replaced the event type in automation with this correct parameter and voila…it came alive.
The possibilities are numerous now , will continue experiments about how to make more useful automation from cube.
Thanks.