ESP32 White Temperature

hi everyone,

I have an ESP LED controller imported into Openhab with ESPhome… the configuration (in ESPhome) exposes 1 channel for brightness and 1 channel for white temperature.

In HA I see both sliders automatically (in a single entity), but in OH I see a (workable) brightness, but temperature seems not known and even if I put it as a dimmer, it doesn’t do anything?

Any idea how to fix this?

We need to know what you mean by “imported”. How did you import this, or more specifically, how did you create the Items?

Additional info we need is which UI and where are you looking for these widgets.

Finally, if you are looking at MainUI’s overview page that means the semantic model is involved so we need to see the Item configs. Navigate to the Item, click on “edit” then “code” and paste the short bit of text you find there for both Items and a screen shot of what you see for how the Items are displayed.

Use code fences.

```
code goes here
```

Hi,

in OH I see the following (automatically detected) channels on the ESPHome device for 2 light configuration - I added the device using the ESPHome plugin with IP, name and API key… and the channels got automatically detected:

the first channel is the actual dimmer (dimming the light), but the 2nd channel (on light 1) has “string” as the type, but whatever i put there… nothing seems to change the temperature

This is based on the following ESPHome configuration

light:
  - platform: cwww
    name: "Office Spot Lights 1"
    cold_white: LED_channel_1
    warm_white: LED_channel_3
    cold_white_color_temperature: 6000 K
    warm_white_color_temperature: 2000 K

  - platform: cwww
    name: "Office Spot Lights 2"
    cold_white: LED_channel_2
    warm_white: LED_channel_4
    cold_white_color_temperature: 6000 K
    warm_white_color_temperature: 2000 K

in HomeAs. The 2 channels (per light) are shown as a single light entity with brighness and temperature control separately:

Hi Roelf,

the light support in the binding is not 100% yet. I tested your config (only guessing on what you have as the output component), and on my side it shows just 1 channel (for brightness).

So

  1. The binding doesn’t support color temperature channel yet (PRs welcome)
  2. The effects channel only shows if your component exposes at least 1 effect. It shows 0 effects on my side, hence no channel. From the ESPHome doc:
  • effect (Optional, string, templatable): If set, will attempt to start an effect with the given name.
  1. I noticed @AndrewFG did some code changes recently related to color temperature handling ([amazonechocontrol] Improve color temperature channel by andrewfg · Pull Request #17754 · openhab/openhab-addons · GitHub), but I don’t know if this comes with some improvements in the MainUI widgets or not.

I’m happy to help you debug, but in order to do so I would need the all relevant parts of the esphome config as well as DEBUG level logs from the binding, starting from before you enable the thing.

BRG