Skip to content

Instantly share code, notes, and snippets.

@willwillems
Created November 10, 2025 07:57
Show Gist options
  • Select an option

  • Save willwillems/8c5dea9ced3c94ebdafce3d7334a7a9c to your computer and use it in GitHub Desktop.

Select an option

Save willwillems/8c5dea9ced3c94ebdafce3d7334a7a9c to your computer and use it in GitHub Desktop.
Custom Dial-Only Blueprint (no button presses)
blueprint:
name: Philips Tap Dial Switch (Dial Only)
description: 'Use only the rotary dial to dim a target light. Button presses are ignored.'
domain: automation
input:
remote:
name: Philips Hue Tap Switch
selector:
device:
integration: zha
manufacturer: Signify Netherlands B.V.
model: RDM002
target_light:
name: Light to Dim
description: The light(s) to control with the dial
selector:
target:
entity:
domain: light
dim_scale:
name: Dimming Scale
description: Scale factor for the dimming. Lower = slower, higher = faster.
default: 1.0
selector:
number:
min: 0.0
max: 5.0
step: 0.01
mode: restart
max_exceeded: silent
variables:
dim_scale: !input "dim_scale"
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input "remote"
action:
- variables:
command: "{{ trigger.event.data.command }}"
params: '{% if (trigger.event.data.params is defined) %}{{ trigger.event.data.params }}{% endif %}'
step_size: '{% if (trigger.event.data.params is defined) and (trigger.event.data.params.step_size is defined) %}{{ trigger.event.data.params.step_size }}{% endif %}'
step_mode: '{% if (trigger.event.data.params is defined) and (trigger.event.data.params.step_mode is defined) %}{{ trigger.event.data.params.step_mode }}{% endif %}'
- choose:
- conditions:
- "{{ command == 'step_with_on_off' }}"
- "{{ step_mode == 'StepMode.Up' }}"
sequence:
- service: light.turn_on
target: !input "target_light"
data:
brightness_step_pct: "{{ step_size * dim_scale }}"
transition: 1
- conditions:
- "{{ command == 'step_with_on_off' }}"
- "{{ step_mode == 'StepMode.Down' }}"
sequence:
- service: light.turn_on
target: !input "target_light"
data:
brightness_step_pct: "{{ -step_size * dim_scale }}"
transition: 1
# https://github.com/apollo1220/blueprints/blob/main/philips_zigbee_dial.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment