apatsufas / homebridge-tapo-p100

Homebridge TP-LINK Tapo P100 Platform Plugin
Apache License 2.0
65 stars 14 forks source link

L530E No color adjustment possible #25

Open pipingtravel opened 2 years ago

pipingtravel commented 2 years ago

Tapo L530E lightbulbs have been successfully added to HomeBridge and everything is working fine, except that I can not change the bulbs into color mode.

I can change color temperature (2500K and up).

HomeKit presents me with the color wheel, but when I select a color other than white, the bulb just changes the color temperature corresponding to that color while still staying white.

(e.g. the bulb is set to a cool white temperature and I select like a deep red color> the bulb stays white but changes color temperature to a warmer white)

I can change to color mode with the Tapo app without problems.

Environment: `

Lightbulb  
Characteristic Value Active Transition Count 0
Supported Characteristic Value Transition Configuration
Characteristic Value Transition Control  
On 1
Brightness 15%
Color Temperature 370
Hue 326
Saturation 100%
Manufacturer TP-Link
Model Tapo L530
Name
Serial Number
Firmware Revision 1.4.15
Homebridge Instance IP
Homebridge Instance Port

Homebridge Instance Username aid | 31 iid | 14

`

The logs dont show any switching activity, although on/off, color temperature and brightness works fine.

Only these errors appear in the console

[12/29/2021, 3:53:07 PM] [Tapo Smart Platform] 364 Error Code: -1601, ERR_TIME (Bulb IP address)
[12/29/2021, 3:53:38 PM] [Tapo Smart Platform] 371 Error: timeout of 2000ms exceeded
[12/29/2021, 3:54:06 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[12/29/2021, 3:54:06 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[12/29/2021, 3:54:07 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[12/29/2021, 3:54:07 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[12/29/2021, 3:54:07 PM] [Tapo Smart Platform] 326 Error Code: 9999, Session Timeout (Bulb IP address)
Woojin-Crive commented 2 years ago

This is happening as same to me. Not only homekit, google home shows the same bug. When i synced google home with Tapo app is works well, but if i sync google home with homebridge, controlling color is not available. So i think this plugin has an issue. Testing plugin with local npm link, when the bulb needs to be colored(not colortemp) it's color_temp should be 0. And non-integer value for hue, saturation is not allowed. you can now see the color is changing, #26