Last active
October 23, 2025 14:38
-
-
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).
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: Hue Remote Lights (Philips Hue Integration) | |
| 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, RWL021, RWL022); check Hue integration and/or Hue app if you don't know the name" | |
| selector: | |
| device: | |
| filter: | |
| - integration: hue | |
| model: Hue dimmer switch (RWL020) | |
| - integration: hue | |
| model: Hue dimmer switch (RWL021) | |
| - integration: hue | |
| model: Hue dimmer switch (RWL022) | |
| button_1_pct: | |
| name: "Button #1 Brightness" | |
| description: Light brightness for top button (<ha-icon icon="mdi:power-on"></ha-icon>) | |
| default: 100 | |
| selector: | |
| number: | |
| min: 0 | |
| max: 100 | |
| step: 1 | |
| unit_of_measurement: "%" | |
| mode: slider | |
| button_2_pct: | |
| name: "Button #2 Brightness" | |
| description: Light brightness for second button (<ha-icon icon="mdi:brightness-7"></ha-icon>) | |
| default: 66 | |
| selector: | |
| number: | |
| min: 0 | |
| max: 100 | |
| step: 1 | |
| unit_of_measurement: "%" | |
| mode: slider | |
| button_3_pct: | |
| name: "Button #3 Brightness" | |
| description: Light brightness for third button (<ha-icon icon="mdi:brightness-1"></ha-icon>) | |
| default: 33 | |
| selector: | |
| number: | |
| min: 0 | |
| max: 100 | |
| step: 1 | |
| unit_of_measurement: "%" | |
| mode: slider | |
| light_temperature: | |
| name: Light Temperature | |
| description: Temperature of the lights | |
| default: 2700 | |
| selector: | |
| color_temp: | |
| unit: kelvin | |
| light_entity_ids: | |
| name: Lights | |
| description: "The lights you want the remote to affect" | |
| selector: | |
| entity: | |
| domain: light | |
| on_speed_transition: | |
| name: On Transition Speed | |
| description: How fast to transition between states | |
| default: 1 | |
| selector: | |
| number: | |
| min: 0 | |
| max: 10 | |
| step: 0.1 | |
| unit_of_measurement: Seconds | |
| mode: slider | |
| off_speed_transition: | |
| name: Off Transition Speed | |
| description: How fast to transition to off state | |
| default: 1 | |
| selector: | |
| number: | |
| min: 0 | |
| max: 10 | |
| step: 0.1 | |
| unit_of_measurement: Seconds | |
| mode: slider | |
| alias: "Light Remote" | |
| description: "" | |
| trigger: | |
| - id: on_pressed | |
| device_id: !input dimmer_device_id | |
| domain: hue | |
| platform: device | |
| type: short_release | |
| subtype: 1 | |
| - id: off_pressed | |
| device_id: !input dimmer_device_id | |
| domain: hue | |
| platform: device | |
| type: short_release | |
| subtype: 4 | |
| - id: dim_up_pressed | |
| device_id: !input dimmer_device_id | |
| domain: hue | |
| platform: device | |
| type: short_release | |
| subtype: 2 | |
| - id: dim_down_pressed | |
| device_id: !input dimmer_device_id | |
| domain: hue | |
| platform: device | |
| type: short_release | |
| subtype: 3 | |
| condition: [] | |
| action: | |
| - choose: | |
| - alias: "Button #1 Brightness" | |
| conditions: | |
| - condition: trigger | |
| id: on_pressed | |
| sequence: | |
| - service: light.turn_on | |
| data: | |
| kelvin: !input light_temperature | |
| brightness_pct: !input button_1_pct | |
| transition: !input on_speed_transition | |
| target: | |
| entity_id: !input light_entity_ids | |
| - alias: "Button #2 Brightness" | |
| conditions: | |
| - condition: trigger | |
| id: dim_up_pressed | |
| sequence: | |
| - service: light.turn_on | |
| data: | |
| kelvin: !input light_temperature | |
| brightness_pct: !input button_2_pct | |
| transition: !input on_speed_transition | |
| target: | |
| entity_id: !input light_entity_ids | |
| - alias: "Button #3 Brightness" | |
| conditions: | |
| - condition: trigger | |
| id: dim_down_pressed | |
| sequence: | |
| - service: light.turn_on | |
| data: | |
| kelvin: !input light_temperature | |
| brightness_pct: !input button_3_pct | |
| transition: !input on_speed_transition | |
| target: | |
| entity_id: !input light_entity_ids | |
| - alias: Turn Off | |
| conditions: | |
| - condition: trigger | |
| id: off_pressed | |
| sequence: | |
| - service: light.turn_off | |
| data: | |
| transition: !input off_speed_transition | |
| target: | |
| entity_id: !input light_entity_ids | |
| 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 | |
| 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