iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
394 stars 164 forks source link

New Device: Lepro bulbs #255

Open johnstegeman opened 3 years ago

johnstegeman commented 3 years ago

Got some new RGBW bulbs from Amazon - they are Lepro LE bulbs. They seem to be detected just fine, but any control does not work. I've been able to control them from the LampUX app on the phone, but not via this plugin. I'm an IT professional by trade, so I'm happy to help with some debugging here. Very similary to #206

Edit: These are the bulbs https://www.lepro.com/4-pack-a19-e26-rgbw-color-changing-smart-light-bulbs.html

[2021-04-23, 2:26:24 p.m.] [TuyaLan] Connected to Desk Left [Tuya] Sending first query to Desk Left (3.3) [Tuya] Heard back from Desk Left with command 10 [2021-04-23, 2:26:24 p.m.] [TuyaLan] Ready to handle Desk Left (RGBTWLight:3.3) with signature {"20":true,"21":"white","22":1000,"23":0,"24":"000003e803e8","25":"000e0d0000000000000000c80000","26":0} [Tuya] Color format for Desk Left (3.3) is undetectable. [2021-04-23, 2:26:24 p.m.] [homebridge-tuya] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info.

johnstegeman commented 3 years ago

Here you go, everyone:

    {
        "type": "RGBTWLight",
        "name": "Desk Left",
        "id": "xxxx",
        "key": "xxxxx",
        "manufacturer": "Lepro",
        "model": "Color",
        "dpPower": 20,
        "dpBrightness": 22,
        "dpColorTemperature": 23,
        "dpMode": 21,
        "dpColor": 24,
        "colorFunction": "HSB",
        "scaleBrightness": 1000,
        "scaleWhiteColor": 1000
    },
ElphaX commented 3 years ago

Please let us know if the device is now working with the correct dp values and we can tag this issue as a new device to add.

hucknz commented 3 years ago

I was having a similar issue with Smart Ape branded bulbs. The config above fixed it for me.

fvalle1 commented 2 years ago

I was able to configure LeproLE bulbs correctly with the aforementioned configuration, thank @johnstegeman

j-ckal commented 2 years ago

thank you @johnstegeman! this config worked on these non-RGB bulbs too: https://www.amazon.co.uk/gp/product/B07MBXCNQS

jkcoxson commented 2 years ago

This config also worked for my SmartLife RGBW bulbs I got off Amazon as well, thanks! https://www.amazon.com/dp/B083BRRZ4Y?psc=1&ref=ppx_yo2_dt_b_product_details

tcozzens commented 2 years ago

This config also fixed this problem for me and my InfiBrite lights.