rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.95k stars 563 forks source link

Picking Color Doesn't Change color_mode #922

Open broyuken opened 2 years ago

broyuken commented 2 years ago

Hello,

I have these lights, and when I change from a color to a color temp in either HA or the Tuya app, the bulbs change and the icon in HA updates. If I change from a color temp to a color in HA the color of the actual bulbs change, but the color mode in HA and in the Tuya app doesn't change and the icon in HA shows the color temp. https://www.amazon.com/dp/B08DJCLKT4?psc=1&ref=ppx_yo2ov_dt_b_product_details

If I go into the Tuya app and choose a color, HA reflects that and sets the color mode as well.

Here are the attributes that HA displays for these lights.

min_mireds: 153
max_mireds: 370
effect_list:
  - Night
  - Read
  - Meeting
  - Leasure
  - Soft
  - Rainbow
  - Shine
  - Beautiful
supported_color_modes:
  - color_temp
  - hs
color_mode: hs
brightness: 255
hs_color:
  - 255
  - 100
rgb_color:
  - 63
  - 0
  - 255
xy_color:
  - 0.157
  - 0.05
friendly_name: Deck String Lights
supported_features: 23

Additionally, I'm not sure if I should open a separate issue for this, but the effects list doesn't match the scenes available to me in the Tuya app.

broyuken commented 2 years ago

Hello?

broyuken commented 1 year ago

what do I need to do to help get this working correctly in local tuya?