Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color temperature action not working #666

Open
jeroenbeuz opened this issue Jan 5, 2023 · 3 comments
Open

Color temperature action not working #666

jeroenbeuz opened this issue Jan 5, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jeroenbeuz
Copy link

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.

@jeroenbeuz jeroenbeuz added the bug Something isn't working label Jan 5, 2023
@xaviml
Copy link
Owner

xaviml commented Jan 12, 2023

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.

@xaviml xaviml changed the title [BUG] Color temperature action not working Jan 12, 2023
@jeroenbeuz
Copy link
Author

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.

@xaviml
Copy link
Owner

xaviml commented Jan 12, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants