[SOLVED] Xiaomi Aqara Vibration Sensor

I have the Xiaomi binding installed and working with several door sensors and a button.

I just added the Aquara Vibration sensor to the Xiaomi app and while the binding docs say the vibration sensor is supported , I can neither automatically discover it nor manually add it. It does not show up anywhere in the paper UI.

Is there something I’m missing?

Maybe try removing the sensor from the app and see if OH can discover.

I had the same problem and didn´t find any solutions.

What binding and hardware are you using?

Binding
https://www.openhab.org/addons/bindings/mihome/
Hardware
https://www.gearbest.com/smart-home-controls/pp_009661787808.html?wid=1433363
https://www.gearbest.com/alarm-systems/pp_659225.html?wid=1433363

Not sure what binding version your using but here’s the 2.4 snapshot jar if you wanna give it a try. I’m using openhabian so jar files go in /usr/share/openhab2/addons depending on your setup the location may be different.

https://openhab.ci.cloudbees.com/job/openHAB2-Bundles/lastSuccessfulBuild/org.openhab.binding$org.openhab.binding.mihome/

I’m using stock binding v2.3.0
I really trying to stay stock.
I could try a snapshot for testing if I know the device is not supported in v2.3.0. Have you tried discovering the device in the snapshot?

I’m using the package install on Ubuntu, the install docs tell me the folder for manually adding add-ons

I don’t use the mihome binding so can’t say, if 2.4 doesn’t work just delete it and reinstall 2.3. Another option is zigbee2mqtt but will require some additional hardware. I use the CC2531 stick with zigbee2mqtt and seem to be very reliable.

Here are the know supported devices for zigbee2mqtt if your interested.
https://github.com/Koenkk/zigbee2mqtt/wiki/Supported-devices

I uninstalled the stock binding and dropped in the snapshot and the sensor was immediately discovered

1 Like

First of all - I run OpenHAB 2.3 stable on OpenHABian 1.4 on a RPi 3B+

did as @smitopher and deinstalled the 2.3 binding and dropped the 2.4 snapshot of the binding in …/addons.
Now my Vibration sensor is found in PaperUI. As I rely on text-configuration I use this Things file:

Bridge mihome:bridge:7c49xxx "Xiaomi Gateway PL12" @ "PL12" [ serialNumber="7c49xxx", ipAddress="192.168.178.11", port=9898, key="xxxyyy", pollingInterval=1000 ] 
{
	Things:
		gateway				7c49xxx		"Xiaomi Mi Smart Home Gateway PL12" 	@ "PL12"		[itemId="7c49xxx"]
		sensor_wleak_aq1		158d0xxx	"Xiaomi Water Leak Sensor Holzofen"	@ "PL12 KG"		[itemId="158d0xxx"]
		sensor_vibration		158d1xxx	"Xiaomi Vibration Sensor WoZi West"	@ "PL12 WoZi"		[itemID="158d1xxx"]
		sensor_weather_v1		158d2xxxx	"Xiaomi Temperature Sensor" 		@ "PL12 OG"		[itemId="158d2xxx"]
		sensor_motion_aq2		158d3xxx	"Xiaomi Motion Sensor" 			@ "PL12 Eingang"	[itemId="158d3xxx"]
		sensor_switch			158d4xxx	"Xiaomi Mi Wireless Switch" 		@ "PL12 Eingang"	[itemId="158d4xxx"]
		smoke				158d5xxx	"Xiaomi Smoke Detector" 		@ "PL12 OG"		[itemID="158d5xxx"]
}

nevertheless, the Vibration sensor is shown offline:


whereas the other sensor are online like:

Is there an issue with 2,4 snapshot and creating Things via text file or do I miss something?

My Inbox Shows this:

so, the sensor is found - and I could use it I guess, but I’d like to have it within my Things file - not in the PaperUI only.

My log Shows:


2018-11-07 20:59:23.448 [hingStatusInfoChangedEvent] - 'mihome:gateway:7c49xxx:7c49xxx' changed from ONLINE to UNINITIALIZED
2018-11-07 20:59:23.463 [hingStatusInfoChangedEvent] - 'mihome:gateway:7c49xxx:7c49xxx' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2018-11-07 20:59:23.471 [hingStatusInfoChangedEvent] - 'mihome:sensor_vibration:7c49xxx:158d1xxx' changed from UNINITIALIZED (HANDLER_CONFIGURATION_PENDING) to UNINITIALIZED
2018-11-07 20:59:23.503 [hingStatusInfoChangedEvent] - 'mihome:sensor_vibration:7c49xxx:158d1xxx' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2018-11-07 20:59:23.507 [hingStatusInfoChangedEvent] - 'mihome:sensor_wleak_aq1:7c49xxx:158d0xxx' changed from ONLINE to UNINITIALIZED
2018-11-07 20:59:23.533 [hingStatusInfoChangedEvent] - 'mihome:sensor_wleak_aq1:7c49xxx:158d0xxx' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2018-11-07 20:59:23.546 [hingStatusInfoChangedEvent] - 'mihome:bridge:7c49xxx' changed from ONLINE to UNINITIALIZED
2018-11-07 20:59:23.585 [hingStatusInfoChangedEvent] - 'mihome:bridge:7c49xxx' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2018-11-07 20:59:24.081 [hingStatusInfoChangedEvent] - 'mihome:bridge:7c49xxx' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2018-11-07 20:59:24.086 [hingStatusInfoChangedEvent] - 'mihome:gateway:7c49xxx:7c49xxx' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2018-11-07 20:59:24.090 [hingStatusInfoChangedEvent] - 'mihome:sensor_wleak_aq1:7c49xxx:158d0xxx' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2018-11-07 20:59:24.093 [hingStatusInfoChangedEvent] - 'mihome:sensor_vibration:7c49xxx:158d1xxx' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2018-11-07 20:59:24.143 [me.event.ThingUpdatedEvent] - Thing 'mihome:gateway:7c49xxx:7c49xxx' has been updated.
2018-11-07 20:59:24.150 [me.event.ThingUpdatedEvent] - Thing 'mihome:sensor_wleak_aq1:7c49xxx:158d0xxx' has been updated.
2018-11-07 20:59:25.086 [hingStatusInfoChangedEvent] - 'mihome:bridge:7c49xxx' changed from INITIALIZING to ONLINE
2018-11-07 20:59:25.132 [hingStatusInfoChangedEvent] - 'mihome:sensor_vibration:7c49xxx:158d1xxx' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to UNINITIALIZED (HANDLER_CONFIGURATION_PENDING)
2018-11-07 20:59:25.138 [hingStatusInfoChangedEvent] - 'mihome:gateway:7c49xxx:7c49xxx' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2018-11-07 20:59:25.141 [hingStatusInfoChangedEvent] - 'mihome:sensor_wleak_aq1:7c49xxx:158d0xxx' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2018-11-07 20:59:25.156 [hingStatusInfoChangedEvent] - 'mihome:sensor_wleak_aq1:7c49xxx:158d0xxx' changed from INITIALIZING to ONLINE
2018-11-07 20:59:25.178 [hingStatusInfoChangedEvent] - 'mihome:gateway:7c49xxx:7c49xxx' changed from INITIALIZING to ONLINE

as you can see, the Vibration sensor stays in “HANDLER_CONFIGURATION_PENDING”…

Do I miss something or is the 2.4 snapshot binding not ready for text-Thing?