First of all, I’m a newbie in Home assistant.
So, I’m playing with my lights.
for now, I’m playing with a color light (hue) and a white-only light.
So, I created multiple script like this (to keep it simple)
alias: Lights_Concentreren
sequence:
- service: light.turn_on
data:
brightness: '{{brightness}}'
color_temp: '{{color_temp}}'
entity_id: '{{entity_id}}'
transition: '{{transition}}'
mode: single
icon: 'mdi:lightbulb'
variables:
brightness: 255
color_temp: 233
entity_id: light.woonkamer_spots
transition: 0
like the “concentrate scene” in the hue app. I made a few others, (reading, dimmed,…)
everything ok
but,
then I added script that would mimick “nightbulb”
alias: Lights_Nachtlampje
sequence:
- service: light.turn_on
data:
brightness: '{{brightness}}'
rgb_color:
- '{{rgb_color_red}}'
- '{{rgb_color_green}}'
- '{{rgb_color_blue}}'
entity_id: '{{entity_id}}'
transition: '{{transition}}'
mode: single
icon: 'mdi:lightbulb'
variables:
brightness: 1
rgb_color_red: 255
rgb_color_green: 160
rgb_color_blue: 39
entity_id: light.woonkamer_spots
transition: 0
as you can see, it’s kind of dimmed red color.
the white only lamp, just dims the lamp, which is no problem (it has no color of course)
but the color lamp, doesn’t do a thing. It doesn’t turn dimmed red
When I turn off the color lamp, and call the script “nachtlampje”; it works.
In the hue app, there’s a kind of “White mode” and “color mode”.
Is there a way to change to “mode” ? Or, do I have to add at light.turn_off before I turn the light on?
Anyone who has a solution?
thx