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

light_HassLightSet color temp support. #2059

Open
docgalaxyblock opened this issue Mar 7, 2024 · 1 comment
Open

light_HassLightSet color temp support. #2059

docgalaxyblock opened this issue Mar 7, 2024 · 1 comment

Comments

@docgalaxyblock
Copy link

Hey folks.
I would appreciate if the LightSet intent gets color temperature support.

I guess this feature requires a little discussion on how to implement it.

Personally I just need "Turn the light color [temperature] to (neutral/)warm/cold white".
Additionally you could implement a "set color to ".

Alexa has it implemented: https://developer.amazon.com/en-US/docs/alexa/device-apis/alexa-colortemperaturecontroller.html

Greetings 👋

@GsakuL
Copy link

GsakuL commented Jan 6, 2025

I second this.

here are my thoughts (not sure if they are useful")

currently, assist also happily accepts rgb colors for cct-only light. Colors like red, yellow, orange, blue might be debatable (but are inconsistent anyways), however green is obviously wrong. It turns on the lamp, but doesn't make much sense.
Alexa would say "{ device } does not support this".

Not sure if this holds true for all lights, but currently one of mine (cct-only) turns somewhat neutral with "white", and very warm with "orange". red and yellow do not work / only turn it neutral/cold. and blue turns it warm. So this might be a little (limited) workaround. But not for every light, because:
I've got a different light, where the rgb part is more of a "mood light"/ambient thing, and the cct is the real/bright part, which I want 99% of the time. Thus I'd like to rgb/hsl/xy/etc and temperature be explicitly different.

And that's why I personally think, there might be an edge case between "white" and "neutral white". Lights with different strengths (my second example) might output different levels, depending on rgb vs cct (assuming rgb is somewhat color correct). So "neutral" should perhaps not be optional in the phrase.

Not sure if thats possible, but in this case the rgb case could be default (unless ist cct only?)/have a higher priority, since for color temp would have always (neutral|warm|cold) and white?

Further more: Alexa (at least in German) has 5 cct levels, which I'm not sure how to translate, to convey the meaning.

  • warm white [adjective]
  • warm-white
  • white [neutral, soft-warm]
  • daylight white
  • cold-white
    grafik

Alexa can differentiate the two warm levels, however its questionable if thats "worth it". Also the colors in the Alexa app go from "orange" to "pure white", but do not have "blue", which some lamps do have, so that scale may be dependant on the light? However, I'd prefer all the lights have the same temperature (again, assuming their calibration is correct) when i use the same word. (so it's an "absolute" value in kelvin/mireds, and not "relative to min/max"). But thats essentially the same problem with rgb colors on multiple lights.

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

2 participants