Created
September 10, 2021 10:32
-
-
Save bazwilliams/aed22f90e521bf2efff02a216942b705 to your computer and use it in GitHub Desktop.
This file contains 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: "deCONZ - Philips Hue Dimmer Switch - Custom Actions" | |
description: Freely customizable actions for Philips Hue Dimmer Switch buttons. | |
domain: automation | |
input: | |
remote: | |
name: Dimmer Switch | |
selector: | |
device: | |
integration: deconz | |
manufacturer: Philips | |
entity: | |
domain: sensor | |
device_class: battery | |
on_press: | |
name: Button 1 (ON) press actions | |
default: [] | |
selector: | |
action: {} | |
on_hold: | |
name: Button 1 (ON) hold actions | |
default: [] | |
selector: | |
action: {} | |
off_press: | |
name: Button 4 (OFF) press actions | |
default: [] | |
selector: | |
action: {} | |
off_hold: | |
name: Button 4 (OFF) hold actions | |
default: [] | |
selector: | |
action: {} | |
mode: restart | |
max_exceeded: silent | |
trigger: | |
- platform: event | |
event_type: deconz_event | |
event_data: | |
device_id: !input remote | |
action: | |
- variables: | |
event: "{{ trigger.event.data.event }}" | |
area_id: "{{ area_id(trigger.event.data.device_id) }}" | |
- choose: | |
- conditions: | |
- "{{ event == 1002 }}" | |
sequence: !input on_press | |
- conditions: | |
- "{{ event == 1001 }}" | |
sequence: !input on_hold | |
- conditions: | |
- "{{ event == 2002 }}" | |
sequence: | |
- service: light.turn_on | |
target: | |
area_id: "{{ area_id }}" | |
data: | |
brightness_step_pct: 10 | |
- conditions: | |
- "{{ event == 2001 }}" | |
sequence: | |
- service: light.turn_on | |
target: | |
area_id: "{{ area_id }}" | |
data: | |
brightness_step_pct: 10 | |
- conditions: | |
- "{{ event == 3002 }}" | |
sequence: | |
- service: light.turn_on | |
target: | |
area_id: "{{ area_id }}" | |
data: | |
brightness_step_pct: -10 | |
- conditions: | |
- "{{ event == 3001 }}" | |
sequence: | |
- service: light.turn_on | |
target: | |
area_id: "{{ area_id }}" | |
data: | |
brightness_step_pct: -10 | |
- conditions: | |
- "{{ event == 4002 }}" | |
sequence: !input off_press | |
- conditions: | |
- "{{ event == 4001 }}" | |
sequence: !input off_hold |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment