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

Wrong color temperature for 15W color bulb in ESPHome #109

Open
ssl-3 opened this issue Nov 22, 2024 · 0 comments
Open

Wrong color temperature for 15W color bulb in ESPHome #109

ssl-3 opened this issue Nov 22, 2024 · 0 comments

Comments

@ssl-3
Copy link

ssl-3 commented Nov 22, 2024

Background:

As-advertised, the 15W color bulb (LB01-15W) produces light from 3000k-6000k, which seems about right for the LEDs that are used.

However, in https://github.com/athom-tech/athom-configs/blob/main/athom-rgbct-light.yaml, we have this:

warm_white_color_temperature: 500 mireds

The problem:

500 mireds corresponds to a color temperature of about 2000k; a color that the bulb is incapable of natively providing.

This means that to get the advertised 3000k ("warm"), one must set the bulb to 2000k.

It also means that when setting the bulb to 3000k, the resultant color temperature is greater than 3000k.

This screws up scenes, automations, and everything else relating to color. It makes things that are somewhat tedius into things that are actually fairly difficult within environments like Home Assistant.

Proposed solution:

Change this: warm_white_color_temperature: 500 mireds

to this: warm_white_color_temperature: 333.3333 mireds

Edit 1,

Workaround

Appending this to the end of the configuration YAML for the device in Home Assistant's ESPHome dashboard works, and produces light that is consistent with my other color-adjustable bulbs. The following also adjusts the cooler part of the spectrum to the advertised 6000k (which is apparently-incorrectly ~6500k in athom-rgbct-light.yaml).

light:
  - id: !extend rgbct_light
    warm_white_color_temperature: 333.3333 mireds  # For 3000K
    cold_white_color_temperature: 167.6667 mireds  # For 6000K

edit 2, changed values so they show up rounded exactly to 3000k and 6000k in HA UI

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