I have a strip of RGBW LEDs (SK6812) that I’m using to make a sunrise alarm. I’m using the nightlight function to customize the sunrise transitions. I want to do 3 transitions in sequence
- Red (255,0,0,0) @ bri:1 → Yellow (255,255,0,0) @ bri:128
- Yellow (255,255,0,0) @ bri:128 → White (255,255,255,0) @ bri:255
- White (255,255,255,0) @ bri:255 → Bright White (255,255,255,255) @ bri:255
1 & 2 work fine, but 3 doesn’t. Here’s my code. Anyone have any idea what I’m doing wrong?
"3":{
"on":true,
"bri":255,
"nl":{
"on":true,
"dur":10,
"mode":2,
"tbri":255
},
"seg":[
{
"id":0,
"start":0,
"stop":288,
"grp":1,
"spc":0,
"of":0,
"on":true,
"frz":false,
"bri":255,
"col":[
[255,255,255,0],
[255,255,255,255],
[0,0,0,0]
]
}
],
"n":"Sunrise (3)"
}
And for what it’s worth, I’ve tested and eliminated a few possibilities.
I can use the sliders to manually change the white channel and see the change on the LEDs, so I know the proper signal is being sent.
I have looked at the JSON output for the slider in both positions and verified that the only difference is the white channel at 0 vs 255.
I’ve tried the effect with all three night modes ( nl.mode
) and no difference.