Explorar o código

Add support for Etersky curtain switch

Issue #778
Jason Rumney %!s(int64=2) %!d(string=hai) anos
pai
achega
8cbe6360cc

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -285,3 +285,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [mkrznar](https://github.com/mkrznar) for assisting with support for Beok TR8B thermostats.
 - [Rain-ZG](https://github.com/Rain-ZG) for assisting with support for Vivax Cool air conditioners.
 - [WilcoE](https://github.com/WilcoE) for assisting with support for Poolex Qline new Q7 variant of pool heatpumps.
+- [WiestDaessle](https://github.com/WiestDaessle) for contributing support for Etersky curtain switches.

+ 1 - 0
DEVICES.md

@@ -324,6 +324,7 @@ of device.
 - CC curtain controller 1
 - Dongguan garage door
 - Dooya curtain motor
+- Etersky curtain switch with backlight and timing control
 - FS-03W curtain switch with backlight control
 - Kogan garage door with tilt sensor
 - Loonas smart curtain

+ 38 - 0
custom_components/tuya_local/devices/etersky_curtain_switch.yaml

@@ -0,0 +1,38 @@
+name: Curtain switch
+products:
+  - id: 81dyy7vqe426s0yc
+    name: Etersky WF-CS01
+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
+secondary_entities:
+  - entity: light
+    name: Backlight
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: switch
+  - entity: number
+    name: Time control
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 10
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 10
+          max: 180