LEDEPLY has wrong color temp range

I got these inexpensive LEDEPLY zigbee bulbs from Amazon, and they seem decent, but the white point is off. If I set them to 2700K (the min color temp value they support) they are visibly not at 2700k. The settings in HA go to 2000k for these bulbs, even though it says on the bulb that the min value is 2700k.

Is this detected incorrectly from something in the bulbs firmware, or is there some way to manually adjust the range? These are connected to HA via conbee 2 and uses ZHA.

Thanks!

Bumping this - anyone have experience with these ledeply bulbs? The company that makes them have a bunch of stuff on Amazon, but doesn’t seem to have much of a presence outside of Amazon at all.

also bumping this; I have the exact same issues.

@CaptainN I’m still kind of a Home Assistant Noob, but here’s my solution; copy/paste this into your configuration.yaml

light:
  - platform: template
    lights:
      calibrated_foyer_light:
        friendly_name: "Calibrated Foyer Light"
        min_mireds_template: "{{ 186 }}"
        max_mireds_template: "{{ 353 }}"
        value_template: "{{ states('light.front_foyer_mini_lamp') }}"
        level_template: "{{ (state_attr('light.front_foyer_mini_lamp', 'brightness')|int / 0.5)|round }}"
        temperature_template: "{{ state_attr('light.front_foyer_mini_lamp', 'color_temp') }}"
        turn_on:
          service: light.turn_on
          target:
            entity_id: light.front_foyer_mini_lamp
        turn_off:
          service: light.turn_off
          target:
            entity_id: light.front_foyer_mini_lamp
        set_level:
          service: light.turn_on
          target:
            entity_id: light.front_foyer_mini_lamp
          data:
            brightness: "{{ (brightness|int * 0.5)|round }}"
        set_temperature:
          service: light.turn_on
          target:
            entity_id: light.front_foyer_mini_lamp
          data:
            color_temp: >-
              {%- if color_temp >= 353 -%}
                500
              {%- elif color_temp >= 250 -%}
                {%- set slope = (500 - 364) / (353 - 250) -%}
                {{- 364 + (slope * (color_temp - 250)) | round -}}
              {%- elif color_temp >= 186 -%}
                {%- set slope = (364 - 236) / (250 - 186) -%}
                {{- 236 + (slope * (color_temp - 186)) | round -}}
              {%- else -%}
                236
              {%- endif -%}

Replace light.front_foyer_mini_lamp with your LEDEPLY bulb; you can also of course change the friendly name. I have Adaptive Lighting control my bulbs, and this calibration brings it much much closer to my neighboring Hue bulbs. Have it control light.calibrated_foyer_light (or whatever you change it’s name to). In Adaptive Lighting I had to turn on (checkmark) separate_turn_on_commands in order to get the brightness to work.

Feedback on the script would be appreciated!

1 Like