Skip to content

[FR] Color Temperature to HS #3

@PowerUser64

Description

@PowerUser64

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions