I am currently not at home, I can provide you with the code later. But, I used the binding documentation.
// Xiaomi Cube - see "xiaomi.rules" for action triggers
Number Cube_RotationAngle { channel="mihome:sensor_cube:<ID>:rotationAngle" }
Number Cube_RotationTime { channel="mihome:sensor_cube:<ID>:rotationTime" }
Number Cube_Battery <battery> { channel="mihome:sensor_cube:<ID>:batteryLevel" }
Switch Cube_BatteryLow <energy> { channel="mihome:sensor_cube:<ID>:lowBattery" }
rule "Xiaomi Cube"
when
Channel 'mihome:sensor_cube:<ID>:action' triggered
then
var actionName = receivedEvent.getEvent()
switch(actionName) {
case "MOVE": {
<ACTION>
}
case "ROTATE_RIGHT": {
<ACTION>
open the App - > click on the Gateway - > click on the three points in the top right corner - > about -> tap 10 times on the version number - > Hub Info
By checking the doc’s about the binding I’ve discovered that the aqara cubes are supported now.
So I updated to the last milestone build: “openHAB 2.4.0~M3-1 (Milestone Build)”.
The aqara cube appeared in the PaperUI inbox.
-> problem solved: “Aqara cubes are OK” too
This is very interesting. I might just get a conbee. Do you have any idea if I can run it on the same Pi as OH? Or if I should get the raspbee instead of the conbee?
I guess. Not very cpu demanding.
Personally I would go for USB since it is more portable, but if you are sure you are happy with the pi as platform the raspbee could be more convenient.
Deconz uses github as their forum. Browse Issues for info.
I’m already running OH on SSD over USB, just worried that there might not be enough power for another USB device. Not sure I want to dedicate another machine for the Deconz gateway. How are you running yours?