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

feat(curtain_with_feedback): support QS-WIFI-S10-C04

- add optional switch type and calibration

Issue #5498
Jason Rumney 4 дней назад
Родитель
Сommit
1a4aa65bd1
1 измененных файлов с 50 добавлено и 0 удалено
  1. 50 0
      custom_components/tuya_local/devices/curtain_with_feedback.yaml

+ 50 - 0
custom_components/tuya_local/devices/curtain_with_feedback.yaml

@@ -1,4 +1,7 @@
 name: Curtain module
+products:
+  - id: uoa3mayicscacseb
+    model: QS-WIFI-S10-C04
 entities:
   - entity: cover
     class: curtain
@@ -51,3 +54,50 @@ entities:
         range:
           min: 1
           max: 60
+  - entity: button
+    name: Calibration start
+    category: config
+    hidden: true
+    dps:
+      - id: 3
+        type: string
+        optional: true
+        name: button
+        mapping:
+          - dps_val: start
+            value: true
+  - entity: button
+    name: Calibration end
+    category: config
+    hidden: true
+    dps:
+      - id: 3
+        type: string
+        optional: true
+        name: button
+        mapping:
+          - dps_val: end
+            value: true
+  - entity: select
+    name: Switch type
+    icon: "mdi:toggle-switch"
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 12
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: rock
+            value: Rocker switch
+          - dps_val: push
+            value: Push button
+      - id: 12
+        type: string
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true