Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Color Temperature to HS #3

Open
PowerUser64 opened this issue Aug 9, 2024 · 0 comments
Open

[FR] Color Temperature to HS #3

PowerUser64 opened this issue Aug 9, 2024 · 0 comments

Comments

@PowerUser64
Copy link

I think it would be really cool to be able to set RGB light bulbs to any color temperature, even beyond their standard "allowed" range. The only trouble is, converting from a color temperature to an actual color (or vice versa) is hard to do in HA without resorting to python.

I was looking at some of the features of this library while thinking color temperature conversions would be a really nice feature to add, because there isn't really a good way to do it yet.

What this would likely entail is temp2xy and xy2temp functions and then a spin-off function like temp2hs and hs2temp that use temp2xy and xy2hs intermediately.

Would this kind of functionality be appropriate for this library/template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant