Hi!
I’m new to Home Assistant, and I am trying to make a new ESP8266 based light with physical RGBWW LEDs, but only want to expose RGB + Color Temperature to Home Assistant. The two whites are mixed in hardware for the ability to have “full spectrum white with color tint” illumination. AFAIK, otherwise it would be “either RGB or tunable white” and never mix them.
The issue I am facing is that I can’t seem to get the discovery message right, so Home Assistant actually sends color temperature. And the brightness slider doesn’t work, either. Can someone point me in the right direction? I’m using the json schema here.
According to the documentation, the “supported color modes” (sup_clrm) should allow the lamp to work in different “modes” and Home Assistant should be able to actively send the according messages, matching each possible lamp mode. The color mode is never sent by Home Assistant (as stated in the documentation) but instead can be sent by the lamp for disambiguation. Which is what I do. So why aren’t brightness or color_temperature ever being sent?
Config message:
{
"name":"esp dimmer",
"schema":"json",
"clrm":"true",
"brightness":"true",
"bri_scl":"255",
"sup_clrm":["rgb","color_temp","brightness","white"],
"dev":{
"identifiers":["ESP-dimmer-13490202"],
"name":"esp dimmer"
},
"stat_t":"homeassistant/light/ESP-dimmer-13490202/state",
"cmd_t":"homeassistant/light/ESP-dimmer-13490202/set",
"uniq_id":"ESP-dimmer-13490202"
}
State message my lamp returns (in this example, it’s full brightness):
{
"state":"ON",
"color":{
"r":255,
"g":255,
"b":255
},
"color_temp":215,
"brightness":255,
"color_mode":"rgb"
}
When I move the brightness slider in Home Assistant, I only get a message with {“state”: “ON”}, no brightness values and no RGB values calculated to mimic brightness, either. When I change the color temperature through an automation (no color temp slider appeared in light card, only brightness and color wheel), I get a message with state and rgb, but not the “color_temp” that I need.
Oh and the logs are clean. No message about not accepting some configuration values.
What did I miss, where did I forget something?