Open dylan09 opened 3 years ago
This is probably #2388.
Yes. I think its related. But for me at first start I get an error in HA because of incomplete status message. And the icon color in HA GUI didn't show the correct color, when light goes from RGB to color temperature (white).
And currently I have to stay with MQTT.
I have tried to get some information out of the source code for rgbww light and light call.
For me with color_interlock
set, the implementation of rgbww light is broken and didn't work without errors in HA.
If I set color_interlock
to false, the light is working with HA and I get no more errors and warnings in the logs.
But now I have to set white values using 2 sliders for warm white and cold white. Not very intuitive.
The pre color_mode model implemented until ESPHome 1.20.4 works as expected. I could set my white light using one slider for color temperature and one for brightness. For me its more intuitiv to set a color temperature in kelvin (or mireds) than to have to slider with wich I have to change color temperature step by step tuning cold white and warm white LEDs.
Maybe there is a way to change behavior, so that rgbww with color_interlock
works either as a RGB light or as a light with color temperature.
As a test I have tried to change the definition in rgbww_light_output.h
line 24 from light::ColorMode::COLD_WARM_WHITE
to light::ColorMode::COLOR_TEMPERATURE
.
With that I get the color temperature control and white brightness slider. But the color temperature setting didn't get useful white values with my lights.
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.
There is also one small glitch with the discovery message I found a few days ago. Maybe is it possible to add the min and max Mireds value to the discovery telegram?
Or I will try to create a PR later. Unfortunately I am not so experienced with git.
The problem
When using MQTT to communicate between my ESP RGBWW light with Home Assistant I get errors and warnings in HA log file. Errors and warnings saying
state topic
andcolor_mode
are not properly configured or contain wrong values.And, maybe related to this, the icon color in HA isn't correctly changed when switching from color to white light (color temperature). When light is in RGB mode the icon shows correct color. After changing to color temperature and setting light to white the icon stays on old rgb color.
Which version of ESPHome has the issue?
2021.10.3
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
2021.10.6
What platform are you using?
ESP8266
Board
esp_wroom_02
Component causing the issue
rgbww
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
Here the MQTT announcement for the above configuration:
MQTT state topic after booting light. This MQTT message/state is responsible for the above error message.
MQTT state topic after switching from RGB to color temperature. This topic produces the warning in HA log.
In the announce topic
supported_color_modes":["color_temp","rgb"]
is sent. But the second state topic contains"color_mode": "cwww"
.