XiaomiGateway3 icon indicating copy to clipboard operation
XiaomiGateway3 copied to clipboard

Request to add support for lumi.light.acn003

Open littlehi opened this issue 1 year ago • 1 comments

Can you please add support for lumi.light.acn003 https://github.com/niceboygithub/AqaraGateway/commit/9c3ff9547dbaed73f76ba554b46eacf5e18e5713

littlehi avatar Sep 12 '22 15:09 littlehi

you can test it yourself. it passed and my gateway firmware version is 1.5.4_0090

open file: custom_components\xiaomi_gateway3\core\converters\devices.py search "lumi.light.acn014" in file, jump to the line, and add following json doc before change it, you can have a copy to backup.

{
    "lumi.light.acn003": ["Aqara", "L1-350 Ceiling Light", "ZNXDD01LM"],
    "spec": [
        BoolConv("light", "light", mi="4.1.85"),
        ZXiaomiBrightnessConv("brightness", mi="14.1.85", parent="light"),
        ZXiaomiColorTempConv("color_temp", mi="14.2.85", parent="light"),
    ],
},

restart and enjoy yourself

jwxa avatar Sep 22 '22 11:09 jwxa

thank you, but it doesn't support version 1.5.0_xx

littlehi avatar Sep 23 '22 15:09 littlehi

you can change the code like following and have a try

{
"lumi.light.acn003": ["Aqara", "L1-350 Ceiling Light", "ZNXDD01LM"],
"spec": [
BoolConv("light", "light", mi="2.1"),
ZXiaomiBrightnessConv("brightness", mi="2.2", parent="light"),
ZXiaomiColorTempConv("color_temp", mi="2.3", parent="light"),
],
},

jwxa avatar Sep 24 '22 03:09 jwxa

you can change the code like following and have a try { "lumi.light.acn003": ["Aqara", "L1-350 Ceiling Light", "ZNXDD01LM"], "spec": [ BoolConv("light", "light", mi="2.1"), ZXiaomiBrightnessConv("brightness", mi="2.2", parent="light"), ZXiaomiColorTempConv("color_temp", mi="2.3", parent="light"), ], },

Hi Jwxa, It still not working, the device is recognized correctly, but cannot be controlled.

littlehi avatar Sep 24 '22 08:09 littlehi

1.5.0_0102 passed

{
    "lumi.light.acn003": ["Aqara", "L1-350 Ceiling Light", "ZNXDD01LM"],
    "spec": [
        BoolConv("light", "light", mi="2.p.1"),
        ZXiaomiBrightnessConv("brightness", mi="2.p.2", parent="light"),
        ZXiaomiColorTempConv("color_temp", mi="2.p.3", parent="light"),
    ],
}

jwxa avatar Oct 15 '22 16:10 jwxa

it works, thank you.

littlehi avatar Oct 16 '22 18:10 littlehi