ollo69 / ha_tuya_custom

Tuya Custom Component for testing
Apache License 2.0
39 stars 18 forks source link

Lights don't show color wheel in HA #12

Open skynet01 opened 3 years ago

skynet01 commented 3 years ago

I am not getting the color options wheel in my tuya lights. This is also a known issue with original integration. If you put the lights into a group that supports color change the color-changing will work (currently that's the only way you can update their color in HA without the tuya app)

There is a fix that's discussed here: https://github.com/home-assistant/core/issues/28602#issuecomment-567585526 which did work for me if i manually patch the light.py file. Here is the direct link to the file from the post above: https://gist.github.com/gadgetchnnel/c29503d7f1acbda17c64a70bb985de69

Would be awesome to have this fixed in your integration :)

SmartM-ui commented 3 years ago

I am not getting the color options wheel in my tuya lights. This is also a known issue with original integration. If you put the lights into a group that supports color change the color-changing will work (currently that's the only way you can update their color in HA without the tuya app)

There is a fix that's discussed here: home-assistant/core#28602 (comment) which did work for me if i manually patch the light.py file. Here is the direct link to the file from the post above: https://gist.github.com/gadgetchnnel/c29503d7f1acbda17c64a70bb985de69

Would be awesome to have this fixed in your integration :)

Hi, I also had your same problem, but with the latest updates I can see the color palette for smart-life bulbs. The only bulbs where the color palette is not shown are those in which I had manually overwritten the code 63 in settings / customizations / supported_features (JSON formatted). Even if the manually entered value is canceled, the integration can no longer recover the value (19) which also serves to display the color palette. I'm looking for a solution, you probably need to delete the bulb from smart life and re-associate it. If anyone knows of another solution, welcome.

skynet01 commented 3 years ago

I use Tuya app, but i tried readding to Smart Life and same thing. None of the lights and bulbs I added (all from a different manufacturer) have a color wheel. In the app for the 2 of them, I get a notification that I can't use them until they update but there is no update (you can only switch those on and off in the app). The other 2 work fine and i can change color for them. The color-changing used to work fine with HA and now I am only able to get that by doing the patch above on the original Tuya component.

Where do you do the editing for the color palette to show up?

skynet01 commented 3 years ago

Ah i figured out how to do customization. Go to Configuration > Customization > Find your light > last parameter should be "supported_features", hit edit icon, change it to 63. That made the color wheel show up for me.

SmartM-ui commented 3 years ago

Ah i figured out how to do customization. Go to Configuration > Customization > Find your light > last parameter should be "supported_features", hit edit icon, change it to 63. That made the color wheel show up for me.

Just like I said, you can also try changing with parameter 19 or 191.

Parameter 19 shows only the color palette with the brightness and color temperature slider (hot / cold)

Parameter 63 also reports the scene menu (menu does not work)

Parameter 191 also reports the slider for the white value (slider does not work)

nao-pon commented 3 years ago

The fix for the bulb color mode is in PR #10. If you want to try this fix, you can verify by changing Custom Tuya to my repository.