Closed baracoder closed 3 years ago
I had the same problem, now adding a note to the documentation https://github.com/esphome/esphome-docs/pull/742
Remember that
gamma_correct
is enabled by default (γ=2.8
), and you may want take it into account for the calibration. For instance if you command a light to 50% brightness and want it to be the new maximum:max_PWM_power = max_light_power^2.8 = 0.5^2.8 = 0.144
, then you would setmax_power
to 14.4%.
Also note that ESPHOME is always going to report the command scales from 0 to 100%, max_power
has its effect internally.
In your case, when the blue channel is set to 100%, internally it sends 70% of power. That is not a perceptible difference due to gamma correction. For that channel you should be setting max_power = 0.7^2.8 = 0.368
. Sounds very low, but that's how light perception works. Cheers!
I had the same problem, now adding a note to the documentation esphome/esphome-docs#742
Remember that
gamma_correct
is enabled by default (γ=2.8
), and you may want take it into account for the calibration. For instance if you command a light to 50% brightness and want it to be the new maximum:max_PWM_power = max_light_power^2.8 = 0.5^2.8 = 0.144
, then you would setmax_power
to 14.4%.Also note that ESPHOME is always going to report the command scales from 0 to 100%,
max_power
has its effect internally.In your case, when the blue channel is set to 100%, internally it sends 70% of power. That is not a perceptible difference due to gamma correction. For that channel you should be setting
max_power = 0.7^2.8 = 0.368
. Sounds very low, but that's how light perception works. Cheers!
I had the same problem with RGB light and was struggling to figure it out. This solved it for me completely. Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
docker
ESP (ESP32/ESP8266, Board/Sonoff):
"MagicHome" LED controller with esp8285
ESPHome version (latest production, beta, dev branch)
v1.15.3
Affected component:
light rgbw https://esphome.io/components/light/rgbw.html output config https://esphome.io/components/output/index.html#config-output
Description of problem: An RGBW light strip has blue tint. Color correction refers to setting
max_power
for individual outputs to correct. Setting different values does not affect light color, when setting rgb to white through home assistant.Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: