Skip to content

Commit

Permalink
Added Shelly Wall Switch Variants (#274)
Browse files Browse the repository at this point in the history
* Create shelly-shellyplusi4

* Add image of shelly i4

* Rename shelly-shellyplusi4 to shelly-shellyplusi4.yaml

* Add Shelly wall switches

* Fix Wall Switch 1

* Fix init and relased actions
  • Loading branch information
jdambacher authored Nov 3, 2024
1 parent 266f6a7 commit 8ca53ed
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Shelly Wall Switch (1 Button)
service: Shelly
event_type: shelly.click
identifier_key: device
buttons:
- actions:
- title: init
conditions:
- key: click_type
value: btn_down
- title: press
conditions:
- key: click_type
value: single_push
- title: press 2x
conditions:
- key: click_type
value: double_push
- title: press 3x
conditions:
- key: click_type
value: triple_push
- title: hold
conditions:
- key: click_type
value: long_push
- title: released
conditions:
- key: click_type
value: btn_up
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Shelly Wall Switch (2 Buttons)
service: Shelly
event_type: shelly.click
identifier_key: device
buttons:
- x: 32
y: 34
width: 169
height: 343
conditions:
- key: channel
value: 1
actions:
- title: init
conditions:
- key: click_type
value: btn_down
- title: press
conditions:
- key: click_type
value: single_push
- title: press 2x
conditions:
- key: click_type
value: double_push
- title: press 3x
conditions:
- key: click_type
value: triple_push
- title: hold
conditions:
- key: click_type
value: long_push
- title: released
conditions:
- key: click_type
value: btn_up

- x: 210
y: 34
width: 169
height: 343
conditions:
- key: channel
value: 2
actions:
- title: init
conditions:
- key: click_type
value: btn_down
- title: press
conditions:
- key: click_type
value: single_push
- title: press 2x
conditions:
- key: click_type
value: double_push
- title: press 3x
conditions:
- key: click_type
value: triple_push
- title: hold
conditions:
- key: click_type
value: long_push
- title: released
conditions:
- key: click_type
value: btn_up
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
136 changes: 136 additions & 0 deletions custom_components/switch_manager/blueprints/shelly-wall-switch-4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
name: Shelly Wall Switch (4 Buttons)/Shelly Plus i4
service: Shelly
event_type: shelly.click
identifier_key: device
buttons:
- x: 40
y: 40
width: 169
height: 169
conditions:
- key: channel
value: 1
actions:
- title: init
conditions:
- key: click_type
value: btn_down
- title: press
conditions:
- key: click_type
value: single_push
- title: press 2x
conditions:
- key: click_type
value: double_push
- title: press 3x
conditions:
- key: click_type
value: triple_push
- title: hold
conditions:
- key: click_type
value: long_push
- title: released
conditions:
- key: click_type
value: btn_up

- x: 219
y: 40
width: 169
height: 169
conditions:
- key: channel
value: 2
actions:
- title: init
conditions:
- key: click_type
value: btn_down
- title: press
conditions:
- key: click_type
value: single_push
- title: press 2x
conditions:
- key: click_type
value: double_push
- title: press 3x
conditions:
- key: click_type
value: triple_push
- title: hold
conditions:
- key: click_type
value: long_push
- title: released
conditions:
- key: click_type
value: btn_up

- x: 40
y: 219
width: 169
height: 169
conditions:
- key: channel
value: 3
actions:
- title: init
conditions:
- key: click_type
value: btn_down
- title: press
conditions:
- key: click_type
value: single_push
- title: press 2x
conditions:
- key: click_type
value: double_push
- title: press 3x
conditions:
- key: click_type
value: triple_push
- title: hold
conditions:
- key: click_type
value: long_push
- title: released
conditions:
- key: click_type
value: btn_up

- x: 219
y: 219
width: 169
height: 169
conditions:
- key: channel
value: 4
actions:
- title: init
conditions:
- key: click_type
value: btn_down
- title: press
conditions:
- key: click_type
value: single_push
- title: press 2x
conditions:
- key: click_type
value: double_push
- title: press 3x
conditions:
- key: click_type
value: triple_push
- title: hold
conditions:
- key: click_type
value: long_push
- title: released
conditions:
- key: click_type
value: btn_up

0 comments on commit 8ca53ed

Please sign in to comment.