Xiaomi mihome no events from Aqara Cube (Mi cubes are OK)

Hello @pboos
Received my Xiaomi Gateway v3 and some cubes today.

Setup in Mi Home app went semi smooth, and I am able to get cube events in Mi Home.

I then used PaperUI to include the bridge and the Gateway, and I am able to control the gateway light from PaperUI Control. I’m on the 2.4.0-Snapshot Build #1292

I was never able to get the Cube to appear in the PaperUI inbox though, so I added it manually.
The Mi Id I got from Mi Home Gateway … Hub info

I then sat up some items and rules, but nothing triggers when I move the cube.

I only get the battery event from the cube and nothing else.

Here is my events.log: (with mihome grep)

/var/log/openhab2/events.log:2018-05-30 23:12:22.383 [.ItemChannelLinkAddedEvent] - Link 'Cube_BatteryLow-mihome:sensor_cube:eb3816f2:lowBattery' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:22.412 [.ItemChannelLinkAddedEvent] - Link 'Cube_RotationAngle-mihome:sensor_cube:eb3816f2:rotationAngle' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:22.532 [.ItemChannelLinkAddedEvent] - Link 'Cube_Battery-mihome:sensor_cube:eb3816f2:batteryLevel' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:22.701 [.ItemChannelLinkAddedEvent] - Link 'Cube_RotationTime-mihome:sensor_cube:eb3816f2:rotationTime' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:22.968 [.ItemChannelLinkAddedEvent] - Link 'mihome_sensor_cube_eb3816f2_rotationAngle-mihome:sensor_cube:eb3816f2:rotationAngle' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:23.024 [.ItemChannelLinkAddedEvent] - Link 'mihome_gateway_7811dcb9ed87_colorTemperature-mihome:gateway:7811dcb9ed87:colorTemperature' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:23.414 [.ItemChannelLinkAddedEvent] - Link 'mihome_gateway_7811dcb9ed87_color-mihome:gateway:7811dcb9ed87:color' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:23.474 [.ItemChannelLinkAddedEvent] - Link 'mihome_gateway_7811dcb9ed87_sound-mihome:gateway:7811dcb9ed87:sound' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:23.573 [.ItemChannelLinkAddedEvent] - Link 'mihome_gateway_7811dcb9ed87_brightness-mihome:gateway:7811dcb9ed87:brightness' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:23.681 [.ItemChannelLinkAddedEvent] - Link 'mihome_sensor_cube_eb3816f2_rotationTime-mihome:sensor_cube:eb3816f2:rotationTime' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:23.699 [.ItemChannelLinkAddedEvent] - Link 'mihome_gateway_7811dcb9ed87_volume-mihome:gateway:7811dcb9ed87:volume' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:23.710 [.ItemChannelLinkAddedEvent] - Link 'mihome_gateway_7811dcb9ed87_enableSound-mihome:gateway:7811dcb9ed87:enableSound' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:23.867 [.ItemChannelLinkAddedEvent] - Link 'mihome_gateway_7811dcb9ed87_joinPermission-mihome:gateway:7811dcb9ed87:joinPermission' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:23.887 [.ItemChannelLinkAddedEvent] - Link 'mihome_sensor_cube_eb3816f2_lowBattery-mihome:sensor_cube:eb3816f2:lowBattery' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:23.974 [.ItemChannelLinkAddedEvent] - Link 'mihome_gateway_7811dcb9ed87_illumination-mihome:gateway:7811dcb9ed87:illumination' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:24.072 [.ItemChannelLinkAddedEvent] - Link 'mihome_sensor_cube_eb3816f2_batteryLevel-mihome:sensor_cube:eb3816f2:batteryLevel' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:24.075 [.ItemChannelLinkAddedEvent] - Link 'mihome_sensor_cube_eb3816f2_action-mihome:sensor_cube:eb3816f2:action' has been added.
/var/log/openhab2/events.log:2018-05-30 23:12:24.347 [hingStatusInfoChangedEvent] - 'mihome:sensor_cube:eb3816f2' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
/var/log/openhab2/events.log:2018-05-30 23:12:25.888 [hingStatusInfoChangedEvent] - 'mihome:gateway:7811dcb9ed87' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
/var/log/openhab2/events.log:2018-05-30 23:12:27.353 [hingStatusInfoChangedEvent] - 'mihome:bridge:7811dcb9ed87' changed from UNINITIALIZED to INITIALIZING
/var/log/openhab2/events.log:2018-05-30 23:12:28.423 [hingStatusInfoChangedEvent] - 'mihome:bridge:7811dcb9ed87' changed from INITIALIZING to ONLINE
/var/log/openhab2/events.log:2018-05-30 23:12:28.428 [hingStatusInfoChangedEvent] - 'mihome:sensor_cube:eb3816f2' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
/var/log/openhab2/events.log:2018-05-30 23:12:28.431 [hingStatusInfoChangedEvent] - 'mihome:sensor_cube:eb3816f2' changed from INITIALIZING to OFFLINE
/var/log/openhab2/events.log:2018-05-30 23:12:28.435 [hingStatusInfoChangedEvent] - 'mihome:sensor_cube:eb3816f2' changed from OFFLINE to ONLINE
/var/log/openhab2/events.log:2018-05-30 23:12:28.438 [hingStatusInfoChangedEvent] - 'mihome:gateway:7811dcb9ed87' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
/var/log/openhab2/events.log:2018-05-30 23:12:28.468 [hingStatusInfoChangedEvent] - 'mihome:gateway:7811dcb9ed87' changed from INITIALIZING to ONLINE
/var/log/openhab2/events.log:2018-05-30 23:14:51.546 [ome.event.ItemCommandEvent] - Item 'mihome_gateway_7811dcb9ed87_joinPermission' received command ON
/var/log/openhab2/events.log:2018-05-30 23:14:51.548 [vent.ItemStateChangedEvent] - mihome_gateway_7811dcb9ed87_joinPermission changed from NULL to ON
/var/log/openhab2/events.log:2018-05-30 23:14:51.573 [vent.ItemStateChangedEvent] - mihome_gateway_7811dcb9ed87_brightness changed from NULL to 0
/var/log/openhab2/events.log:2018-05-30 23:14:51.574 [vent.ItemStateChangedEvent] - mihome_gateway_7811dcb9ed87_color changed from NULL to 0,0,100
/var/log/openhab2/events.log:2018-05-30 23:14:51.575 [vent.ItemStateChangedEvent] - mihome_gateway_7811dcb9ed87_illumination changed from NULL to 1292
/var/log/openhab2/events.log:2018-05-30 23:15:21.550 [vent.ItemStateChangedEvent] - mihome_gateway_7811dcb9ed87_joinPermission changed from ON to OFF
/var/log/openhab2/events.log:2018-05-30 23:15:22.966 [vent.ItemStateChangedEvent] - mihome_sensor_cube_eb3816f2_batteryLevel changed from NULL to 71
/var/log/openhab2/events.log:2018-05-30 23:15:22.967 [vent.ItemStateChangedEvent] - mihome_sensor_cube_eb3816f2_lowBattery changed from NULL to OFF
/var/log/openhab2/events.log:2018-05-30 23:17:46.816 [me.event.ThingUpdatedEvent] - Thing 'mihome:gateway:7811dcb9ed87' has been updated.
/var/log/openhab2/events.log:2018-05-30 23:18:03.068 [me.event.ThingUpdatedEvent] - Thing 'mihome:bridge:7811dcb9ed87' has been updated.
/var/log/openhab2/events.log:2018-05-30 23:24:11.225 [ome.event.ItemCommandEvent] - Item 'mihome_gateway_7811dcb9ed87_brightness' received command 18
/var/log/openhab2/events.log:2018-05-30 23:24:11.226 [vent.ItemStateChangedEvent] - mihome_gateway_7811dcb9ed87_brightness changed from 0 to 18
/var/log/openhab2/events.log:2018-05-30 23:24:13.181 [ome.event.ItemCommandEvent] - Item 'mihome_gateway_7811dcb9ed87_brightness' received command 0
/var/log/openhab2/events.log:2018-05-30 23:24:13.183 [vent.ItemStateChangedEvent] - mihome_gateway_7811dcb9ed87_brightness changed from 18 to 0

When I open Control in PaperUI for the Cube, only the battery level is shown.

Any idea on how to proceed?

Fired up Wireshark and looked for packages to/from the Gateway.
There is a UDP package coming in every 10s, but when I turn the Cube there is no extra activity.
When I turn the Gateway light on/off from PaperUI I see the command and ACK package immediately.

Could it be that I included the Cube in Mi Home before enabling the Wireless communication protocol?

Well, what du you know :slight_smile:
This turned out to be a Xiaomi Mi problem.
The cube I tried first was a white Aqara Cube.
I also bought a few pink ones, which are Mi, and presto!
Inclusion from PaperUI, items and rules works fine.
IP/UDP packages are also seen in Wireshark (obviously) when moving the pink Mi cube.
When moving the Aqara cube - nothing. Have to start a support case, but a bit unsure with whom.

I also am a bit disappointed that the cube doesn’t report which face is up.
Because of this I am not able to use it as intended, but this was bad research on my part.

I have the same issue with the aqara cube. Don’t get any triggers in openhab.
Is there a workaround to use the cube in openhab or will there be a fix by xiaomi?

Thanks in advance

Problem is the Xiaomi Gateway. (no reply from support there after 3 weeks)
Even with the Mi Cubes, it only sends gestures and not what face is up.

I ditched the Xiaomi Gateway and went the ConBee/deConz route instead.
Have a read about it:
here (Mi cube posibilities)
here (Aqara support as of 12. june -18)
and here (for OH2 integration)

Yes, it’s another USB dongle, but makes the cubes much more useful. :slight_smile:

As far as I can tell, the OH2 Zigbee binding does not support the ConBee, and with the Ti dongle it does support, does not support the cubes. (correct me if I’m wrong)

On Linux, the deConz (free) SW is easy to set up running headless under systemd.
Even with the 500ms localhost polling of the whole /sensors section from REST, it only uses 2-3% CPU.

I’ve just received my aqara Cubes realizing that they’re different from the Xiaomi Cube which is supported by the SmartHome Binding.
Is there still a way or workaround to implement these into my system?

Hey I think you can just wait that Xiaomi does an update of the gateway and give the information about this device.

I have the same Problem, any Update on this theme? :roll_eyes:

But the Problem is between gateway and openhab, right?
On mi app i see action from mi cube.

Problem is the gateway api.
That’s why I used Conbee/deconz instead.

whats conbee/deconz?

1 Like

thank you :slight_smile:

are there any news about inclusion of xiaomi aqara cube?
is it at the moment not possible to include this device to openhab?

I never received any reply an my Xiaomi support request. But I went the Conbee/deconz route and have never looked back :grin:


after a Update of “MI Home”-App it works ! :wink:


do you say the aqara cube works with the openhab Mi home binding ?
without update of binding?

in my inbox the xiaomi cube is not visible :frowning:

Yes, right, I have received an update of the Mi-App and also a Gateway Update. After these updates, the Aqara Cube works without problems. I have to say that I created the cube manually (Thing, Item, etc.)

Ok, that’s fine. When you config the thing manually … where do you read the thing id?
I don’t find the id in the app …

open the App - > click on the Gateway - > click on the three points in the top right corner - > about - > Hub Info

There are all devices including ID listed :slight_smile:

Can u kindly provide us your *.items cofiguration for the cube?