Skip to content

Instantly share code, notes, and snippets.

@ronaldt80
Created February 7, 2021 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronaldt80/533b1d632d90ef1b87e8694dd3329185 to your computer and use it in GitHub Desktop.
Save ronaldt80/533b1d632d90ef1b87e8694dd3329185 to your computer and use it in GitHub Desktop.
deCONZ - Ecodim, 2 Channel remote - Blueprint
blueprint:
name: deCONZ - Ecodim, 2 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-10012
button_on_1:
name: On Button Row 1
description: Action to run on press on On button
default: []
selector:
action:
button_on_1_long:
name: On Long Press Row 1
description: Action to run on press on On long button
default: []
selector:
action:
button_off_1:
name: Off Button Row 1
description: Action to run on press on Off button
default: []
selector:
action:
button_off_1_long:
name: Off Long Press Row 1
description: Action to run on press on Off long button
default: []
selector:
action:
button_on_2:
name: On Button Row 2
description: Action to run on press on On button
default: []
selector:
action:
button_on_2_long:
name: On Long Press Row 2
description: Action to run on press on On long button
default: []
selector:
action:
button_off_2:
name: Off Button Row 2
description: Action to run on press on Off button
default: []
selector:
action:
button_off_2_long:
name: Off Long Press Row 2
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 == 4001 }}"
sequence: !input button_off_1_long
- conditions:
- "{{ event == 4002 }}"
sequence: !input button_off_1
- conditions:
- "{{ event == 3001 }}"
sequence: !input button_on_1_long
- conditions:
- "{{ event == 3002 }}"
sequence: !input button_on_1
- conditions:
- "{{ event == 2001 }}"
sequence: !input button_off_2_long
- conditions:
- "{{ event == 2002 }}"
sequence: !input button_off_2
- conditions:
- "{{ event == 1001 }}"
sequence: !input button_on_2_long
- conditions:
- "{{ event == 1002 }}"
sequence: !input button_on_2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment