-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 lumi.light.acn031 & lumi.light.acn032 #7203
Conversation
Can you try with the following code: {
zigbeeModel: ['lumi.light.acn031', 'lumi.light.acn032'],
model: 'T1/T1m',
vendor: 'Aqara',
description: 'Ceiling light T1/T1m',
meta: {multiEndpoint: true},
endpoint: () => ({white: 1, rgb: 2}),
fromZigbee: light({colorTemp: {range: [153, 370]}, color: true}).fromZigbee,
toZigbee: light({colorTemp: {range: [153, 370]}, color: true}).toZigbee,
exposes: [
// White light: On/Off, brightness, color temperature, no color_temp_startup
e.light_brightness_colortemp([153, 370]).removeFeature('color_temp_startup').withEndpoint('white'),
// [Notification Light]
e.light_brightness_colorxy().withEndpoint('rgb'),
],
}, |
Works! Only thing left now is changing of color via ZB2MQTT dashboard doesn't work, although changing via HA works. Thank you so much. |
Modern extend from the start would be welcome Can you test this instead of extend: [
deviceEndpoints({endpoints: {'white': 1, 'rgb': 2}}),
lumiLight({colorTemp: true, powerOutageMemory: 'light', endpointNames: ['white']}),
lumiLight({colorTemp: true, color: {modes: ['xy', 'hs']}, endpointNames: ['rgb']}),
lumiZigbeeOTA()
], |
@mrskycriper Not sure why the check failed but your code works when I used it as a external converter. |
thanks! |
@banister4728 can you confirm if powerOutageMemory function actually works? |
@corvis Don't think it works. When i click on it in zb2mqtt exposes tab, I get the following:
|
Thanks for checking. I replicated this ZHA quirk and got the same result so wanted to check if the original was actually working. Are there any ideas how to make it work? |
It probably uses different attribute here. Maybe it's just binary? There are 2 main attributes for this in use by Lumi devices UPD. Why is this converter using |
After some more debugging I think I nailed it. I'm not zigbee2mqtt user so I can't propose a PR but maybe this will be helpful. Power behavior of this device is controlled by the following attribute:
This needs to be configured just for endpoint 1 (main light), the light ring will inherit this configuration. |
|
I created PR to ZHA, maybe it will be helpful for the developer who will be working on PR to zigbee2mqtt: zigpy/zha-device-handlers#3070 |
Unfortunately this is beyond my capability. @Koenkk @mrskycriper are you able to help? @corvis Are you able to control the RGB animation on zha? |
No |
White and RGB light works. Only thing found not working is that the RGB color can't be changed within Zigbee2MQTT but works fine in HA.