Hi all,
I am fairly new to home assistant and still learning the way to automate my smart devices. I realized there are a lot of possibilities which makes it quite hard some time to get things the way I want it. So far try and error did the trick for me but here’s something I can’t figure it out.
I simply create two scripts. one does flash a light 10 times in red for alarming me. Another one switches on the same light for 10s in green color.
'1588765873091':
alias: Flash Hue Go - red 10x
sequence:
- data:
brightness: '255'
flash: short
hs_color:
- 0
- 100
transition: '0'
entity_id: light.hue_go
service: light.turn_on
- delay: '1'
- data:
flash: short
hs_color:
- 0
- 100
transition: '0'
entity_id: light.hue_go
service: light.turn_on
- delay: '1'
- data:
flash: short
hs_color:
- 0
- 100
transition: '0'
entity_id: light.hue_go
service: light.turn_on
- delay: '1'
- data:
flash: short
hs_color:
- 0
- 100
transition: '0'
entity_id: light.hue_go
service: light.turn_on
- delay: '1'
- data:
flash: short
hs_color:
- 0
- 100
transition: '0'
entity_id: light.hue_go
service: light.turn_on
- delay: '1'
- data:
flash: short
hs_color:
- 0
- 100
transition: '0'
entity_id: light.hue_go
service: light.turn_on
- delay: '1'
- data:
flash: short
hs_color:
- 0
- 100
transition: '0'
entity_id: light.hue_go
service: light.turn_on
- delay: '1'
- data:
flash: short
hs_color:
- 0
- 100
transition: '0'
entity_id: light.hue_go
service: light.turn_on
- delay: '1'
- data:
flash: short
hs_color:
- 0
- 100
transition: '0'
entity_id: light.hue_go
service: light.turn_on
- delay: '1'
- data:
flash: short
hs_color:
- 0
- 100
transition: '0'
entity_id: light.hue_go
service: light.turn_on
- data: {}
entity_id: light.hue_go
service: light.turn_off
- delay: '2'
'1588766986243':
alias: Hue Go - green 10s
sequence:
- data:
brightness: '255'
hs_color:
- 120
- 100
entity_id: light.hue_go
service: light.turn_on
- delay: '10'
- data: {}
entity_id: light.hue_go
First script for flashing the light does work, however it doesn’t change the color to red (hs_color: [0,100]). The second script works as well and here it actually changes the color to green (hs_color: [120,100]) independently from the color it had before. Exactly like it is supposed to be.
So what’s the difference between both scripts, so that the flashing script doesn’t change the color to red. Is
flash: short
maybe incompatible with color changes?
thanks for any hints how to solve this?
Best
Pete