Last active
January 21, 2026 10:51
-
-
Save GregPK/b9326004ec8369fffde2eb20a2e72835 to your computer and use it in GitHub Desktop.
Shelly i4 blueprint for HASS
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: Shelly i4 4 Buttons actions | |
| description: This blueprint is for the Shelly i4 setup as button. It is for general use. | |
| domain: automation | |
| input: | |
| button: | |
| name: button | |
| description: Choose Shelly i4 | |
| selector: | |
| device: | |
| manufacturer: Shelly | |
| multiple: false | |
| downb1: | |
| name: down Button 1 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| upb1: | |
| name: up Button 1 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| singleb1: | |
| name: single short press Button 1 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| doubleb1: | |
| name: double short press Button 1 | |
| description: Action to run when DOUBLE SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| longb1: | |
| name: long press Button 1 | |
| description: Action to run when LONG press | |
| default: [] | |
| selector: | |
| action: {} | |
| downb2: | |
| name: down Button 2 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| upb2: | |
| name: up Button 2 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| singleb2: | |
| name: single short press Button 2 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| doubleb2: | |
| name: double short press Button 2 | |
| description: Action to run when DOUBLE SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| longb2: | |
| name: long press Button 2 | |
| description: Action to run when LONG press | |
| default: [] | |
| selector: | |
| action: {} | |
| downb3: | |
| name: down Button 3 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| upb3: | |
| name: up Button 3 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| singleb3: | |
| name: single short press Button 3 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| doubleb3: | |
| name: double short press Button 3 | |
| description: Action to run when DOUBLE SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| longb3: | |
| name: long press Button 3 | |
| description: Action to run when LONG press | |
| default: [] | |
| selector: | |
| action: {} | |
| downb4: | |
| name: down Button 4 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| upb4: | |
| name: up Button 4 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| singleb4: | |
| name: single short press Button 4 | |
| description: Action to run when SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| doubleb4: | |
| name: double short press Button 4 | |
| description: Action to run when DOUBLE SHORT press | |
| default: [] | |
| selector: | |
| action: {} | |
| longb4: | |
| name: long press Button 4 | |
| description: Action to run when LONG press | |
| default: [] | |
| selector: | |
| action: {} | |
| source_url: https://community.home-assistant.io/t/shelly-i4-4-buttons-actions/514527 | |
| mode: restart | |
| max_exceeded: silent | |
| trigger: | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: btn_down | |
| subtype: button1 | |
| id: btn1_down | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: btn_up | |
| subtype: button1 | |
| id: btn1_up | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: single_push | |
| subtype: button1 | |
| id: btn1_single | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: double_push | |
| subtype: button1 | |
| id: btn1_double | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: long_push | |
| subtype: button1 | |
| id: btn1_long | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: btn_down | |
| subtype: button2 | |
| id: btn2_down | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: btn_up | |
| subtype: button2 | |
| id: btn2_up | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: single_push | |
| subtype: button2 | |
| id: btn2_single | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: double_push | |
| subtype: button2 | |
| id: btn2_double | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: long_push | |
| subtype: button2 | |
| id: btn2_long | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: btn_down | |
| subtype: button3 | |
| id: btn3_down | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: btn_up | |
| subtype: button3 | |
| id: btn3_up | |
| - platform: device | |
| device_id: !input button | |
| domain: shelly | |
| type: single_push | |
| subtype: button3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment