I have this zigbee lightbulb (TuYa TS0505B_1 control via MQTT | Zigbee2MQTT) and I use this smart knob (TuYa ERS-10TZBVK-AA control via MQTT | Zigbee2MQTT) to try and control the color temp in a gradual manner based on to knob rotation (left/right).
The problem is that no matter what I try based on the documentation of the device, the color temp will hit the min or max values even if I only made a small adjustment.
Is there a way to insert a “timer” function in the YAML to kill the process, as if to force it to run this command only up to 0.1seconds, thus allowing to fake a gradual move?
- conditions:
- condition: template
value_template: "{{ command == 'color_temperature_step_down' }}"
alias: "color temp step down "
sequence:
- service: mqtt.publish
data:
topic: zigbee2mqtt/office_celling_zb_light/set
payload: |
{"color_temp_move": -2 }
- conditions:
- condition: template
value_template: "{{ command == 'color_temperature_step_up' }}"
sequence:
- service: mqtt.publish
data:
topic: zigbee2mqtt/office_celling_zb_light/set
payload: |
{"color_temp_move": 2 }