Last active
March 14, 2025 19:25
-
-
Save Emanuele-Spatola/e94473409cc8f59a099132b24dacd2f0 to your computer and use it in GitHub Desktop.
Zigbee Smart Knob Light Control (ZG-101Z/D)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: "Zigbee Smart Knob Light Control ZG-101Z/D" | |
description: "Toggle and adjust brightness of a selected light using a Zigbee remote device." | |
domain: automation | |
input: | |
remote_device: | |
name: Remote Device | |
description: "Select the Zigbee remote device to control the light." | |
selector: | |
device: | |
integration: zha | |
light_target: | |
name: Target Light | |
description: "Select the light to control." | |
selector: | |
entity: | |
domain: light | |
brightness_step: | |
name: Brightness Step Percentage | |
description: "Set the percentage of brightness change per rotation step." | |
default: 10 | |
selector: | |
number: | |
min: 1 | |
max: 50 | |
unit_of_measurement: "%" | |
mode: restart | |
trigger: | |
- platform: device | |
device_id: !input remote_device | |
domain: zha | |
type: remote_button_short_press | |
subtype: button | |
id: toggle | |
- platform: device | |
device_id: !input remote_device | |
domain: zha | |
type: device_rotated | |
subtype: left | |
id: decrease | |
- platform: device | |
device_id: !input remote_device | |
domain: zha | |
type: device_rotated | |
subtype: right | |
id: increase | |
action: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: toggle | |
sequence: | |
- service: light.toggle | |
target: | |
entity_id: !input light_target | |
- conditions: | |
- condition: trigger | |
id: decrease | |
sequence: | |
- variables: | |
step: !input brightness_step | |
- service: light.turn_on | |
target: | |
entity_id: !input light_target | |
data: | |
brightness_step_pct: "{{ -1 * step | int }}" | |
- conditions: | |
- condition: trigger | |
id: increase | |
sequence: | |
- variables: | |
step: !input brightness_step | |
- service: light.turn_on | |
target: | |
entity_id: !input light_target | |
data: | |
brightness_step_pct: "{{ step | int }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment