TLDR: This HACS repo add RGB, RGBW and RGBWW functionality to the light.template components: https://github.com/Vaarlion/HACS_home-assistant_template.light
Hi all !
I don’t know if Configuration is the right spot, i hesitated between it and Developments, but I’m here to share a HACS repo with a fix for the template.light component.
I don’t know if you noticed, but [a couple month ago](https://github.com/home-assistant/core/pull/76923)(sorry, 2 link limit for new user), the white_value attribute was fully removed from template.light service
The issue was that unlike MQTT light, they where no other way to control the white value of a RGBW light, the set_color and color_template attribute would only work for HS value
I’m not a dev, but i used template light with RGBW light so i started to look into it. After month of reading about async, test, and how HA is written, I’ve made something I’m very proud off.
This Pull request add set_hs, set_rgb, set_rgbw and set_rgbww script to managed all type off light, and template_hs, template_rgb, template_rgbw and template_rgbww template to get the data for those light
No breaking change, but it would be “best” IMO to change your template from set_color to set_hs and template_color to template_hs for readability
I’ve also push the test coverage to 100% ! Really proud of that.
Sadly, since January i haven’t got any input on it. Release goes by, rebase are sometime hard to do, and the fix i need for my home instance are just copy pasted… not clean. I understand that the core dev have a lot on their plate, sadly the more it wait the more work it is to keep it mergable.
So i decided to bite the bullet and try to make a HACS repo for it ! Now anyone can easily run the fixed version to, and as soon as a release go by i rebase it and the update show up in HACS !
Just add this https://github.com/Vaarlion/HACS_home-assistant_template.light custom repository and install the “Vaarlion template bugfix” component.
I hope this is a short fix, even the doc isn’t correct since the deprecation, but at least i would have done everything i could
Here is an example that merge 2 segments and the master control of wled with RGBW led into a single light
Have you been in touch with someone like Frank or Balloob? I really don’t understand why there’s still not even a reply since Jan.
I’ve been running into the same issue ever since they dropped the white_value on multiple instances and had to fiddle around with custom automations and number_values, but I’d like to unify it as it was possible before.
Thanks for your work so far, the code looks good to me!
Just a poke to reminde that i still update that HACS version, but only when I upgrade my HA witch is mostly alwayse 1 release back from release.
Today 2023.9 is up, but upgrading require a force restart as other file in the template integration was updated on source and i can’t just provide the light part.
Have you been in touch with someone like Frank or Balloob
Yes Frank, got the cold shoulder.
I might sound paranoiac or egocentric, but i believe i got flagged as a douche-bag by him after making a PR increasing the version of zwave-js on his addon without testing or validating anything.
Before that he opened change request on the template one. After that, no more reply.
I hesitate a lot before directly pinging him again yet without reply. I also tried to get info from the dev section of the discord about what could be blocking this… nothing either.
I know there is a lot of work from the core dev and i was willing to wait my turn. But given the broken aspect of the doc of this integration right now, and that i have pinged for help on this many time… over 9 month.
As of now, I’m forbidding myself to work on any other Home assistant issue, including ssl for fullykiosk and some documentation issue, because i don’t want them to be block only because i’ve done them.
I’m honestly waiting for someone else to do the same, and to be merged the same month…
Ok, A BIG change was introduced to the template integration, Config flow, and since this was never merged it completely skipped all of the change i’ve done.
I would need to spend a lot of time learning about config flow, what was changed and how to integrate that.
I’m not doing it. I had enough.
If this wasn’t merged in 9 months, it will probably never be and it’s not something HA want to see fix.
I’m dropping this issue and won’t be working on it anymore.
Feel free to do whatever you want with what’s left