The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
[App] Xiaomi-mi ZigBee - Main discussion topic (v0.4.1)
Xiaomi-mi Smart Home (Zigbee)
Community support to enable further extending the device support of this app:
As explained in this comment, I'm asking for community support to be able to further extend the device support of this appThe following sequential goals have been set:
1. Add support for the Aqara Curtain Controller (incl. small tracks): implemented in v0.4.0
contributors: @Homey_lampje, @EDV, Jahn, @mehta, @Martin_vd_Aart, @phil_s, @eternity, @Aaron, @brtw, @2Be
2. Add support for both the Xiaomi Mijia smoke and gas detector: received
contributors: @Homey_lampje, @mehta
3. Add support for the Aqara smart door lock set: received
contributors: @ruudvb, Jan, @sprut
4. Investigate if Aqara cam gateway can be used directly with Homey (Zigbee based): received
contributors: @djesko
5. Add support for the Aqara wireless switch with Gyroscope: implemented in v0.3.0
contributors: Toon
6. Investigate if the Aqara Lock core can be used in directly with Homey: received (by @kasteleman)
contributors: @anjo
All goals have been achieved! Thank you all who contributed!
Contribute by making a paypal contributionLinks:
Supported devices
Door/Window sensor (MCCGQ01LM) (contact alarm)
Occupancy Sensor (RTCGQ01LM) (motion alarm)
Temperature/Humidity Sensor (WSDCGQ01LM) (temperature, relative humidity)
Wireless switch (WXKG01LM) (1x - 4x click, Key Held, Key released)
Smart socket plug ZigBee edition (ZNCZ02LM) (onoff, measure_power)
Cube (MFKZQ01LM) (Slide, Shake, Double Tap, Rotate (angle, relative angle), Flip 90°, Flip 180°), see device readme for details
Aqara Curtain Controller (ZNCLDJ11LM) (open, close, idle, setpoint (100% = open, 0% = closed))
Aqara Window/Door Sensor (MCCGQ11LM) (contact alarm)
Aqara Human Body Sensor (RTCGQ11LM) (motion alarm, luminance)
Aqara Temperature and Humidity Sensor (WSDCGQ11LM) (temperature, relative humidity, atmospheric pressure)
Aqara Smart Light Wall Switch (L) Single (QBKG04LM) / Double (QBKG03LM) (onoff)
Aqara Smart Light Wall Switch (LN) Single (QBKG11LM) / Double (QBKG12LM) (onoff)
Aqara Smart Socket ZigBee Version (QBCZ11LM) (onoff, measure_power)
Aqara Wireless switch (WXKG11LM) (1x - 4x click)
Aqara Wireless switch with Gyro (WXKG12LM) (1x, 2x click, key held, key released, Shaken)
Aqara Wireless Remote Switch Single (WXKG03LM) / Double (WXKG02LM) (1x click for each button and combined)
Installation note: the Xiaomi (non Aqara) range of devices need to be manually kept awake during in the inclusion; keep pressing the button once every 5 seconds until inclusion has finshed.
Supported Languages:
- English
- Dutch
Acknowledgements:
This app and driver development has been supported by:Feedback:
Change Log:
v 0.4.1 * Fix issue where the Aqara Smart Light Wall Switch (LN) Single (product type no: QBKG11LM) can not be controlled v 0.4.0 * Add support for the 'Aqara Curtain controller' (product type no: ZNCLDJ11LM) * Fix issue where Aqara Smart Light Wall Switch (L) right button is not activated by FlowCard, issue #64. Note: Existing flows for this device will need to be rebuild * Fix issue / add support for Aqara Smart Light Wall Switch (LN), issue #60. Note: Re-inclusion of devices with Zigbee Product ID lumi.ctrl_ln1.aq1 and lumi.ctrl_ln2.aq1 is needed Note: The old (marked DEPRECATED) flow cards of the wireless switches will be removed in a next release; please rebuild your flows based on the new cards v 0.3.0 * Add support for Aqara Wireless switch with Gyro (product type no: WXKG12LM) Note: Switches with this type no. that were included before will need to be re-included in order to work properly * Replaced old scene trigger cards with autocomplete cards to fix reported issues Note: The old (marked DEPRECATED) cards will be removed in a next release; please rebuild your flows based on the new cards Update ZigBee meshdriver to 1.2.12
Comments
XIAOMI is a very popular brand in China they have good high quality products for very low prices, that makes them so popular in China.
Currently i have this Mi Smart Home Kit at home, its software is limited but the wireless sensors are really nice.
They all work on the Zigbee protocol.
Iam willing to give/loan these sensors to the Athom development team if there is interest !
There are different sensors:
The sensors have the Features:
banggood.com/Original-Xiaomi-Intelligent-Sensor-Control-Smart-Home-Suit-Kit-p-982304.html
Nice stuff, great price! Interesting to buy if supported by homey..
This looks really nice and small! I hope it will be supported.
Quite cool, especially in this price range. Once I receive the Homey I will order some of these sensors, to see if I can get them working with Homey.
If I understand correctly, Zigbee is supported but there are some different implementations of Zigbee used by different products. For example, the Zigbee Hue lights can only be controlled through the Hue home station. This is probably also the case with these sensors, they come with a gateway. So the question is more, how does the gateway work...
*Update: I just read that the software is mostly in Chinese. That will be a problem for me...
The software MI app is in English but you need to set your phone in English language, if you have it set in Dutch the app falls back to its default language.... yep that's chinese.
But than again why use the MI app if homey can do it for you.
I guess the question remains; Can Homey communicate with these Zigbee devices...
These look great little sensors for a very reasonable price...
But it doesn't look likely, see here:
https://community.smartthings.com/t/9-zigbee-xiaomi-door-window-sensors-probably-wont-work-with-smartthings/28607/7
Homey can, but as I stated before, a lot of companies create their own way of implementing Zigbee. Therefor, the Philips Hue lights cannot be communicated with without the Philips Hue home station, and it seems the same counts for these Xiaomi sensors. Therefor you will have to depend on the API (and documentation) of that Xiaomi home station, and therefor I doubt it will be easy to create...
Hue is pure ZLL so Homey should be able to control them once they implement the protocol.
The Xiaomi's are not standard HA (according to the ST-thread) so those probably won't work...
And that's the problem with Zigbee (and the reason we haven't implemented it yet), devices' lack of support of the official standard.
There's enough devices that do use the HA profile, so I hope you are planning on adding it in the future :-)
https://community.smartthings.com/t/xiaomi-zigbee-door-window-sensor-motion-sensor-smart-button-device-type-beta/31948/22
This guy is tinkering on the xiaomi sensors an has connected them on the Samsung SmartThings Zigbee network, so there maybe a possibility to use them also on homey.
The current issue is that these sensors getting inactive overtime and do not rejoin the zigbee network. He needs to pair/reset them again.
He has posted his device handlers for these sensors on github.
This could be interesting to adapt it for Homey... if these sensors can be fully connected to the Smarthing Network.
https://github.com/erocm123/SmartThingsPublic/tree/master/devicetypes/erocm123
http://www.banggood.com/Original-Xiaomi-Smart-Home-Suit-Accessories-Mini-Smart-Wireless-Switch-Button-p-1049175.html
Verry nice priced I think.
Outlet:
https://github.com/lazcad/smartthings/blob/master/Xiaomi-Zigbee-Outlet.groovy
Button:
https://github.com/erocm123/SmartThingsPublic/blob/master/devicetypes/erocm123/xiaomi-smart-button.src/xiaomi-smart-button.groovy
Door\window Sensor:
https://github.com/erocm123/SmartThingsPublic/blob/master/devicetypes/erocm123/xiaomi-door-window-sensor.src/xiaomi-door-window-sensor.groovy
Motion Sensor:
https://github.com/erocm123/SmartThingsPublic/blob/master/devicetypes/erocm123/xiaomi-motion-sensor.src/xiaomi-motion-sensor.groovy
Source: https://community.smartthings.com/t/xiaomi-zigbee-door-window-sensor-motion-sensor-smart-button-device-type-beta/31948
You can test it out yourself: https://github.com/Joolee/nl.joolee.homey.aqara
I'm curious if others experience the same problem
You need to set up the gateway through your phone as normal. Then (on your phone) open the gateway control panel (where you can change the led colour and stuff) and click the three dots button at the top right. Click 'About' and on the new screen. Now, to enable debug mode; click the version number at the bottom (or just some blank space for iPhone users I think) repeatedly untill 2 new Chinese menu items appear. Click the first of the two new items and enable the top most option (It's Chinese so I don't know what it says)
Now run the script on Homey.
Human body sensor for nearly 8 euros.
link here
Is there any news yet about releasing support for Xiaomi Zigbee products?
Can other people try out the script I linked in my post before? If the problem is my network, I'll upgrade it and start working on the app :P
http://faire-ca-soi-meme.fr/hack/2017/04/24/hack-xiaomi-mi-smarthome-decouverte-de-clef/
Great News !
Apparently Xiaomi uses the standard NXP trusted Center Link KEY: 5A: 69: 67: 42: 65: 65: 41: 6C: 6C: 69: 61: 6E: 63: 65: 30: 39 with that key you can decode the Zigbee ZHA protocol messages between all the Xiaomi Sensors and the Xiaomi gateway:
He also published all attributes of different sensors in an excel sheet.
https://github.com/fairecasoimeme/Xiaomi
So it should be possible to connect all these great cheap sensors to the Homey Zigbee protocol when ready.
Cant wait, cause these sensors have a great range and are super efficient, haven't had to change the battery for more than 1 year