Hmm…I was using the color loop blueprint from @C.G.B.Spender without any issues and now I wanted to give this one a try because it was mentioned to be suggested to do so.
So what I did was:
- Created a Toggle Helper
- Created an automation with this blueprint which takes the Toggle Helper for enabling/disabling the color loop
- Created an automation for my physical light switch button which on “button hold” enables the Toggle Helper and on “button release” disables the Toggle Helper
It basically works. When I press the physical light switch button, the color loop starts.
But: Compared to the color loop bluepwint from C.G.B. Spender, when releasing the physical light switch button, the color loop does not stop exactly at the time of button release but instead it continues to loop for about a second or so. Therefore, most of the time, it is not possible to choose the color of choice, because mostly it jumps to the next color and then stops to loop. Seems like there’s a delay occurring somewhere.
Any ideas what the problem could be?
Thank you in advance!
Here’s the code for the color loop blueprint automation:
alias: test_color_loop
description: ""
use_blueprint:
path: mdolnik/color_loop.yaml
input:
light: light.tvroom
helper_toggle: input_boolean.test_helper
max_color_distance: 180
transition:
hours: 0
minutes: 0
seconds: 4
color_1:
- 255
- 0
- 0
color_2:
- 255
- 104
- 0
color_3:
- 255
- 237
- 0
color_4:
- 101
- 255
- 0
color_5:
- 0
- 128
- 0
color_6:
- 0
- 255
- 203
color_7:
- 7
- 200
- 255
color_8:
- 0
- 51
- 255
color_9:
- 115
- 0
- 255
color_10:
- 255
- 7
- 249
color_11:
- 255
- 2
- 150
max_changes_per_second: 1