Просмотр исходного кода

feat(devices): add Loratap SC411WSC-EU curtain switch

Issue #6058
Jason Rumney 3 часов назад
Родитель
Сommit
362d177fdb
2 измененных файлов с 45 добавлено и 1 удалено
  1. 1 1
      DEVICES.md
  2. 44 0
      custom_components/tuya_local/devices/loratap_sc411wsc_curtain.yaml

+ 1 - 1
DEVICES.md

@@ -1072,7 +1072,7 @@ of device.
 - Loonas smart curtain
 - LoraTap GDC100W garage door opener
 - LoraTap QCSC420W double curtain switch
-- LoraTap SC500W-V1 curtain switch (supports many other simple curtain/blind controllers)
+- LoraTap SC500W-V1, SC411WSC-EU curtain switches
 - LS830-TY curtain
 - M027 curtain module (sold under several brands, including zemismart, meterk and others)
 - M515 curtain motor

+ 44 - 0
custom_components/tuya_local/devices/loratap_sc411wsc_curtain.yaml

@@ -0,0 +1,44 @@
+name: Curtain switch
+products:
+  - id: 75zgxageqaovbtgg
+    manufacturer: Loratap
+    model: SC411WSC-EU
+entities:
+  - entity: cover
+    class: curtain
+    dps:
+      - id: 1
+        type: string
+        name: control
+        mapping:
+          - dps_val: "on"
+            value: open
+          - dps_val: "off"
+            value: close
+          - dps_val: stop
+            value: stop
+  - entity: switch
+    category: config
+    name: Reverse motor direction
+    icon: "mdi:arrow-u-down-left"
+    dps:
+      - id: 2
+        type: string
+        name: switch
+        mapping:
+          - dps_val: "forward"
+            value: false
+          - dps_val: "back"
+            value: true
+  - entity: number
+    name: Travel time
+    category: config
+    class: duration
+    dps:
+      - id: 3
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 10
+          max: 120