I have the Xiomi Mi Cube. I use this driver by Veeceeoh
IMPORT URL: https://raw.githubusercontent.com/veeceeoh/xiaomi-hubitat/master/devicedrivers/xiaomi-cube-controller-hubitat.src/xiaomi-aqara-wireless-switch.groovy
You can use rule machine to program it or the app by BTPWorld : [RELEASE] Magic Cube
These ARE FUN!