Turn on a scene on Yeelight RGB => Error {'code': -5000, 'message': 'general error'}

Hi,

I’m trying to turn on a basic scene on my yeelight RGB. But when the scene is turn on, nothing happens and i have this error message in the log :

homeassistant.components.light.yeelight] Error when calling <function YeelightLight.set_default at 0x68922300>: {‘code’: -5000, ‘message’: ‘general error’}

My scene configuration is :

scene:
  - name: blue
    entities:
      light.yeelight_rgb_286XXXXXXXXX:
        state: on
        rgb_color: [20, 20, 50]
        brightness: 127
        color_temp: 312

I don’t know why i have this error with this scene. If a do the same thing with an other scene, i have no problem.
For instance, a scene which works:

scene:
  - name: white
    entities:
      light.yeelight_rgb_286XXXXXXXXX:
        state: on
        rgb_color: [250, 249, 255]
        brightness: 204
        color_temp: 312

Can you help me ?

Thanks a lot

Note :

  • If i turn on the scene “blue” on the gateway, it’s working.

I don’t think you should send rgb_color along with the other parameters (brightness and color_temp). Try sending only state and rgb_color.

You’re right, i should not add the color_temp parameters.

Thanks