Created
July 6, 2024 21:44
-
-
Save oriolclosa/a561a986c7a1c0e13ca6dacfbf5b9426 to your computer and use it in GitHub Desktop.
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: deCONZ - IKEA SOMRIG shortcut button | |
| domain: automation | |
| input: | |
| remote: | |
| name: Remote | |
| description: The remote that will control the lights | |
| selector: | |
| device: | |
| integration: deconz | |
| manufacturer: 'IKEA of Sweden' | |
| model: 'SOMRIG shortcut button' | |
| button_one_short: | |
| name: Button 1 short press | |
| description: Action to run on press button 1 | |
| default: [] | |
| selector: | |
| action: {} | |
| button_one_long: | |
| name: Button 1 long press | |
| description: Action to run on hold button 1 | |
| default: [] | |
| selector: | |
| action: {} | |
| button_two_short: | |
| name: Button 2 short press | |
| description: Action to run on press button 2 | |
| default: [] | |
| selector: | |
| action: {} | |
| button_two_long: | |
| name: Button 2 long press | |
| description: Action to run on hold button 2 | |
| 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_one_short' | |
| - conditions: | |
| - '{{ event == 1001 }}' | |
| sequence: !input 'button_one_long' | |
| - conditions: | |
| - '{{ event == 2002 }}' | |
| sequence: !input 'button_two_short' | |
| - conditions: | |
| - '{{ event == 2001 }}' | |
| sequence: !input 'button_two_long' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment