Skip to content

Instantly share code, notes, and snippets.

@janek26
Last active February 27, 2026 12:20
Show Gist options
  • Select an option

  • Save janek26/fc8e28db73bdad829c840593de858185 to your computer and use it in GitHub Desktop.

Select an option

Save janek26/fc8e28db73bdad829c840593de858185 to your computer and use it in GitHub Desktop.
blueprint:
name: "Philips Hue Dimmer Switch V2 (ZHA)"
description: >
Blueprint für den Philips Hue Dimmer Switch V2 (RWL022) über ZHA.
Unterstützt für alle 4 Tasten:
• Kurzer Druck (Short Press)
• Halten / Wiederholen (Hold) – feuert wiederholt solange die Taste gedrückt ist, ideal zum Dimmen
• Loslassen nach Halten (Long Release)
domain: automation
input:
# ──────────────────────────────────────────────
# Gerät
# ──────────────────────────────────────────────
remote:
name: "Fernbedienung"
description: "Wähle deine Philips Hue Dimmer Switch V2"
selector:
device:
filter:
- integration: zha
manufacturer: Philips
- integration: zha
manufacturer: Signify Netherlands B.V.
# ──────────────────────────────────────────────
# ON / Ein – Taste
# ──────────────────────────────────────────────
on_short_press:
name: "Ein – Kurzer Druck"
description: "Aktion bei kurzem Druck auf die Ein-Taste"
default: []
selector:
action: {}
on_hold:
name: "Ein – Halten (Wiederholt)"
description: "Aktion die wiederholt wird solange die Ein-Taste gedrückt ist"
default: []
selector:
action: {}
on_long_release:
name: "Ein – Loslassen nach Halten"
description: "Aktion wenn die Ein-Taste nach dem Halten losgelassen wird"
default: []
selector:
action: {}
# ──────────────────────────────────────────────
# UP / Heller – Taste
# ──────────────────────────────────────────────
up_short_press:
name: "Heller – Kurzer Druck"
description: "Aktion bei kurzem Druck auf die Heller-Taste"
default: []
selector:
action: {}
up_hold:
name: "Heller – Halten (Wiederholt)"
description: "Aktion die wiederholt wird solange die Heller-Taste gedrückt ist – ideal zum Hochdimmen"
default: []
selector:
action: {}
up_long_release:
name: "Heller – Loslassen nach Halten"
description: "Aktion wenn die Heller-Taste nach dem Halten losgelassen wird"
default: []
selector:
action: {}
# ──────────────────────────────────────────────
# DOWN / Dunkler – Taste
# ──────────────────────────────────────────────
down_short_press:
name: "Dunkler – Kurzer Druck"
description: "Aktion bei kurzem Druck auf die Dunkler-Taste"
default: []
selector:
action: {}
down_hold:
name: "Dunkler – Halten (Wiederholt)"
description: "Aktion die wiederholt wird solange die Dunkler-Taste gedrückt ist – ideal zum Runterdimmen"
default: []
selector:
action: {}
down_long_release:
name: "Dunkler – Loslassen nach Halten"
description: "Aktion wenn die Dunkler-Taste nach dem Halten losgelassen wird"
default: []
selector:
action: {}
# ──────────────────────────────────────────────
# OFF / Aus – Taste
# ──────────────────────────────────────────────
off_short_press:
name: "Aus – Kurzer Druck"
description: "Aktion bei kurzem Druck auf die Aus-Taste"
default: []
selector:
action: {}
off_hold:
name: "Aus – Halten (Wiederholt)"
description: "Aktion die wiederholt wird solange die Aus-Taste gedrückt ist"
default: []
selector:
action: {}
off_long_release:
name: "Aus – Loslassen nach Halten"
description: "Aktion wenn die Aus-Taste nach dem Halten losgelassen wird"
default: []
selector:
action: {}
# ════════════════════════════════════════════════════
# Automation
# ════════════════════════════════════════════════════
mode: restart
max_exceeded: silent
trigger:
# ── ON / Ein ──
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: on_short_release
cluster_id: 64512
id: on_short_press
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: on_hold
cluster_id: 64512
id: on_hold
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: on_long_release
cluster_id: 64512
id: on_long_release
# ── UP / Heller ──
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: up_short_release
cluster_id: 64512
id: up_short_press
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: up_hold
cluster_id: 64512
id: up_hold
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: up_long_release
cluster_id: 64512
id: up_long_release
# ── DOWN / Dunkler ──
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: down_short_release
cluster_id: 64512
id: down_short_press
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: down_hold
cluster_id: 64512
id: down_hold
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: down_long_release
cluster_id: 64512
id: down_long_release
# ── OFF / Aus ──
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: off_short_release
cluster_id: 64512
id: off_short_press
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: off_hold
cluster_id: 64512
id: off_hold
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
command: off_long_release
cluster_id: 64512
id: off_long_release
action:
- choose:
# ── ON / Ein ──
- conditions:
- condition: trigger
id: on_short_press
sequence: !input on_short_press
- conditions:
- condition: trigger
id: on_hold
sequence: !input on_hold
- conditions:
- condition: trigger
id: on_long_release
sequence: !input on_long_release
# ── UP / Heller ──
- conditions:
- condition: trigger
id: up_short_press
sequence: !input up_short_press
- conditions:
- condition: trigger
id: up_hold
sequence: !input up_hold
- conditions:
- condition: trigger
id: up_long_release
sequence: !input up_long_release
# ── DOWN / Dunkler ──
- conditions:
- condition: trigger
id: down_short_press
sequence: !input down_short_press
- conditions:
- condition: trigger
id: down_hold
sequence: !input down_hold
- conditions:
- condition: trigger
id: down_long_release
sequence: !input down_long_release
# ── OFF / Aus ──
- conditions:
- condition: trigger
id: off_short_press
sequence: !input off_short_press
- conditions:
- condition: trigger
id: off_hold
sequence: !input off_hold
- conditions:
- condition: trigger
id: off_long_release
sequence: !input off_long_release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment