Skip to content

Wrong color from LEDs, broken gamma algorithm #1822

@jcam

Description

@jcam

Describe the bug
When I use the Home Assistant built in color picker, very often the bulbs turn the wrong color

Firmware:

  • Versions tried: 1.18.181, 1.18.109 and 1.17.736
  • Device: Daybetter 800lm RGB+2700-6500K
  • Chip/model: wb2l / BK7231T
  • Device config: bp5758d on pins 7 and 8, with BP5758D_Map 2 1 0 3 4

To Reproduce
Steps to reproduce the behavior:

  1. Add a bulb to home assistant
  2. Open the light entity for the device, choose a color on the color picker
  3. Observe the color
  4. Use MQTT explorer to see what color was selected, and compare that color to the light

Screenshots
Here I selected orange:

Image

Here's the color that was sent through MQTT:

Image

This is what color FF8402 should be:
https://www.color-hex.com/color/ff8402

Image

This is what the light is doing. The light on the left is using ESPHome (it is dining-room-1), the light on the right is using OpenBK 1.18.181. Both are showing the same color, in theory.
If it isn't clear from the image, because photos look different on different screens, the left ESPHome bulb looks like the same orange as FF8402, while the OpenBK bulb looks greenish yellow.

Image

Additional context
I thought maybe it was just the way these bulbs were until I tried ESPHome on this one bulb, and there the colors work perfectly. Unfortunately the startup time for ESPHome is terrible compared to OpenBK so I'd much rather stick to this project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions