Skip to content

Instantly share code, notes, and snippets.

@SimonDanisch
Last active March 14, 2026 14:46
Show Gist options
  • Select an option

  • Save SimonDanisch/f79bf75f266433628852e1dc89d83651 to your computer and use it in GitHub Desktop.

Select an option

Save SimonDanisch/f79bf75f266433628852e1dc89d83651 to your computer and use it in GitHub Desktop.
blueprint:
name: Philips Hue Dimmer RWL022 (Z2M)
description: Toggle + Dimmen mit Hue Dimmer RWL022 via Zigbee2MQTT
domain: automation
input:
remote_name:
name: Zigbee2MQTT Gerätename
description: Exakter Name des Dimmers in Zigbee2MQTT
selector:
text:
light:
name: Lampe
selector:
entity:
domain: light
mode: single
max_exceeded: silent
trigger:
- platform: mqtt
topic: !input remote_name
id: action
action:
- variables:
action: "{{ trigger.payload_json.action }}"
- choose:
- conditions: "{{ action == 'on_press' }}"
sequence:
- action: light.toggle
target:
entity_id: !input light
- conditions: "{{ action == 'up_press' or action == 'up_hold' }}"
sequence:
- action: light.turn_on
target:
entity_id: !input light
data:
brightness_step: 10
transition: 0.2
- conditions: "{{ action == 'down_press' or action == 'down_hold' }}"
sequence:
- action: light.turn_on
target:
entity_id: !input light
data:
brightness_step: -10
transition: 0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment