I have an automation that matches my rgb-lights to colours in the album art from spotify and I have a wled-device that usually runs one of a few effect that looks better with a palette.
Currently I have to set it to an effect that looks ok with a single colour but I like the ones that uses a palette, there is a “color gradient” that has multiple colours that would be perfect.
My problem is that I cant figure out how to change the second and third colour to update the palette for wled, I can only change the first colour.
We can’t guess either.
What automation? Where can we look at any code to offer suggestions? Are there any apps/integrations involved? yaml? What algorithm is being used to select color?
[Please paste any code in the formatted </> option in your reply to make it readable]
Well I only seem to be able to control the first colour of the wled palette, and that is fine for some effects or the solid but not for all. Since I get the colour from the album art of the current playing spotify song I would prefer if the whole palette originates from the album. I use spotifyplus integration to get a colour from the album art. So far it only extracts one colour because it controls my zigbee lights . That part of the code is not the problem.
The problem is that I dont know how to change more than one colour of the WLED-palette. I can’t find a solution in the forums or wiki. The following code is just what’s executed on a button press to test. But like I said this changes the first colour not all
action: light.turn_on
metadata: {}
target:
entity_id:
- light.living_room_test_wled
data:
hs_color:
- "{{ range(255)|random }}"
- 100
brightness: 200
This is an image from wled palette screen to illustrate the three colours I’m referring to.
