Tuya Color/white issue with scene

I am fairly new to HA but when I run a scene that turns a light blue, when I want to have another scene turn it back to white I get this murky blue color. When I open the color picker AFTER I have run the blue scene it will not turn white, but if I restart HA I can then choose white. I am still learning the coding end but I did try to manually create scenes but I still get the same issues.

Here are the two scenes


- id: '16327817896761'
  name: white2
  entities:
    light.85524870ecfabc33ed99:
      supported_color_modes:
      - hs
      color_mode: hs
      brightness: 200
      hs_color:
      - 0
      - 0
      rgb_color:
      - 0
      - 0
      - 0
      xy_color:
      - 0.323
      - 0.329
      friendly_name: Living room
      supported_features: 191
      state: 'on'
- id: '16327800880381'
  name: blue2
  entities:
    light.85524870ecfabc33ed99:
      supported_color_modes:
      - hs
      color_mode: hs
      brightness: 133
      hs_color:
      - 225
      - 85
      rgb_color:
      - 38
      - 92
      - 255
      xy_color:
      - 0.146
      - 0.095
      friendly_name: Living room
      supported_features: 191
      state: 'on'

I just found out the bug
You need to remove :

      brightness: 255

Example:

  name: Red
  entities:
    light.escri_1:
    #  supported_color_modes:
    #  - brightness
    #  - color_temp
    #  - hs
   #   - onoff
   #   brightness: 255
      color_name: red
      friendly_name: escri 1
      state: 'on'

Most of the code are “default” so no need to keep them.

The following examples will works

    light.corre_3:
      transition: 3
      color_mode: hs
      hs_color:
      - 360
      - 100
      friendly_name: corre 3
      state: 'on'
    light.corre_3:
      color_name: red
      friendly_name: corre 3
      state: 'on'

For brightness I’m making a separated scene:

    light.corre_3:
      brightness: 60
      friendly_name: corre 3
      state: 'on'
2 Likes