How to control an ESPHome LED bulb colors from HA?

I have AITHINKER LD bulb which can change its colors.

It used to be flashed with ESPurna and was recognized in HA (via MQTT) - I flashed ESPHome on it and

  • the flashing was successful
  • I can connect it to HA
  • switching on/off works
  • I do not see any provision for colors management in HA

The ESPhome configuration is below (blindly copied from https://esphome.io/components/output/my9231.html - my configuration includes other common basic settings fro all devices)

esphome:
  name: ${name}
  platform: ESP8266
  board: esp01_1m

my9231:
  data_pin: GPIO13
  clock_pin: GPIO15
  num_channels: 4
  num_chips: 1
  bit_depth: 8

output:
  - platform: my9231
    id: output_red
    channel: 3
  - platform: my9231
    id: output_green
    channel: 2
  - platform: my9231
    id: output_blue
    channel: 1
  - platform: my9231
    id: output_cold_white
    channel: 0

light:
  - platform: rgbw
    name: ${name}
    red: output_red
    green: output_green
    blue: output_blue
    white: output_cold_white

Is there a specific way to tell HA that this is a color bulb so that it provides its color spectrum (to pick the color)?

Yes, by using this, as you did:

platform: rgbw

With the light on when you click on the icon or name there should be a pop-up more info box with a colour chooser.

Ah yes, thank you. What happened is that I was doing the tests in the entity view and somehow the extended window (with the color picker) was not appearing.

I moved that to Lovelace and it is there, as expected.

Thank you for your help (it is really appreciated, here and in the other cases, thanks).

1 Like