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

Add support for Moes WS-Y-EUC curtain switch

Issue #1751
Jason Rumney 1 год назад
Родитель
Сommit
592d01439e

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -526,3 +526,4 @@ Further device support has been made with the assistance of users. Please consid
 - [bonius1](https://github.com/bonius1) for assisting with support for Zemismart DP-WBS01 8 zone irrigation controllers.
 - [airwebber](https://github.com/airwebber) for assisting with support for Orison ceiling fans with RGB lights.
 ^ [cherokee13](https://github.com/cherokee13) for assisting with support for Eruiklink curtain motors.
+- [Szenky](https://github.com/Szensky) for assisting with support for Moes WS-Y-EUC curtain switches.

+ 2 - 1
DEVICES.md

@@ -520,7 +520,8 @@ of device.
 - LS830-TY curtain
 - M027 curtain module (sold under several brands, including zemismart, meterk and others)
 - M515 curtain motor
-- Moes SCS80 Touch curtain swich with backlight and timing control
+- Moes SCS80 Touch curtain switch with backlight and timing control
+- Moes WS-Y-EUC curtain switch 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)

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

@@ -0,0 +1,38 @@
+name: Curtain switch
+products:
+  - id: 1qhlrytqcpnqmzj7
+    name: Moes WS-Y-EUC
+primary_entity:
+  entity: cover
+  class: curtain
+  dps:
+    - id: 1
+      name: control
+      type: string
+      mapping:
+        - dps_val: "on"
+          value: open
+        - dps_val: "off"
+          value: close
+        - dps_val: stop
+          value: stop
+secondary_entities:
+  - entity: light
+    category: config
+    name: Backlight
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+  - entity: number
+    name: Travel time
+    category: config
+    icon: "mdi:clock-end"
+    dps:
+      - id: 9
+        type: integer
+        name: value
+        unit: s 
+        range:
+          min: 10
+          max: 120