this post was submitted on 27 Jun 2023
1 points (100.0% liked)
homeassistant
12027 readers
112 users here now
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I’m currently in the middle of a renovation so my HA instance is down, but let me give you some pointers. I think it’s possible but it’s getting right into the guts of what makes HA powerful (and complicated)
Firstly, template lights this is how you can surface a light that reads values from other elements and presents them as light settings.
Then the attribute you want is rgb_color and you want to parse out the red value (for the red channel) and convert it to a brightness for the template lamp.
Lastly you’ll need to work how to update the red value of the led strip when the brightness of the light changes. This will involve pulling back the green and blue values of the led strip and updating the strip’s rgb_color with the combined list. this page has examples.
I’m sorry I can’t give you any sample code but this hopefully gets you started.
Thanks for pointing me somewhere. I have managed to control individual channels and mix them with rgb_color, one strip was working quite fine on its own, on the other hand the second one cased troubles. It used the white channel, and whenever the white channel got active, the rest got shut down.
Eventually I have decided it's not worth any more of my time and replaced it with individual 2ch dimmers. I will save my 5ch for somewhere I can actually utilize it, or to tinker with the settings in the future.