Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ZHA Tuya single and double switches (ts0041 and ts0042) #216

Merged
merged 10 commits into from
Mar 7, 2024
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,18 @@
name: TuYa 1 Gang Switch
service: ZHA
event_type: zha_event
identifier_key: device_id
buttons:
- actions:
- title: press
conditions:
- key: command
value: remote_button_short_press
- title: press 2x
conditions:
- key: command
value: remote_button_double_press
- title: hold
conditions:
- key: command
value: remote_button_long_press
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,45 @@
name: TuYa 2 Gang Switch
service: ZHA
event_type: zha_event
identifier_key: device_id
buttons:
- x: 1
y: 1
width: 187
height: 381
conditions:
- key: endpoint_id
value: 1
actions:
- title: press
conditions:
- key: command
value: remote_button_short_press
- title: press 2x
conditions:
- key: command
value: remote_button_double_press
- title: hold
conditions:
- key: command
value: remote_button_long_press
- x: 192
y: 1
width: 187
height: 381
conditions:
- key: endpoint_id
value: 2
actions:
- title: press
conditions:
- key: command
value: remote_button_short_press
- title: press 2x
conditions:
- key: command
value: remote_button_double_press
- title: hold
conditions:
- key: command
value: remote_button_long_press