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
cooljimy84
(James Crook)
October 27, 2019, 6:59pm
2
I point my (automations) to a scene with the rgbw in there.
is it without a scene not possible?
cooljimy84
(James Crook)
October 27, 2019, 10:08pm
4
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…
tom_l
October 28, 2019, 12:29am
5
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
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