Skip to content

Instantly share code, notes, and snippets.

@manix84
Last active October 23, 2025 14:38
Show Gist options
  • Save manix84/7c9cccac1f498b6b0fa134054f86ecab to your computer and use it in GitHub Desktop.
Save manix84/7c9cccac1f498b6b0fa134054f86ecab to your computer and use it in GitHub Desktop.
Hue Remote Lights (ZHA Integration) - A remote control mapper for the Philips Hue Remotes (RWL020, RWL021, and RWL022).
blueprint:
name: Hue Remote Lights
description: |
An automation for Hue remotes, which has brightness buttons (100%, 66%, 33%, 0%).
domain: automation
source_url: https://gist.github.com/manix84/7c9cccac1f498b6b0fa134054f86ecab
author: Manix84
input:
dimmer_device_id:
name: Dimmer Remote Device
description: "Your Hue dimmer remote (e.g. RWL020); check Hue integration and/or Hue app if you don't know the name"
selector:
device:
integration: zha
light_target:
name: Lights
description: "The lights you want the remote to affect"
selector:
target:
entity:
domain: light
alias: "Office Lights: Remote"
description: ""
trigger:
- device_id: !input dimmer_device_id
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
id: on_pressed
- device_id: !input dimmer_device_id
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
id: off_pressed
- device_id: !input dimmer_device_id
domain: zha
platform: device
type: remote_button_short_press
subtype: dim_up
id: dim_up_pressed
- device_id: !input dimmer_device_id
domain: zha
platform: device
type: remote_button_short_press
subtype: dim_down
id: dim_down_pressed
condition: []
action:
- choose:
- alias: 100% Brightness
conditions:
- condition: trigger
id: on_pressed
sequence:
- service: light.turn_on
data:
kelvin: 2700
brightness_pct: 100
transition: 1
target: !input light_target
- service: automation.turn_on
data: {}
target: !input automation_target
- alias: 66% Brightness
conditions:
- condition: trigger
id: dim_up_pressed
sequence:
- service: light.turn_on
data:
kelvin: 2700
brightness_pct: 66
transition: 1
target: !input light_target
- service: automation.turn_on
data: {}
target: !input automation_target
- alias: 33% Brightness
conditions:
- condition: trigger
id: dim_down_pressed
sequence:
- service: light.turn_on
data:
kelvin: 2700
brightness_pct: 33
transition: 1
target: !input light_target
- service: automation.turn_on
data: {}
target: !input automation_target
- alias: Turn Off
conditions:
- condition: trigger
id: off_pressed
sequence:
- service: light.turn_off
data:
transition: 2
target: !input light_target
- service: automation.turn_on
data: {}
target: !input automation_target
default:
- service: persistent_notification.create
data:
message: >-
Hue dimmer ran default event from "choose" action on button press!
Please check any automations which may not be handling this event: {{ trigger.id }}
notification_id: hue-remote-lights-with-automation
title: >-
Uncaught Dimmer Command ({{ trigger.id }})
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment