zigbee_esphome icon indicating copy to clipboard operation
zigbee_esphome copied to clipboard

Basic mode not supporting color temperature?

Open Arakon opened this issue 2 months ago • 2 comments

I'm trying to get a zigbee control going for a RGB-WW-CW ceiling panel. The current config will generate almost all attributes, but the color temp is missing.

esphomeconfig (1).txt

The result is:

Image

I checked against a premade zigbee controller, and it seems to be missing this entry in the zigbee2mqtt definition:

zigbeelight.txt

Am I missing something in my config, or is this not supported yet?

Arakon avatar Oct 21 '25 17:10 Arakon

Not implemented. I have not looked into color temp and have not seen a manual configuration that I could reuse. Will keep this issue open until it is added.

luar123 avatar Oct 21 '25 18:10 luar123

Hi @Arakon, you can get color temperature working already with the existing solution. You just need to define the endpoints and clusters manually (Advanced Mode). I’m using the following snippet, and it works correctly with zigbee2mqtt, including proper color temp support.

endpoints:
    - num: 1
      device_type: COLOR_DIMMABLE_LIGHT
      clusters:
        - id: ON_OFF
          attributes:
            - attribute_id: 0
              type: bool
              on_value:
                then:
                  - light.control:
                      id: tuya_light
                      state: !lambda "return (bool)x;"
        - id: LEVEL_CONTROL
          attributes:
            - attribute_id: 0
              type: U8
              on_value:
                then:
                  - light.control:
                      id: tuya_light
                      brightness: !lambda "return ((float)x)/255;"
        - id: COLOR_CONTROL
          attributes:
            - attribute_id: 0x400a # ColorCapabilities
              type: U16
              value: 0b0000000000010000 # Color temperature supported
            - attribute_id: 0x400b # ColorTempPhysicalMinMireds
              type: U16
              value: 153
            - attribute_id: 0x400c # ColorTempPhysicalMaxMireds
              type: U16
              value: 370
            - attribute_id: 0x0008 # ColorMode 
              type: U8
              value: 0x02 # ColorTemperatureMireds
            - attribute_id: 0x4001 # EnhancedColorMode
              type: U8
              value: 0x02 # ColorTemperatureMireds
            - attribute_id: 0x0007 # ColorTemperatureMireds
              type: U16
              device: tuya_color_temperature_sensor
              scale: 0.333
              on_value:
                then:
                  - light.control:
                      id: tuya_light
                      color_temperature: !lambda "return (float)x;"

It should generate a configuration similar to the one below

Image

BjornOne avatar Nov 25 '25 12:11 BjornOne