Danielhiversen/PyXiaomiGateway

lumi.light.aqcn02 support

Opened this issue ยท 22 comments

Home Assistant release with the issue (if applicable): 0.84.1

Last working Home Assistant release (if known):

PyXiaomiGateway library version (if known):

Operating environment (Hass.io/Docker/Windows/etc.): HassOS 1.13

Traceback (if applicable):


Description of the bug:

I just received an Aqara Zigbee bulb (ZNLDP12LM) that has brightness and color temperature control (2700k-6500k).

Home Assistant reports:

"The device with sid * isn't supported of the used gateway firmware. Please update the gateway firmware if possible! This is the only way the issue can be solved."

I have the 1.4.1_161.0143 firmware on the gateway, which was updated recently.

The model reported by the gateway is "lumi.light.aqcn02".

I see no mentions of "aqcn02" on the device_types array at __init__.py so I guess it's not supported yet.

P.S. First issue written on GitHub, please let me know if I can help you somehow.

I confirm this behaviour with my bulbs too. Gateway is on recent-most firmware.

For reference, zigbee2mqtt is already adding support. Thread has sniffed packets etc.

Koenkk/zigbee2mqtt#621

I guess the current gateway firmware doesn't properly expose the Aqara Zigbee bulbs for local control yet.

After reading previous issues I created a xiaomi_gateway folder inside the config folder of Home Assistant, then I placed the current __init__.py. I added the resp variable to the logger and it seems the gateway doesn't even expose the model name:

{'cmd': 'read_ack', 'model': '', 'sid': '*', 'short_id': *, 'data': '{"voltage":3600}'}

Well the guys over at zigbee2mqtt and homebridge are able to turn on/off and change brightness & color temperature. So it must work.

syssi commented

@mouth4war If you are talking about zigbee2mqtt and homebridge-zigbee you are wrong. They are interfacing the ZigBee protocol directly. In our case there is a middleware (Xiaomi Aqara Gateway) which must support the new devices first. If the firmware of the Xiaomi Aqara Gateway doesn't support the new hardware the LAN protocol of the Xiaomi Aqara Gateway doesn't provide much...

@syssi Thanks for the explanation. You are correct, of course. Aqara seems to be making some mistakes when it comes to LAN support for their newer hardware. Perhaps time to get our own middleware.

Just received my bulbs today and must say it was very disappointing that they dont integrate with HA yet because of gateway. The bulbs give better light and seams to produce less heat than the old yeelight color wifi bulbs that they will replace.

syssi commented

I've ordered one of the new bulbs, too. As soon as a new gateway firmware supports the light I will extended the library/component.

I've ordered one of the new bulbs, too. As soon as a new gateway firmware supports the light I will extended the library/component.

Hi. Any news?

syssi commented

No. I'm still waiting for a firmware update.

I have the same issue with an Aqara LED light, model ZNLDP12LM. According to the logs, the gateway is reporting model of '' (null). It works fine in the MI-Home app though. Might it be possible to change this component (or the wrapping HA component) so that unknown devices could be manually mapped (e.g. in configuration.yml) until they are fully supported, e.g "SID [x]" = "light".

syssi commented

This doesn't help - already tried. Unsupported devices are reporting the battery level only.

Hi, New firmware is released.
Ver. 1.4.1_170.0158 (Old ver. 1.4.1_167.0158)
is there any chance for support this bulb?

@surpasstop, have you upgraded to the new firmware and confirmed it doesn't regress anything, i.e. HA connectivity still works? Until someone has confirmed the new firmware is good, I'm loathed to upgrade.

Iโ€™ve upgraded too and can confirm this model type is still not supported in the latest firmware.

I've ordered one of the new bulbs, too. As soon as a new gateway firmware supports the light I will extended the library/component.

Hi. Any news?

Hi, All!
I did not wait for the respected author to solve this problem. So I myself wrote a custom_component that allows you to operate this lamp "Aqara LED Light Bulb (ZNLDP12LM)"(The identifier in "MiHome" is 'lumi.light.aqcn02') as well as the relay "Aqara (LLRZMK11LM)" (The identifier in "MiHome" is 'lumi.relay.c2acn01 '). By by this implemented media player "XiaomiGateway FM Radio".
Used the "python-miio" package
Details here

Good afternoon, there is news about the firmware to be able to integrate it into homeassistant, or we put the one that the companion igzeroon has prepared. And do you know if it works correctly?
Thank you

So miio library now supports this bulb. HASS support can now be added.

xekil commented

Hello, it's possible to add the support ?

teras commented

So miio library now supports this bulb. HASS support can now be added.

In the documentation it states that ZNLDP12LM is recognized but not supported. Does it mean that there's no way yet to use it?

So sad...

xekil commented

there is something new, the bulb now appears in HA but does not work yet, if you want to help it's here :

home-assistant/core#48988

;)