Basic mode not supporting color temperature?
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.
The result is:
I checked against a premade zigbee controller, and it seems to be missing this entry in the zigbee2mqtt definition:
Am I missing something in my config, or is this not supported yet?
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.
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