PyXiaomiGateway icon indicating copy to clipboard operation
PyXiaomiGateway copied to clipboard

lumi.light.aqcn02 support

Open posavasos opened this issue 6 years ago • 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.

posavasos avatar Dec 14 '18 13:12 posavasos

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

mouth4war avatar Dec 18 '18 10:12 mouth4war

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

https://github.com/Koenkk/zigbee2mqtt/issues/621

mouth4war avatar Dec 18 '18 10:12 mouth4war

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}'}

posavasos avatar Dec 18 '18 14:12 posavasos

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

mouth4war avatar Dec 18 '18 16:12 mouth4war

@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 avatar Dec 18 '18 17:12 syssi

@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.

mouth4war avatar Dec 18 '18 17:12 mouth4war

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.

hteggi avatar Jan 04 '19 11:01 hteggi

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.

syssi avatar Jan 04 '19 12:01 syssi

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?

advokatb avatar Apr 07 '19 07:04 advokatb

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

syssi avatar Apr 07 '19 07:04 syssi

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".

mattsaxon avatar Apr 30 '19 09:04 mattsaxon

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

syssi avatar Apr 30 '19 09:04 syssi

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 avatar Jun 24 '19 15:06 surpasstop

@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.

mattsaxon avatar Jul 08 '19 13:07 mattsaxon

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

mattsaxon avatar Jul 16 '19 19:07 mattsaxon

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

igzero avatar Feb 13 '20 11:02 igzero

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

atico45 avatar Mar 30 '20 16:03 atico45

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

mouth4war avatar Jul 18 '20 15:07 mouth4war

Hello, it's possible to add the support ?

xekil avatar Aug 02 '20 20:08 xekil

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?

teras avatar Sep 16 '20 20:09 teras

So sad...

aetherwu avatar Feb 06 '21 14:02 aetherwu

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

https://github.com/home-assistant/core/issues/48988

;)

xekil avatar Apr 11 '21 17:04 xekil