Instantly share code, notes, and snippets.
Created
May 21, 2026 11:43
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
-
Save jinie/daf612bcf667c562565be753cc79808d 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: IKEA BILRESA Dual Button Matter remote | |
| description: > | |
| Generic blueprint for IKEA BILRESA Dual Button Matter event entities. | |
| Assign any Home Assistant action to each button event. | |
| domain: automation | |
| input: | |
| button_1_event: | |
| name: Button 1 event entity | |
| selector: | |
| entity: | |
| domain: event | |
| button_2_event: | |
| name: Button 2 event entity | |
| selector: | |
| entity: | |
| domain: event | |
| button_1_single: | |
| name: Button 1 single press | |
| default: [] | |
| selector: | |
| action: | |
| button_1_double: | |
| name: Button 1 double press | |
| default: [] | |
| selector: | |
| action: | |
| button_1_long: | |
| name: Button 1 long press | |
| default: [] | |
| selector: | |
| action: | |
| button_1_release: | |
| name: Button 1 release after long press | |
| default: [] | |
| selector: | |
| action: | |
| button_2_single: | |
| name: Button 2 single press | |
| default: [] | |
| selector: | |
| action: | |
| button_2_double: | |
| name: Button 2 double press | |
| default: [] | |
| selector: | |
| action: | |
| button_2_long: | |
| name: Button 2 long press | |
| default: [] | |
| selector: | |
| action: | |
| button_2_release: | |
| name: Button 2 release after long press | |
| default: [] | |
| selector: | |
| action: | |
| triggers: | |
| - trigger: state | |
| entity_id: !input button_1_event | |
| id: button_1 | |
| - trigger: state | |
| entity_id: !input button_2_event | |
| id: button_2 | |
| conditions: [] | |
| actions: | |
| - choose: | |
| - conditions: | |
| - condition: trigger | |
| id: button_1 | |
| - condition: state | |
| entity_id: !input button_1_event | |
| attribute: event_type | |
| state: multi_press_1 | |
| sequence: !input button_1_single | |
| - conditions: | |
| - condition: trigger | |
| id: button_1 | |
| - condition: state | |
| entity_id: !input button_1_event | |
| attribute: event_type | |
| state: multi_press_2 | |
| sequence: !input button_1_double | |
| - conditions: | |
| - condition: trigger | |
| id: button_1 | |
| - condition: state | |
| entity_id: !input button_1_event | |
| attribute: event_type | |
| state: long_press | |
| sequence: !input button_1_long | |
| - conditions: | |
| - condition: trigger | |
| id: button_1 | |
| - condition: state | |
| entity_id: !input button_1_event | |
| attribute: event_type | |
| state: long_release | |
| sequence: !input button_1_release | |
| - conditions: | |
| - condition: trigger | |
| id: button_2 | |
| - condition: state | |
| entity_id: !input button_2_event | |
| attribute: event_type | |
| state: multi_press_1 | |
| sequence: !input button_2_single | |
| - conditions: | |
| - condition: trigger | |
| id: button_2 | |
| - condition: state | |
| entity_id: !input button_2_event | |
| attribute: event_type | |
| state: multi_press_2 | |
| sequence: !input button_2_double | |
| - conditions: | |
| - condition: trigger | |
| id: button_2 | |
| - condition: state | |
| entity_id: !input button_2_event | |
| attribute: event_type | |
| state: long_press | |
| sequence: !input button_2_long | |
| - conditions: | |
| - condition: trigger | |
| id: button_2 | |
| - condition: state | |
| entity_id: !input button_2_event | |
| attribute: event_type | |
| state: long_release | |
| sequence: !input button_2_release | |
| mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment