Xiaomi cube in Home Assistant as remote control

February 10, 2020
Xiaomi cube with channel logos

The Xiaomi cube is a zigbee remote control (The official name is “Xiaomi Aqara smart home cube”). It can detect how you turn the cube (detect which face up is up), shake, tap and rotation. When I bought this I did not know exactly what I was going to do with it. I just thought it would be fun to play with it.

I have made it an internet radio remote control for a chromecast using Home Assistant automations. I have an internet radio channel on each side of the cube, and flipping the cube will start the channel facing up. I made channel logos on each face of the cube. Turning the cube will increase or decrease the volume. Shaking the cube will stop the audio.