How to set the white channel in automation

Hello

i have the magichome LED Controller and i want to mix the white led with the rgb. i can do it in the Tasmota Console for example with “color 50,50,100,150” how can i setup this color in the automation?

  alias: Licht Wohnzimmer LED Stripe AN
  description: ''
  trigger:
  - entity_id: switch.licht_wohnzimmer_2
    platform: state
    to: 'on'
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  action:
  - data:
      brightness: 255
      entity_id:
      - light.magichome_1
      rgb_color:
      - 20
      - 0
      - 20
    service: light.turn_on

I point my (automations) to a scene with the rgbw in there.

is it without a scene not possible?

The guide doesn’t say it’s not possible, just have preset colours I turn mine on to.

Try with the service template…
Or something like this

    - service: light.turn_on
      data:
        entity_id: light.ledliststair
        brightness: 130
        rgb_color: [255,0,0]
        white_value: [255]

Tho that might not be 100% correct, as I’m on my phone, so autocorrect…

As long as you set the light up with

  mode: "rgbw"

You should be able to use:

  action:
  - data:
      brightness: 255
      white_value: 128
      entity_id:
      - light.magichome_1
      rgb_color:
      - 20
      - 0
      - 20
    service: light.turn_on

i added

light:
  - platform: flux_led
    devices:
      192.168.1.130:
        name: magichome
        mode: "rgbw"

at the end of configuration.yaml

and my automation.yaml looks like this

  action:
  - data:
      brightness: 255
      white_value: 128
      entity_id:
      - light.magichome_1
      rgb_color:
      - 20
      - 0
      - 20
    service: light.turn_on

if i switch on the light stripe the color is purple and switch to white immediately :frowning:
so first “rgb” and then only “w”

i found a way to control the LED RGBW Stripe really simple with mqtt.publish.
i flashed the Magichome with Tasmota.

- id: '1572620519359'
  alias: Licht Wohnzimmer LED Stripe EIN
  description: ''
  trigger:
  - entity_id: switch.licht_wohnzimmer_2
    platform: state
    to: 'on'
  condition: []
  action:
  - alias: ''
    data:
      payload: 255,50,0,255
      topic: Sonoff-1111/cmnd/Color2
    service: mqtt.publish