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

How to change minimum color temperature? #33

Open
SpencerDub opened this issue Apr 25, 2023 · 4 comments
Open

How to change minimum color temperature? #33

SpencerDub opened this issue Apr 25, 2023 · 4 comments

Comments

@SpencerDub
Copy link

SpencerDub commented Apr 25, 2023

When using the warm RGB setting, I can set a Kauf bulb to output light that roughly matches a non-Kauf bulb set to a temperature of 2000K. However, the Kauf bulb's temperature range is floored at 2857K, so despite matching the color of 2000K, the attribute value is 2857K.

How can I manually override the minimum temperature of the bulb, so its numeric range more accurately represents the light I'm able to produce using the warm RGB setting?

Thanks!

@SpencerDub SpencerDub changed the title How to change max color temperature? How to change minimum color temperature? Apr 25, 2023
@bkaufx
Copy link

bkaufx commented Apr 25, 2023

On the normal ESPHome light you do it via cold_white_color_temperature and warm_white_color_temperature settings . Seen here in the lite yaml: https://github.com/KaufHA/kauf-rgbww-bulbs/blob/main/kauf-bulb-lite.yaml#L159-L160.

I will look into making this over-rideable on the default yaml.

@bkaufx
Copy link

bkaufx commented Apr 25, 2023

Yea I think this should be easy enough. I'll try to get to it in the next week or two.

@SpencerDub
Copy link
Author

Thanks, Brian! I appreciate it.

@bkaufx
Copy link

bkaufx commented May 6, 2023

Just added substitutions that can be overwritten to define min/max color temp. Either mired or Kelvin can be used and you have to give the units with the value.

substitutions:
  sub_warm_white_temp: 350 mireds
  sub_cold_white_temp: 150 mireds

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