Color temperature action not working
Bug report
Description
Action 'hold' with attribute 'color_temp' does not work when the light is in a different 'color_mode', eg 'color_mode: xy'.
Additional information
- Devices involved:
- Model: [ Signify LCA006] as [ Light ]
- Model: [ Signify LCT024] as [ Light ]
- Integration:z2m
- AppDaemon version: [ v0.11.0 ]
- ControllerX version: [ v4.25.0 ]
- HACS version: [v1.29.0 ]
- Home Assistant Core version: [2023.1.0 ]
AppDaemon app configuration
studiekamer_controller:
module: controllerx
class: Philips929002398602LightController
controller: sensor.studiekamer_dimmer_switch
integration: z2m
light: light.studiekamer_lamp_beeldscherm_rechts
merge_mapping:
"on_hold":
- action: hold_colortemp_up
"off_hold":
- action: hold_colortemp_down
Additional Context
To reproduce: set the light (or light group) to a color within HASS or anywhere else, to make sure the state of the light has 'color_mode: xy'. Execute the action to increase/decrease the color temperature and nothing will happen. I've also tried to set the 'color_mode' to 'color_temp', but that also doesn't fix this issue. Besides, I just want to set the temperature when holding the on or off button.
Hi @jeroenbeuz ,
Thank you for reporting this bug. Could you please also attach the AppDaemon logs with the error (if any) when the lights are not working in the case you mention?
It is most likely that this is a bug with the light. ControllerX needs the color_temp attribute to change the color temperature, as well as the light supporting it. In case of having a light that only supports xy_color and not color_temp, then you can assign the color_wheel attribute to color_temp_wheel:
studiekamer_controller:
module: controllerx
class: Philips929002398602LightController
controller: sensor.studiekamer_dimmer_switch
integration: z2m
light: light.studiekamer_lamp_beeldscherm_rechts
color_wheel: color_temp_wheel
Regards, Xavi M.
Hi @xaviml ,
Thanks for the reply!
I'll check the logs when I'm back home again. But I do have tested this with lights that have both color_temp and xy_color. It's just that when the light is in the xy_color mode, the controller doesn't switch it to color_temp. When going to the light in HASS and change the temperature there, I can see in Z2M that the color_mode changes to color_temp.
Hi @jeroenbeuz ,
Thank you for the quick reply as well :) Do you mean then that your light supports both, xy color and color temperature. However, when it is marked as xy_color mode, then the light does not change the color_temp? I am not familiar with such feature since I do not own a light like this, but does this mean that the color_mode can only be one or the other? It cannot be both at the same time? Final question: which light do you have? Could you send a link from the official vendor if possible, or from Zigbee2MQTT page?
Thanks!