Mi(Xiaomi) Smart home bindings?

Hi. I wrote an email, told me the price, paid and received my order. All perfectly works. They explained that much connected.

Can i use this wall switch with xiaomi home gateway and this binding too?

Xiaomi Aqara wall switch Wireless version

This is the flat version, which can be glued to the wall. No flush mount or wiring needed.

Are you implement the new features in a jar file?

Hi, I download the jar file from here, and most of thing works fine,
Bundle-Name: Xiaomi Mi Smart Home Binding
Bundle-Version: 2.1.0.201702041736
Bundle-ClassPath: .
Created-By: Apache Maven 3.3.9
Build-Jdk: 1.8.0_77

I only got little issue, the value of Temperature and Humidity is too long, can binding limit numbe to XX.xx? or let user define?
In Plug, there is three value regarding power but value never update, I can read value from Xaomi App.
Motion Sensor can it set time for manually? it looks now Binding using default 2 mins,
as Xaomi Hub will transmit 2 info regarding Motion, one is status NO_MOTION and one is NO_MOTION 120 - 1200, can it be an option and let user to define? if user didn’t define, than use default status NO_MOTION

Finally, do you mind share the newest Jar version? as I am not capable to create one by my own.

I have set a debug mode and found there is no info regarding Plug power
also, what should be the item type for wireless controller? usually it will tells you when you create items in PaperUI,
but not on wireless controller, I use Stringtype and it won’t save any state.

I am planning to support these aqara wireless switches too. I’m waiting for a sample from Aliexpress. I’ll add the support to OH1 binding so someone else could simply add it to OH2 binding too


Thanks for the release of the new version, I look forward to it. How to use plug switch???

Please can someone provide a new jar-file of the new OH2-version?

1 Like

Built and installed the binding last night.

No problem with the window sensors (which are all I have at the moment) but it seems like it’s not reading the voltage level at all though. It’s been at NaN for the last few hours.

At this time the voltage level of sensors is not broadcasted by the gateway
hopefully some new FW will add this feature

the plug usage is mentioned in the readme file https://github.com/octa22/org.openhab.binding.xiaomigateway/blob/master/README.md

Thanks? i use

Switch  XiaomiPlug "Xiaomi zigbee plug" { xiaomigateway="XXXXXXXx.plug" }
Switch  XiaomiPlugInUse "Xiaomi zigbee plug in use" { xiaomigateway="XXXXXXXx.inuse" }

I connect the load and still does not work. What am I doing wrong?

Ah - thanks for that.

Are you using the latest OH1 binding v1.10.0-SNAPSHOT? What does not work? I guess I can’'t help you without having your log and items file :-(. Please open an issue (or continue on issue 7) at Github. thanks

Yes i using the latest OH1 binding v1.10.0-SNAPSHOT.

*.items

Switch  XiaomiPlug "Xiaomi zigbee plug" { xiaomigateway="XXXXXXXx.plug" }
Switch  XiaomiPlugInUse "Xiaomi zigbee plug in use" { xiaomigateway="XXXXXXXx.inuse" }

*.sitemap

Frame label="Gateway Control" {
    Switch item=XiaomiPlug
    Switch item=XiaomiPlugInUse

 }

@alsu
check whether previous version of the binding is still installed or not?
you need to uninstall previous version from console

I deleted v1.9.0-SNAPSHOT8 from /usr/share/openhab2/addons and copied 1.10.0-SNAPSHOT

simply deleting the file isn’t enough. look at Binding Configuration inside Paper UI, see if you have two XiaomiGateway binding installed. you need to uninstall the old one from Karaf console

http://docs.openhab.org/administration/bundles.html

openhab>bundle:list All
openhab>bundle:uninstall

Thanks, removed 1.9, does not work

2017-03-17 11:15:42.953 [ERROR] [ateway.internal.XiaomiGatewayBinding] - Unknown Xiaomi gateway command: write
2017-03-17 11:15:46.817 [ERROR] [ateway.internal.XiaomiGatewayBinding] - Unknown Xiaomi gateway command: write
2017-03-17 11:15:47.902 [ERROR] [ateway.internal.XiaomiGatewayBinding] - Unknown Xiaomi gateway command: write
2017-03-17 11:15:48.803 [ERROR] [ateway.internal.XiaomiGatewayBinding] - Unknown Xiaomi gateway command: write
2017-03-17 11:16:39.343 [INFO ] [ateway.internal.XiaomiGatewayBinding] - Received packet: {"cmd":"heartbeat","model":"plug","sid":"158d00013e545f","short_id":40626,"data":"{\"status\":\"off\",\"inuse\":\"0\"}"}
2017-03-17 11:17:51.951 [ERROR] [ateway.internal.XiaomiGatewayBinding] - Unknown Xiaomi gateway command: write
2017-03-17 11:20:09.420 [INFO ] [ateway.internal.XiaomiGatewayBinding] - Received packet: {"cmd":"report","model":"plug","sid":"158d00013e545f","short_id":40626,"data":"{\"status\":\"on\"}"}
2017-03-17 11:20:09.466 [INFO ] [ateway.internal.XiaomiGatewayBinding] - Received packet: {"cmd":"report","model":"plug","sid":"158d00013e545f","short_id":40626,"data":"{\"status\":\"on\"}"}
2017-03-17 11:20:23.859 [INFO ] [ateway.internal.XiaomiGatewayBinding] - Received packet: {"cmd":"report","model":"plug","sid":"158d00013e545f","short_id":40626,"data":"{\"status\":\"off\"}"}
2017-03-17 11:20:23.883 [INFO ] [ateway.internal.XiaomiGatewayBinding] - Received packet: {"cmd":"report","model":"plug","sid":"158d00013e545f","short_id":40626,"data":"{\"status\":\"off\"}"}
2017-03-17 11:21:01.031 [INFO ] [ateway.internal.XiaomiGatewayBinding] - Received packet: {"cmd":"report","model":"plug","sid":"158d00013e545f","short_id":40626,"data":"{\"status\":\"on\"}"}
2017-03-17 11:21:01.055 [INFO ] [ateway.internal.XiaomiGatewayBinding] - Received packet: {"cmd":"report","model":"plug","sid":"158d00013e545f","short_id":40626,"data":"{\"status\":\"on\"}"}
2017-03-17 11:21:04.490 [INFO ] [ateway.internal.XiaomiGatewayBinding] - Received packet: {"cmd":"report","model":"plug","sid":"158d00013e545f","short_id":40626,"data":"{\"status\":\"off\"}"}
2017-03-17 11:21:04.511 [INFO ] [ateway.internal.XiaomiGatewayBinding] - Received packet: {"cmd":"report","model":"plug","sid":"158d00013e545f","short_id":40626,"data":"{\"status\":\"off\"}"}
2017-03-17 11:21:26.489 [ERROR] [ateway.internal.XiaomiGatewayBinding] - Unknown Xiaomi gateway command: write
2017-03-17 11:21:30.001 [ERROR] [ateway.internal.XiaomiGatewayBinding] - Unknown Xiaomi gateway command: write
2017-03-17 11:22:14.345 [INFO ] [ateway.internal.XiaomiGatewayBinding] - Received packet: {"cmd":"heartbeat","model":"plug","sid":"158d00013e545f","short_id":40626,"data":"{\"status\":\"off\",\"inuse\":\"0\"}"}
p