Created
July 1, 2021 21:47
-
-
Save FerdinandoLM/7df17b0ccad6dcfbc2bd012d2f16f25d to your computer and use it in GitHub Desktop.
tradfri shortcut button blueprint .yaml
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 - Tradfri Shortcut Button | |
description: 'Control anything using Tradfri Shortcut Button remote' | |
domain: automation | |
input: | |
remote: | |
name: Remote | |
description: Tradfri Shortcut Button to use | |
selector: | |
device: | |
integration: deconz | |
manufacturer: IKEA of Sweden | |
model: TRADFRI SHORTCUT Button | |
button_short: | |
name: Button short press | |
description: Action to run on press button | |
default: [] | |
selector: | |
action: {} | |
button_long: | |
name: Button long press | |
description: Action to run on hold 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 == 1002 }}' | |
sequence: !input 'button_short' | |
- conditions: | |
- '{{ event == 1001 }}' | |
sequence: !input 'button_long' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment