tuya / tuya-homebridge

Homebridge custom plugin for controlling Powered by Tuya (PBT) devices in HomeKit. This plugin is officially maintained by the Tuya Developer Team.
MIT License
332 stars 168 forks source link

MiBoxer WL5 LED strip lights do not turn off completely via Tuya-HomeBridge #286

Closed ericfitz closed 1 year ago

ericfitz commented 1 year ago

Describe the bug I have a MiBoxer WL5 LED strip light controller connected to HomeKit. The lights do not completely turn off when accessed via the iOS "Home" app. I can use the Smart Life app or the physical remote control to turn off the lights.

The connection is like this: WL5 --> Smart Life Smart Living iOS app --> Tuya IoT cloud --> HomeBridge 1.5.0 Tuya Platform plugin v1.5.0 --> HomeKit

This controller is RGBW with dimming. In the iOS "Home" app, the controller is exposed as a light with a dimmer control and with selectable color presets.

The problem is this: since this is a dimmer control in HomeKit, I can only turn it off by setting brightness to 0%. However, this does not completely turn off the lights; they stay on at a very dim level.

Expected behavior I expect the lights to turn off completely when I set brightness to 0 in the iOS "Home" app.

Screenshots n/a

**Device info

{
    "active_time": 1663701807,
    "biz_type": 18,
    "category": "dj",
    "create_time": 1632398984,
    "icon": "smart/icon/ay1544595242978Akat0/155892472070ed51f7468.png",
    "id": "eb39e53a6f1ba6d90dk5g3",
    "ip": "127.0.0.1",
    "lat": "0.0000",
    "local_key": "e9f2f40f53dea17f",
    "lon": "0.0000",
    "model": "WL5",
    "name": "Patio Lights",
    "online": true,
    "owner_id": "53018777",
    "product_id": "xz0eqflm5riksgqt",
    "product_name": "Controller",
    "status": [
        {
            "code": "switch_led",
            "value": false
        },
        {
            "code": "work_mode",
            "value": "scene"
        },
        {
            "code": "bright_value_v2",
            "value": 40
        },
        {
            "code": "temp_value_v2",
            "value": 0
        },
        {
            "code": "colour_data_v2",
            "value": "{\"h\":235,\"s\":940,\"v\":10}"
        },
        {
            "code": "countdown_1",
            "value": 0
        },
        {
            "code": "control_data",
            "value": ""
        }
    ],
    "sub": false,
    "time_zone": "-04:00",
    "uid": "az1635020020890K1OX3",
    "update_time": 1663703108,
    "uuid": "ea1f60da73310b7a"
}

**Device functions

{
            "category": "dj",
            "devices": [
                "eb39e53a6f1ba6d90dk5g3"
            ],
            "functions": [
                {
                    "code": "switch_led",
                    "desc": "switch led",
                    "name": "switch led",
                    "type": "Boolean",
                    "values": "{}"
                },
                {
                    "code": "work_mode",
                    "desc": "work mode",
                    "name": "work mode",
                    "type": "Enum",
                    "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}"
                },
                {
                    "code": "bright_value_v2",
                    "desc": "bright value v2",
                    "name": "bright value v2",
                    "type": "Integer",
                    "values": "{\"min\":10,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}"
                },
                {
                    "code": "temp_value_v2",
                    "desc": "temp value v2",
                    "name": "temp value v2",
                    "type": "Integer",
                    "values": "{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}"
                },
                {
                    "code": "colour_data_v2",
                    "desc": "colour data v2",
                    "name": "colour data v2",
                    "type": "Json",
                    "values": "{\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}"
                },
                {
                    "code": "countdown_1",
                    "desc": "countdown 1",
                    "name": "countdown 1",
                    "type": "Integer",
                    "values": "{\"unit\":\"\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
                },
                {
                    "code": "control_data",
                    "desc": "control data",
                    "name": "control data",
                    "type": "Json",
                    "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
                }
            ],
            "product_id": "xz0eqflm5riksgqt"
        }

Additional context WL5 info: https://miboxer.com/light/xqy/wl5.html Smart Life account: smartlife@efitz.net Tuya IoT cloud account: tuya@efitz.net Tuya IoT cloud project code: p1663555433020gqess9

github-actions[bot] commented 1 year ago

Thank you for your feedback, we will solve this issue soon

0x5e commented 1 year ago

Hi @ericfitz , can you try this fork https://github.com/0x5e/homebridge-tuya-platform LightAccessory has reimplemented, hope it can solve your problem.

github-actions[bot] commented 1 year ago

Stale issue. we will close the issue soon. If this issue has not been resolved, please update the issue and contact us in time.