Mi(Xiaomi) Smart home bindings?

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)

Hi, I like to thank you all for making this binding available. I so happy to use it on a powerfull automation system like openhab.
One thing which I discovered while trying the secound best open source platform( some call it home assistant) was that the gateway also has an illumination sensor.

I think is directional and therefore not very usefull, but can give an indication on if you have light in your room.
It’s just a nice to have function, but I like to make you all aware of this, if you didn’t know.

UPDATE:I discovered that I had some items configuation problems, my item was set to switch and not a number. :slight_smile:

Can i switch back to the snapshot version of this binding? I now use an older binding from end of june (manually copied to addons-folder) because the newer bindings didn´t work anymore.

I´m on OH2.2 snapshot.

1 Like

Hi, just saw the new aqara motion sensors on gearbest.

Difference to the “old” motion sensor is the Holder Stand and now they have also a light intensity measurement. Seems to be a nice addition to the other sensors.

I have the mi gateway working with ohab2 like a charm. Can I turn the mi gateway alarm on ?

How did you install the binding? Is there any how-to to find regarding the configuration?

I installed the ohab2 snapshot that includes an add on binding for xiaomi smart home v2.2. It can controls devices connected to xiaomi gateway, but it could not find a channel to turn alarm on/off. Anny clue ?

How did you do that? I never updated/upgraded OH2 since i installed it. I’d like to upgrade to 2.1 and use xaiomi. Any hint?

The new water sensor is ready for pre-order. Discount with code GBCE.

1 Like