-
-
Save ronaldt80/9f4b2562c307ff18ff60a0645d75d6ad to your computer and use it in GitHub Desktop.
deCONZ - Ecodim, 1 Channel remote - Blueprint
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 - Ecodim 1, Channel remote | |
description: | | |
Control anything using the Ecodim remote | |
domain: automation | |
input: | |
remote: | |
name: Remote controller | |
description: Remote to use | |
selector: | |
device: | |
integration: deconz | |
manufacturer: EcoDim | |
model: ED-10010 | |
button_on: | |
name: On Button | |
description: Action to run on press on On button | |
default: [] | |
selector: | |
action: | |
button_on_long: | |
name: On Long Press | |
description: Action to run on press on On long button | |
default: [] | |
selector: | |
action: | |
button_off: | |
name: Off Button | |
description: Action to run on press on Off button | |
default: [] | |
selector: | |
action: | |
button_off_long: | |
name: Off Long Press | |
description: Action to run on press on Off long button | |
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 }}" | |
- choose: | |
- conditions: | |
- "{{ event == 2001 }}" | |
sequence: !input button_off_long | |
- conditions: | |
- "{{ event == 2002 }}" | |
sequence: !input button_off | |
- conditions: | |
- "{{ event == 1001 }}" | |
sequence: !input button_on_long | |
- conditions: | |
- "{{ event == 1002 }}" | |
sequence: !input button_on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment