iRayanKhan / homebridge-tuya-platform

This plugin has moved. Check: https://github.com/iRayankhan/homebridge-tuya
Https://Twitter.com/iRayanKhan
MIT License
9 stars 1 forks source link

Unable to control the bulb #19

Open Faisalthe01 opened 4 years ago

Faisalthe01 commented 4 years ago

Describe the bug i was able to find the ID and the Key of my Kogan RGBW bulb. Added the bulb and i can see it my Accessories but i cannot control it. When i turn it off/on, the bulb does not respond. If i control it via the app, it works and i can see the logs for it in homebridge.

Config { "platform": "TuyaLan", "devices": [ { "name": "My Colored Bulb", "type": "RGBTWLight", "manufacturer": "", "model": "Color Changing Floor Light", "id": "xxxx", "key": "xxxxxx", "dpPower": 1, "dpMode": 2, "dpBrightness": 3, "dpColorTemperature": 4, "dpColor": 5, "minWhiteColor": 140, "maxWhiteColor": 400, "colorFunction": "HEXHSB", "scaleBrightness": 255, "scaleWhiteColor": 255 } ]

Logs

when bulb gets discovered by Tuya plugin

[TuyaDiscovery] UDP from "I"P 0x000055aa...0x0000aa55 [3/30/2020, 12:40:12 PM] [TuyaLan] Discovered My Colored Bulb (xxxxx) identified as RGBTWLight (3.3) [TuyaAccessory] Changing ping gap for My Colored Bulb to 9s [3/30/2020, 12:40:12 PM] [TuyaLan] Connected to My Colored Bulb [TuyaAccessory] Sending first query to My Colored Bulb (3.3) [TuyaAccessory] Heard back from My Colored Bulb with command 10 [3/30/2020, 12:40:12 PM] [TuyaLan] Ready to handle My Colored Bulb (RGBTWLight:3.3) with signature

when i control bulb through Homebridge

[TuyaAccessory] Sending My Colored Bulb {"1":true} [TuyaAccessory] Sending My Colored Bulb {"1":false}

when i control bulb though its own app

[TuyaAccessory] Heard back from My Colored Bulb with command 8 [TuyaAccessory] Heard back from My Colored Bulb with command 8

iRayanKhan commented 4 years ago

Could I get the schema for the bulb?