Mi(Xiaomi) Smart home bindings?

Are you saying that when you go into the inbox and click on the blue + icon, you don’t see the Xiaomi binding?

I do not see any Xiaomi binding under the blue + icon :frowning:

I thing I’ll try to install the OH2.2 and see if this helps

Did you click on the blue + icon and the list of bindings didn’t appear?
I’m on version 2.1.

Yes I did

Ok, looks like your installation is behaving differently to mine. In mine, when I clicked on the blue + icon, I see the list of binding I have installed appear, including the Xiaomi. I started mine with OpenHabian and that installed version 2.1 including the Xiaomi binding which didn’t work properly for switches. I then did the steps I mentioned above ie: uninstall the binding and copy the .jar file across.

Good luck!

Okay it worked on OH2.2 and the org.openhab.binding.mihome-2.2.0-SNAPSHOT.jar installed in the addon folder, but I still can’t make the plugs work.

the org.openhab.binding.mihome-2.1.0-SNAPSHOT.jar gives me the same problem with the plugs.

@Moellegaard I found that a lot of the newer binding releases (both v2.1 and v2.2) don’t work with the plug and main powered Aqara switches. The latest one I got working was the v2.2 one in the link above with a .jar size of 81,307 bytes.

1 Like

Does the 81,307 bytes work with the plugs for you?

@Moellegaard Yes, that is the latest one that works for me. All the newer ones have problem with initialization failures etc for me. It will be good to get some feedbacks from other users as well with their successes and failures using the various versions as it could be just my deployment that had problem. I was definitely not successful with the one that came with OH 2.1, hence having to ping @dimalo who provided the one with the file size of 81,307 bytes that worked for me.

How do I determine my Bridge serial number for the Thing if I am using text file setup? Do I need to try and use PaperUI first?

All that notwithstanding, I believe I am experiencing the same NPE issues as @kubawolanin There are lots of thing file validation warnings in the logs, too.

Hi guys,

New here and looking to purchase some xiaomi sensors, from what i have read the new square sensor range aren’t fully compatible just yet? Could i purchase these and just use the functions of the previous sensors for the time being?

thanks all in advance

@lowthrd Yes, the square shaped Aqara temperature/humidity/barometric sensor is still not supported by this binding yet. I’ve got two and both only show up in the Android app.

Hello, the latest gateway FW 1.4.1_148.0143 added support for the square Aqara temp/humidity/pressure sensor. The model name is ‘weather.v1’ and is the same as model ‘sensor_ht’ only adds extra pressure reading…

1 Like

Yay, that’s great news. Now to wait for someone to update the binding to recognize the new device “weather.v1”.

Here’s the trace log from my device -

2017-07-17 21:06:18.282 [DEBUG] [discovery.XiaomiItemDiscoveryService] - Unknown discovered model: weather.v1
2017-07-17 21:06:18.284 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2017-07-17 21:06:18.287 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-121,5,main] waiting for data on port 9898
2017-07-17 21:06:21.450 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.1.120:4321 on Port 9898
2017-07-17 21:06:21.452 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message {"cmd":"report","model":"weather.v1","sid":"158d0001720b48","short_id":32900,"data":"{\"temperature\":\"2127\"}"}
2017-07-17 21:06:21.453 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Updated "last time seen" for device 158d0001720b48
2017-07-17 21:06:21.456 [DEBUG] [discovery.XiaomiItemDiscoveryService] - Unknown discovered model: weather.v1
2017-07-17 21:06:21.458 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2017-07-17 21:06:21.459 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-121,5,main] waiting for data on port 9898
2017-07-17 21:06:21.461 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.1.120:4321 on Port 9898
2017-07-17 21:06:21.463 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message {"cmd":"report","model":"weather.v1","sid":"158d0001720b48","short_id":32900,"data":"{\"humidity\":\"5969\"}"}
2017-07-17 21:06:21.465 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Updated "last time seen" for device 158d0001720b48
2017-07-17 21:06:21.467 [DEBUG] [discovery.XiaomiItemDiscoveryService] - Unknown discovered model: weather.v1
2017-07-17 21:06:21.468 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2017-07-17 21:06:21.470 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-121,5,main] waiting for data on port 9898
2017-07-17 21:06:21.472 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.1.120:4321 on Port 9898
2017-07-17 21:06:21.474 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message {"cmd":"report","model":"weather.v1","sid":"158d0001720b48","short_id":32900,"data":"{\"pressure\":\"100200\"}"}
2017-07-17 21:06:21.476 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Updated "last time seen" for device 158d0001720b48

@dimalo any chance of having a look at this?

The great thing about open source software is that anyone can contribute to the codebase, once it’s available on the official distro :wink:
AFAIK @dimalo doesn’t have the device for testing purposes, and is pretty busy at the moment.

For anyone willing to add support to the new temperature sensor - take a look at this folder.
XiaomiSensorHtHandler.java is a handler for humidity and temperature sensor. Something similar (probably extension of that class?) would apply to the new weather.1 channel.

Cheers!

3 Likes

Thanks @kubawolanin Pity I am not good at programming like you guys. Hopefully some smart cookie will jump in and give this a go.

How can i download the last jar file for openhab 1.8?
Have you a link for me?

Here it is:


it has the latest support for aqara square temp/humidity/pressure sensor included…

1 Like

I upgraded my home server to OH2 a week ago. I guess I will start contributing to OH2.x version of this binding soon and retire my original binding for OH1.x :slight_smile:

4 Likes

Perfect thanks.
Is the plug86 the wifi plug?

Sadly no, it isn’t. All supported devices are Zigbee versions. (at least in OH1.x binding)