Skip to content

Commit

Permalink
Added ZHA Sengled Smart Switch E1E-G7F (#299)
Browse files Browse the repository at this point in the history
* Add Sengled Smart Switch E1E-G7F

* Fixed no newline
  • Loading branch information
gitpwn3d authored Dec 18, 2024
1 parent 7e6f613 commit 329128b
Show file tree
Hide file tree
Showing 2 changed files with 57 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,57 @@
name: Sengled Smart Light Switch E1E-G7FW
service: ZHA
event_type: zha_event
identifier_key: device_id
buttons:
- x: 11
y: 9
width: 121
height: 83
actions:
- title: press
conditions:
- key: command
value: "on"
- title: press 2x
conditions:
- key: command
value: "on_double"
- title: hold
conditions:
- key: command
value: "on_long"
- x: 11
y: 93
width: 121
height: 78
actions:
- title: press
conditions: "{{ data.command == 'step' and data.args == [0,1,0] }}"
- title: hold
conditions: "{{ data.command == 'step' and data.args == [0,2,0] }}"
- x: 11
y: 173
width: 121
height: 78
actions:
- title: press
conditions: "{{ data.command == 'step' and data.args == [1,1,0] }}"
- title: hold
conditions: "{{ data.command == 'step' and data.args == [1,2,0] }}"
- x: 11
y: 251
width: 121
height: 83
actions:
- title: press
conditions:
- key: command
value: "off"
- title: press 2x
conditions:
- key: command
value: "off_double"
- title: hold
conditions:
- key: command
value: "off_long"

0 comments on commit 329128b

Please sign in to comment.