4
0
Эх сурвалжийг харах

Add support for Linkoze dual button wall switch

Issue #774
Jason Rumney 2 жил өмнө
parent
commit
f1f24b5cb8

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -288,3 +288,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [WiestDaessle](https://github.com/WiestDaessle) for contributing support for Etersky curtain switches.
 - [Xpl0jd](https://github.com/Xpl0jd) for contributing support for Nedis portable air conditioners.
 - [jirijanu](https://github.com/jirijanu) for assisting with support for ZTH08ZTU zigbee temperature and humidity sensors.
+- [AndaPlays](https://github.com/AndaPlays) for assisting with support for Linkoze dual button wall switch.

+ 1 - 0
DEVICES.md

@@ -248,6 +248,7 @@ the best option.
 - Grid Connect double outlet wall socket
 - Grid Connect double outlet with Energy Monitoring, Master and Individual switches and Child Lock
 - Grid Connect USB charger with power socket
+- Linkoze LKWSW201 dual button
 - Logicom Strippy 4 way power strip with USB
 - Loratap RR400W-V2 relay switch
 - Mirabella Genio smartplug with USB

+ 48 - 0
custom_components/tuya_local/devices/linkoze_dual_button.yaml

@@ -0,0 +1,48 @@
+name: Dual buttons
+products:
+  - id: l8yaz4um5b3pwyvf
+    name: Linkoze LKWSW201
+primary_entity:
+  entity: binary_sensor
+  name: Click 1
+  dps:
+    - id: 1
+      type: string
+      name: sensor
+      persist: false
+      mapping:
+        - dps_val: click
+          value: true
+        - value: false
+secondary_entities:
+  - entity: binary_sensor
+    name: Click 2
+    dps:
+      - id: 2
+        type: string
+        name: sensor
+        persist: false
+        mapping:
+          - dps_val: click
+            value: true
+          - value: false
+  - entity: binary_sensor
+    name: Press 1
+    dps:
+      - id: 1
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: press
+            value: true
+          - value: false
+  - entity: binary_sensor
+    name: Press 2
+    dps:
+      - id: 2
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: press
+            value: true
+          - value: false