Device handler for Xiaomi Mi Magic Controller. All 6 movements are supported.
Load xiaomi-mi-cube.groovy in My Device Handlers section
Pair the cube by tapping a button located inside. Watch for “catchall” line in Hub/Location Events (not Live Log).
I.e. catchall: 0104 0000 01 01 0100 00 DB91 00 04 1234 0A 01 …
Create a new device and use DB91 as Device Network Id.
2: Flip (90 degrees)
3: Flip (180 degrees)
6: Rotate left
7: Rotate right
To use with CoRE:
Let’s say you want to handle knocking:
Add a condition with:
- Capability: Button
- Buttons list: Your cube device
- Button(s): #5
- Comparison: is
- Value: pushed
If CoRE detects only 1 button, rotate/flip the cube to update info about buttons quantity.