Increase color temperature of a LED strip using a knob

Hi all,
I’m new to HA, just installed HAOS in a N100 VM, with Sonoff Zigbee Dongle Plus.
Already installed Zigbee2MQTT and I’m testing a new CCT Led Strip Zigbee Tuya with an Avatto Zigbee Knob.

I’ve created 3 automations to turn on and off by knob (alternating), and to increase or decrease brightness, its working ok. But I don’t know how to change the color temperature of the strip using the knob, can you help me guys?

These are the 3 automations for turn on/off and brightness, but for temperature isn’t there any option to choose in the visual editor.

- id: '1729279794004'
  alias: LED Escritorio - Alternar
  description: ''
  triggers:
  - trigger: state
    entity_id:
    - sensor.knob_preto_action
    to: toggle
  conditions: []
  actions:
  - type: toggle
    device_id: 150cd71d79e21a9059246be7782d3364
    entity_id: 41e611ea3c96be285b3c1d88ad20aba0
    domain: light
  mode: single
- id: '1729280579306'
  alias: LED escritorio - Brilho +
  description: ''
  triggers:
  - trigger: state
    entity_id:
    - sensor.knob_preto_action
    to: brightness_step_up
  conditions: []
  actions:
  - device_id: 150cd71d79e21a9059246be7782d3364
    domain: light
    entity_id: 41e611ea3c96be285b3c1d88ad20aba0
    type: brightness_increase
  mode: single

Tried to change brightness_increase for some variations using color temp, but none worked.
The knob trigger function is “color_temperature_step_up” or “down”, just need to figure out how to set the led strip.
This is a print from the device action, there is no option for changing color temperature. But if I go in the device, I can do it normally.

Thanks.

Hi, welcome to the forum!

Have a look at this: https://www.youtube.com/watch?v=QSI3C6fHQSI&t=759s
He uses this know too and switches between different modes with it, exactly what you are looking for.

Here is a blueprint to achieve it: ZHA/Z2M - Control light color, hue, brightness with ERS dial

Thanks @Nick4 ! Ill take a look in this option.
As I’m new to HA, I didnt even know about blueprints, ill try it and then let you know the results.

Thanks.

1 Like

Hi @Nick4 ,
I’ve tried to understand that code for some hours during the weekend, but couldn’t find a way make this work.
As other ppl in the nwithan8 post, I’m getting the error below after I import the blueprint:

“Message malformed: Unknown entity registry entry 3f54bf4ca3825e82d62ae23dc093a929”

The idea of that code is really great and I liked it, but as I’m new to HA, I cant fully understand it, yet.

So, is that possible to put a code or use some variable directly in the Automation to make the temperature increment? Just like I did with the brightness.

Thanks again.