Procházet zdrojové kódy

Add support for SmartCurtain curtain motors

Issue #1627
Jason Rumney před 2 roky
rodič
revize
ef3ffc952b

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -504,3 +504,4 @@ Further device support has been made with the assistance of users. Please consid
 - [dannygreg](https://github.com/dannygreg)for contributing support for Graywind window shades.
 - [xeroski](https://github.com/xeroski) for assisting with support for Kerui 200W and JS-P162 300W cameras.
 - [dakker78](https://github.com/dakker78) for contributing support for Herschel IR heaters.
+- [liamlain](https://github.com/liamlain) for assisting with support for SmartCurtain curtains.

+ 1 - 0
DEVICES.md

@@ -505,6 +505,7 @@ of device.
 - Moes SCS80 Touch curtain swich with backlight and timing control
 - QS-WIFI-C01(BK) curtain module
 - SHerko curtain motor
+- SmartCurtains A-series ACS-WT curtain motor (may work for other models)
 - Wistar roller blind controller
 - ZC34T-03-3A swing arm window opener
 - Zemismart curtain rail

+ 40 - 0
custom_components/tuya_local/devices/smartcurtain_acs_wt.yaml

@@ -0,0 +1,40 @@
+name: Curtain
+products:
+  - id: spjpuwf1u2dc7tlt
+    name: SmartCurtain 3
+primary_entity:
+  entity: cover
+  class: curtain
+  dps:
+    - id: 101
+      type: string
+      name: control
+      mapping:
+        - dps_val: open
+          value: open
+        - dps_val: close
+          value: close
+        - dps_val: stop
+          value: stop
+  - id: 102
+    type: integer
+    name: current_position
+  - id: 104
+    type: integer
+    name: position
+    range:
+      min: 0
+      max: 100
+secondary_entities:
+  - entity: switch
+    name: Reverse
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        optional: true
+        name: switch
+        mapping:
+          - dps_val: null
+            value: false
+            hidden: true