Danielhiversen / PyXiaomiGateway

PyXiaomiGateway
MIT License
152 stars 55 forks source link

lumi.light.aqcn02 support #135

Open posavasos opened 5 years ago

posavasos commented 5 years ago

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.

mouth4war commented 5 years ago

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

mouth4war commented 5 years ago

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

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

posavasos commented 5 years ago

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

mouth4war commented 5 years ago

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 5 years ago

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

mouth4war commented 5 years ago

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

hteggi commented 5 years ago

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 5 years ago

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.

advokatb commented 5 years ago

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 5 years ago

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

mattsaxon commented 5 years ago

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 5 years ago

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

surpasstop commented 5 years ago

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?

mattsaxon commented 5 years ago

@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 commented 5 years ago

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

igzero commented 4 years ago

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

atico45 commented 4 years ago

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

mouth4war commented 4 years ago

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

xekil commented 4 years ago

Hello, it's possible to add the support ?

teras commented 3 years ago

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?

aetherwu commented 3 years ago

So sad...

xekil commented 3 years ago

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

;)