WLED set colors (all 3 colors)?

Hello,

I am trying to set colors to a WLED device using the integration.
So far I can set only the primary color.
Does anyone know how to set up the other two?

Also, could not find how to set a palette.
Any info would be much appreciated.

light_alarm_test:
  alias: 'wled lights alarm'
  sequence:
    - service: light.turn_on
      data:
        brightness: 255
        entity_id: light.wled2
        rgb_color:
        - 255
        - 0
        - 0
    - service: wled.effect
      entity_id: light.wled2
      data:
        effect: 'Strobe Mega'
        #effect: 'Police'
        speed: 245
    - delay: '00:00:10'
    - service: light.turn_off
      entity_id:  light.wled2
1 Like

I do it with a restful_command:

  wled_fireplace_reset:
    url: 'http://192.168.0.116/win&T=0&A=255&FP=0&FX=0&SX=128&IX=128&CL=16752640&C2=0&C3=0'
    method: POST

This gives all the options:

2 Likes

Thank you! This worked great.

rest_command:
  rest_cmd:
    url: "{{ url }}"
  wled_set_alarm_colors: #https://tynick.com/blog/01-28-2020/controlling-wled-with-raspberry-pi-using-the-wled-api/
    #set brightness to full, speed to half, intensity to half, primary color as red, secondary as blue and tertiary as white and set pallet to default
    url: 'http://{{ ip_address }}/win&A=255&SX=128&IX=128&CL=Hff0000&C2=H0000ff&C3=Hffffff&FP=0'