# Mi(Xiaomi) Smart home bindings?

**URL:** <https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711>\
**Category:** Home Automation\
**Created:** [December 2, 2015, 1:16pm UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711 "2015-12-02T13:16:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilhetty](https://community.openhab.org/user_avatar/community.openhab.org/emilhetty/32/1585_2.png) [@emilhetty](https://community.openhab.org/u/emilhetty)\
**Post date:** [December 2, 2015, 1:16pm UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/1 "2015-12-02T13:16:10Z")

</div>

I purchased recently the Mi Smart home kit and wondered if anyone have made any bindings or made any reasearch agaist this product?

The gateway has the same light features as the Milight that already has a bindings, so it might be something similar is my thought.  
I have not received the kit I purchased yet so have not done any research by myself.

---

<div class="post-metadata">

**Author:** ![emilhetty](https://community.openhab.org/user_avatar/community.openhab.org/emilhetty/32/1585_2.png) [@emilhetty](https://community.openhab.org/u/emilhetty)\
**Post date:** [December 14, 2015, 9:38pm UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/2 "2015-12-14T21:38:58Z")

</div>

Believe that there is no experience on this system since I did not get any reply.  
I found a very interesting thing about the Mi home system I asked about, all the sensors are communicating with the gateway with ZigBee which means we could have very inexpensive ZigBee gateway and sensors. You could hardly get an ZigBee module at eBay for the price of the gateway.  
The gateway, 1 button switch, 1 door sensor and 1 motion sensor cost just above 40 bucks, the sensors alone cost around 10 bucks.

---

<div class="post-metadata">

**Author:** ![watou](https://community.openhab.org/user_avatar/community.openhab.org/watou/32/70595_2.png) [@watou](https://community.openhab.org/u/watou)\
**Post date:** [December 14, 2015, 9:45pm UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/3 "2015-12-14T21:45:44Z")

</div>

That sounds very affordable to get a ZigBee gateway. Any idea about an API to send commands and receive state updates?

---

<div class="post-metadata">

**Author:** ![emilhetty](https://community.openhab.org/user_avatar/community.openhab.org/emilhetty/32/1585_2.png) [@emilhetty](https://community.openhab.org/u/emilhetty)\
**Post date:** [December 15, 2015, 10:13pm UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/4 "2015-12-15T22:13:48Z")

</div>

Sorry, no clue at all yet, still waiting for it.  
Shipping from China takes some time now in the Christmas time

---

<div class="post-metadata">

**Author:** ![sebasong](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@sebasong](https://community.openhab.org/u/sebasong)\
**Post date:** [December 17, 2015, 8:28am UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/5 "2015-12-17T08:28:17Z")

</div>

hi i have this device. I am very new to home automation and openhab.  
I heard somewhere this zigbee is not “standard”?

Really hope someone can integrate this to openhab.  
Recently xiaomi has come out with a new WIFI bulb too.(240V)

[http://world.tmall.com/item/525169060714.htm?spm=a312a.7700824.w10866073-11943704026.7.eKaNGU&id=525169060714&skuId=3125635831240&scene=taobao\_shop](http://world.tmall.com/item/525169060714.htm?spm=a312a.7700824.w10866073-11943704026.7.eKaNGU&id=525169060714&skuId=3125635831240&scene=taobao_shop)

---

<div class="post-metadata">

**Author:** ![emilhetty](https://community.openhab.org/user_avatar/community.openhab.org/emilhetty/32/1585_2.png) [@emilhetty](https://community.openhab.org/u/emilhetty)\
**Post date:** [December 17, 2015, 1:37pm UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/6 "2015-12-17T13:37:13Z")

</div>

Do you remember where you read about the ZigBee is not standard? I don’t know much about ZigBee but is sound strange that it is not standard.  
Anyhow I was thinking about getting the gateway interfaced with Openhab, then all the weird standard ZigBee could communicate with the gateway and we could have any information we want from the gateway.  
The gateway is also quite cheap comparing to other ZigBee modules which could be used as a receiver when connected to a raspberry pi or something similar.

After I checked up on the milight I released that I was wrong, the milight is totally different from the Xiaomi’s Yeelight I was thinking about.

How is the system working as a stand alone system? Are you happy with it? The features seems to be very limited, that is why I hoped to have it interface with OH.

---

<div class="post-metadata">

**Author:** ![sebasong](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@sebasong](https://community.openhab.org/u/sebasong)\
**Post date:** [December 18, 2015, 1:35am UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/7 "2015-12-18T01:35:44Z")

</div>

I think ZigBee is a standard but there this factory identity thing which make it not compatible.  
I found from smartthing thread. [$9 Zigbee Xiaomi Door/Window Sensors (works for some people) - #7 by chrisb - Devices & Integrations - SmartThings Community](https://community.smartthings.com/t/9-zigbee-xiaomi-door-window-sensors-probably-wont-work-with-smartthings/28607/7)

My devices are quite new, 2 weeks? My home automation is pretty basic. So basically my system is a nightlight, door bell, tried the alarm arm once. I have other xiaomi product like the ant camera, air purifier, router etc.

I am trying to get Amazon Echo and OH to link to everything too.

---

<div class="post-metadata">

**Author:** ![jokerit](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jokerit](https://community.openhab.org/u/jokerit)\
**Post date:** [January 25, 2016, 11:15am UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/8 "2016-01-25T11:15:28Z")

</div>

> [@emilhetty](#):
>
> I purchased recently the Mi Smart home kit and wondered if anyone have made any bindings or made any reasearch agaist this product?
> 
> The gateway has the same light features as the Milight that already has a bindings, so it might be something similar is my thought.I have not received the kit I purchased yet so have not done any research by myself.

Have you found the way to connect it?

---

<div class="post-metadata">

**Author:** ![moskovskiy82](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/c0e974/32.png) [@moskovskiy82](https://community.openhab.org/u/moskovskiy82)\
**Post date:** [February 26, 2016, 9:25am UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/9 "2016-02-26T09:25:29Z")

</div>

i believe no progress on this one?  
Pity - looks pretty good

---

<div class="post-metadata">

**Author:** ![emilhetty](https://community.openhab.org/user_avatar/community.openhab.org/emilhetty/32/1585_2.png) [@emilhetty](https://community.openhab.org/u/emilhetty)\
**Post date:** [February 26, 2016, 10:05am UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/10 "2016-02-26T10:05:15Z")

</div>

Sorry for my lack in reply.  
I have moved away from OH for the moment.

Anyhow, I did some research earlier and concluded that I knew too little to find some good information by myself.  
I used wireshark to find some package information but wireshark did not give much information, the gateway is talking to a cloud(outside IP) with mDNS, wireshark could not understand the package.

I purchased a CC2531 zigbee sniffer using with a TI sniffer SW I got the whole package from the zigbee sensor. I think the information might be used for something, but not quite sure.  
Waiting for a program card for my CC2531 so I can install Contiki OS on it so my RPI can receive the packages.

If you guys want to have this working, please spend some time in looking into it. You might have some knowledge that I don’t.

---

<div class="post-metadata">

**Author:** ![sentur](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@sentur](https://community.openhab.org/u/sentur)\
**Post date:** [March 7, 2016, 9:30am UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/11 "2016-03-07T09:30:32Z")

</div>

I believe this github repo with MiLight bindings might be what you’re looking for?

> **[Milight Binding](https://github.com/openhab/openhab1-addons/wiki/Milight-Binding)**
>
> Add-ons for openHAB 1.x. Contribute to openhab/openhab1-addons development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![marcel\_verpaalen](https://community.openhab.org/user_avatar/community.openhab.org/marcel_verpaalen/32/56968_2.png) [@marcel\_verpaalen](https://community.openhab.org/u/marcel_verpaalen)\
**Post date:** [March 28, 2016, 7:36am UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/12 "2016-03-28T07:36:24Z")

</div>

Even though you moved away from oh, would be great if you can share your findings.

I’ve been digging into this done while back (programming cc2531 and all) , bit did not get far enough yet. Still very interesting

---

<div class="post-metadata">

**Author:** ![elle2310](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elle2310](https://community.openhab.org/u/elle2310)\
**Post date:** [September 11, 2016, 2:17am UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/13 "2016-09-11T02:17:46Z")

</div>

Hi everyone, I recently purchased some yeelights (9W, rgbw, they communicate directly via Wi-Fi). My plan is to somehow connect those to my alarm set on my phone. I want them to gradually turn on (simulating sunrise) say half an hour before the alarm goes off. Is there an api already available or is there a way to achieve this using wireshark?  
Thank y’all for your help.

---

<div class="post-metadata">

**Author:** ![hmerk](https://community.openhab.org/user_avatar/community.openhab.org/hmerk/32/56432_2.png) [@hmerk](https://community.openhab.org/u/hmerk)\
**Post date:** [September 11, 2016, 8:48pm UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/14 "2016-09-11T20:48:01Z")

</div>

> [@elle2310](#):
>
> Hi everyone, I recently purchased some yeelights (9W, rgbw, they communicate directly via Wi-Fi). My plan is to somehow connect those to my alarm set on my phone. I want them to gradually turn on (simulating sunrise) say half an hour before the alarm goes off. Is there an api already available or is there a way to achieve this using wireshark?Thank y’all for your help.

Did you see this thread

> [@Yeelight binding?](https://community.openhab.org/t/yeelight-binding/13735):
>
> Dear OH community, today I received my Yeelights, RGBWW LED, Less than 20 bucks and they work nicely via mobile app. I was happy getting those, but than I tried to find bindings for them. They are quite well documented and I thought they must be easy to integrate With their c code sample, I can control the device via LAN without any issues. only binding I could find was for the Milight but It seems to be a different protocol. Did I missed something? It´s my first days in OH, and I thou…

---

<div class="post-metadata">

**Author:** ![Hugo\_Pereira](https://community.openhab.org/letter_avatar_proxy/v4/letter/h/e68b1a/32.png) [@Hugo\_Pereira](https://community.openhab.org/u/Hugo_Pereira)\
**Post date:** [October 17, 2016, 7:01pm UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/15 "2016-10-17T19:01:14Z")

</div>

Did someone managed to do this? Actually the prices of the sensors are quite affordable if you look here:

[http://www.gearbest.com/smart-home/pp\_197862.html?wid=21](http://www.gearbest.com/smart-home/pp_197862.html?wid=21)

I am thinking of starting a new project and actually this is the most cheap environment i could cross with, so having the binding with openhab would be a +.

---

<div class="post-metadata">

**Author:** ![Farhanito](https://community.openhab.org/letter_avatar_proxy/v4/letter/f/34f0e0/32.png) [@Farhanito](https://community.openhab.org/u/Farhanito)\
**Post date:** [November 2, 2016, 3:03pm UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/16 "2016-11-02T15:03:18Z")

</div>

I don’t know if this is relevant..

> <https://github.com/snOOrz/homebridge-aqara/blob/master/README.md>

---

<div class="post-metadata">

**Author:** ![illxi](https://community.openhab.org/letter_avatar_proxy/v4/letter/i/8dc957/32.png) [@illxi](https://community.openhab.org/u/illxi)\
**Post date:** [November 7, 2016, 6:17am UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/17 "2016-11-07T06:17:24Z")

</div>

It seems like there is some progress on SmartThings. Wish Openhab will support Xiaomi soon.

> **[\[OBSOLETE\] Xioami Zigbee Door/Window Sensor, Motion Sensor, & Smart Button...](https://community.smartthings.com/t/obsolete-xioami-zigbee-door-window-sensor-motion-sensor-smart-button-device-type/31948)**
>
> Update 02-11-2017: Here is an alternate thread discussing Xiaomi Zigbee devices. It has handlers and information that is more up to date than what I have posted: I have created a simple device type for the Xiaomi Smart Button that can be found...

---

<div class="post-metadata">

**Author:** ![eschava](https://community.openhab.org/user_avatar/community.openhab.org/eschava/32/70801_2.png) [@eschava](https://community.openhab.org/u/eschava)\
**Post date:** [December 6, 2016, 9:51pm UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/18 "2016-12-06T21:51:38Z")

</div>

Does anybody have a chance to check this xiaomi hub-mqtt gateway with openhab?

> **[GitHub - jon1012/mihome: Python bindngs for the Xiaomi Mi Home zigbee hub...](https://github.com/jon1012/mihome)**
>
> Python bindngs for the Xiaomi Mi Home zigbee hub and associated devices

---

<div class="post-metadata">

**Author:** ![coasterli](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/439d5e/32.png) [@coasterli](https://community.openhab.org/u/coasterli)\
**Post date:** [December 8, 2016, 10:35am UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/19 "2016-12-08T10:35:42Z")

</div>

> [@emilhetty](#):
>
> After I checked up on the milight I released that I was wrong, the milight is totally different from the Xiaomi’s Yeelight I was thinking about.

milight is not produced by XiaoMi

---

<div class="post-metadata">

**Author:** ![coasterli](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/439d5e/32.png) [@coasterli](https://community.openhab.org/u/coasterli)\
**Post date:** [December 8, 2016, 10:38am UTC](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711/20 "2016-12-08T10:38:07Z")

</div>

> [@elle2310](#):
>
> Hi everyone, I recently purchased some yeelights (9W, rgbw, they communicate directly via Wi-Fi). My plan is to somehow connect those to my alarm set on my phone. I want them to gradually turn on (simulating sunrise) say half an hour before the alarm goes off. Is there an api already available or is there a way to achieve this using wireshark?Thank y’all for your help.

Yeelight binding is being reviewed.

You can download from:

[https://github.com/openhab/openhab2-addons/pull/1514](https://github.com/openhab/openhab2-addons/pull/1514)

[Next page](https://community.openhab.org/t/mi-xiaomi-smart-home-bindings/4711.md?page=2)
