Răsfoiți Sursa

Add support for FS-03W curtain controller

Issue #452
Jason Rumney 3 ani în urmă
părinte
comite
61b8c4ccd5

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -184,7 +184,7 @@ Further device support has been made with the assistance of users.  Please consi
 - [ruaandeysel](https://github.com/ruaandeysel) for assistance supporting Skyfan DC fans.
 - [DataGeek-AU](https://github.com/DataGeek-AU) for contributing support for Breville Easy Air purifiers.
 - [Clam58](https://github.com/Clam58) for contributing support for Ebac DJ4000 dehumidifierss.
-- [rafazundt](https://github.com/rafazundt) for assisting with support for AOFO ZLD and other 4-way+USB powerstrips, and iH001 LED controllers.
+- [rafazundt](https://github.com/rafazundt) for assisting with support for AOFO ZLD and other 4-way+USB powerstrips, iH001 LED controllers and FS-03W curtains.
 - [robertvanroosmal](https://github.com/robertvanroosmal) for assisting with support for Abalon smart curtains.
 - [garry0garry](https://github.com/garry0garry) for assisting with support for Emax EM3378 weather station.
 - [abroeders](https://github.com/abroeders) for contributing support for a 13kW variant of W'eau pool heatpump.

+ 1 - 0
DEVICES.md

@@ -251,6 +251,7 @@ generic configurations known to work with multiple brands of device.
 - Avatto roller blinds controller
 - Benexmart blind motor
 - Dongguan garage door
+- FS-03W curtain switch with backlight control
 - Kogan garage door with tilt sensor
 - Loonas smart curtain
 - LoraTap SC500W-V1 curtain switch

+ 75 - 0
custom_components/tuya_local/devices/fs_03w_curtain.yaml

@@ -0,0 +1,75 @@
+name: Curtain module
+products:
+  - id: 5rr5k8fzjcogubkt
+primary_entity:
+  entity: cover
+  class: curtain
+  dps:
+    - id: 1
+      name: control
+      type: string
+      mapping:
+        - dps_val: open
+          value: open
+        - dps_val: close
+          value: close
+        - dps_val: stop
+          value: stop
+    - id: 2
+      name: position
+      type: integer
+      unit: "%"
+      range:
+        min: 0
+        max: 100
+      mapping:
+        - step: 10
+secondary_entities:
+  - entity: light
+    name: Backlight
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: switch
+  - entity: select
+    name: Motor direction
+    category: config
+    icon: "mdi:sign-direction"
+    dps:
+      - id: 8
+        name: option
+        type: string
+        mapping:
+          - dps_val: forward
+            value: Forward
+          - dps_val: back
+            value: Back
+  - entity: number
+    name: Travel time
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 10
+        name: value
+        type: integer
+        unit: s
+        range:
+          min: 1
+          max: 60
+  - entity: select
+    name: Light mode
+    icon: "mdi:circle-double"
+    category: config
+    dps:
+      - id: 14
+        type: string
+        name: option
+        mapping:
+          - dps_val: relay 
+            value: State
+          - dps_val: pos
+            value: Position
+          - dps_val: none
+            value: "Off"
+