-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Xiaomi Aqara Smart Light Bulbs #621
Comments
In case you have this device, we can add support for it. |
I have just ordered one of these so if it's not added by the time mine arrives and I can get some help with the process I will add support. |
I have just ordered one of these too and would be phantastic give support for the bulb |
My bulb arrived today. My laptop I usually use is not booting due to an update :( I tried to connect the bulb anyway. Hopefully I have some time this weekend:
|
What features does this bulb support; brightness and color temperature? |
That's correct, brightness and colour temp. The official model is ZNLDP12LM There looks like there is a wifi version people hopefully don't get confused with. |
Can you add to {
zigbeeModel: ['lumi.light.aqcn02'],
model: 'ZNLDP12LM',
vendor: 'Xiaomi',
description: 'Aqara smart LED bulb',
supports: generic.light_onoff_brightness_colortemp().supports,
fromZigbee: generic.light_onoff_brightness_colortemp().fromZigbee,
toZigbee: generic.light_onoff_brightness_colortemp().toZigbee,
}, |
I will try this tomorrow. I see that its now possible to add an external devices.js in /share/zigbee2mqtt and set "zigbee_shepherd_devices": "true" in the addon config, is this correct? if so can I just create a devices.js file with the below content, save it to /share/zigbee2mqtt and restart the addon?
Also is the last coma required? |
Yes, but note this replace the whole |
I have updated devices.js now I get
|
We need to find out what the values mean. Does turning on/off via MQTT work? |
No. If I publish:
to:
it doesn't seem to have any effect. I double checked I wasn't making a mistake by publishing the ON and OFF states to one of my working Philips Hue bulbs and that does respond. |
Ok, we need to sniff the packets send by the xiaomi gateway in order to support this bulb. (http://www.inzoolee.com/capture-zigbee-packets/) |
I was so excited by this project I sold my Xiaomi gateway :(. I am going to borrow one off my friend (who bought it off me!) hopefully tomorrow and try this in the next couple of days. Just to clarify. I would pair the bulb with the Xiaomi gateway then follow the article to capture zigbee packets for On/Off, Brightness Increase,Decrease and color temp Increase,Decrease? |
@kiwinol exactly. |
@Koenkk can I use the same firmware I was using for zigbee2mqtt or will I need to flash a different firmware? |
You can use the firmware which is included in PACKET SNIFFER |
I downloaded and installed
I am not sure which firmware to use. Below is a screenshot of the folders I see: |
If I remember correctly, it's in the cc debugger directory. |
Something did wrong ... |
Can you provide more details of how to test? I have the bulb but not much knowledge on how this works. |
@kiwinol After change devices-file, try to run zigbee2mqtt in debug mode https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-debug , pair lamp and then try to turn on/off, set brightness, color temp by send message to topics. |
https://gist.github.com/itsmepetrov/79ae4aef70cce328d2c93ea1334af07f It is an example of improvements for this lamp from the project https://github.com/itsmepetrov/homebridge-zigbee |
@kirovilya thanks for the information. I will try to investigate more this weekend. |
@Koenkk I got the debugger firmware flashed and am now able to capture zigbee traffic. Tomorrow I will switch off my HA to reduce noise and capture the traffic between the Xiaomi hub and the bulb. |
Can't wait, bought two bulbs :) |
I have tried to do the capture. It was all done at about 10:34am Australian time. The sequence I tried was. Let me know if I need to redo it or you require more info I wasnt sure how to filter it and there are probably messages from many other zigbee devices I have at the same time. |
Hey Guys, my Bulb just arrived today, and I used this config in the devices.js: and I can successfully turn the lamp on and off.
not sure, if that helps to support the light fully. |
I can confirm that the config works. I can turn the bulb on/off, change brightness and temp. Some errors too (bulb is 0x00158d0002c65c4b):
|
So the supoort is there? |
Yes. |
* Added support for Xiaomi Aqara LED bulb (ZNLDP12LM). Koenkk/zigbee2mqtt#621 * Update devices.js
Thanks everyone for their work in supporting this affordable bulb! |
I think its 5 times. Mine just paired when I first tried without setting it. It will start blinking when you have reset it. |
Bulb is supported in the dev branch. thanks all! |
Do you know how long it usually takes before a device is supported in the standard version (not edge)? |
When will it come in standard version? It's not supported in latest version. I tried dev but latest gives a couple of errors:
and the other bulb:
|
I got a bulb since yesterday, but im unable to pair it. It simple doesn't show up. Wat is the pairing method of the bulb? |
Switch on five times till the bulb blinks a couple of times |
Does anyone know what is the min. and max. value for "color_temp" in payload? Thank you. |
Also can't pair the bulb even after resetting it.. How did you do it? Do you need to hold CC2531 sniffer near the bulb? |
I have made a “homemade pairing cable” with standard wall connector, switch and bulb socket - about 2 meters long. With this cable I am able to pair bulb just next to sniffer without problem. |
Same here. Switched on and off for five times and the bulb starts blinking, but nothing is showing in the log. Can someone confirm this bulb supports channel 25? |
@GreenVine have 3 pieces on channel 25, pairs/works fine with edge. Try to remove from mqtt/configuration.yaml/database.db/state.json and re-pair. |
153 - 370 Found here: |
@urusha It looks like this bulb cannot pair directly with the router (one Philips Hue light bulb). As soon as I move the coordinator closer with Xiaomi bulb it pairs flawlessly. I didn’t spot any issues after moving coordinator back and let Xiaomi communicate with the router. Looks like we can’t pair it with the router? |
There is one issue with these bulbs. They are always powered ON after power outage :-/ |
Great, thanks! |
Incorporated the info from @phoxy84 regarding pairing at Koenkk/zigbee2mqtt#621 (comment)
* Added pairing info for ZNLDP12LM Incorporated the info from @phoxy84 regarding pairing at Koenkk/zigbee2mqtt#621 (comment) * Update device_page_notes.js
* Added support for Xiaomi Aqara LED bulb (ZNLDP12LM). Koenkk/zigbee2mqtt#621 * Update devices.js
Aqara released a light bulb with zigbee. Would be great to support it. ;D
Unsupported device
https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20181122060617&SearchText=Aqara+Smart+Light+Bulbs
The text was updated successfully, but these errors were encountered: