Bladeren bron

Add support for LS830-TY curtains.

Issue #1680
Jason Rumney 1 jaar geleden
bovenliggende
commit
9913cbed88
3 gewijzigde bestanden met toevoegingen van 80 en 1 verwijderingen
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 78 0
      custom_components/tuya_local/devices/ls830ty_curtain.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -495,7 +495,7 @@ Further device support has been made with the assistance of users. Please consid
 - [RoelDU](https://github.com/RoelDU) for assisting with support for Mirabella Genio Pixel oval lights.
 - [toposilva](https://github.com/toposilva) for assisting with support for 1CH dimmer modules.
 - [Pel1can111](https://github.com/Pel1can111) for assisting with support for Timeguard WFPIR motion light controller.
-- [ShiGhost](https://github.com/ShiGhost) for assisting with support for Keyun RGB chandelier fans.
+- [ShiGhost](https://github.com/ShiGhost) for assisting with support for Keyun RGB chandelier fans and LS830-TY curtains.
 - [knowc](https://github.com/knowc) for assisting with support for Hydrotherm Dynamic/X8 Gen 6 water heaters.
 - [Waz-Cpt](https://github.com/Waz-Cpt) for contributing support for a dual dimmer module.
 - [wizu](https://gitub.com/wizu) for contributing improvements to NAC AP470 purifier.

+ 1 - 0
DEVICES.md

@@ -517,6 +517,7 @@ of device.
 - LoraTap GDC100W garage door opener
 - LoraTap QCSC420W double curtain switch
 - LoraTap SC500W-V1 curtain switch (supports many other simple curtain/blind controllers)
+- 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

+ 78 - 0
custom_components/tuya_local/devices/ls830ty_curtain.yaml

@@ -0,0 +1,78 @@
+name: Curtain
+products:
+  - id: 550grkojy40jodv0
+    name: LS830-TY
+primary_entity:
+  entity: cover
+  class: curtain
+  dps:
+    - id: 1
+      type: string
+      name: control
+      mapping:
+        - dps_val: open
+          value: open
+        - dps_val: close
+          value: close
+        - dps_val: stop
+          value: stop
+    - id: 2
+      type: integer
+      name: position
+      optional: true
+      range:
+        min: 0
+        max: 100
+      mapping:
+        - invert: true
+    - id: 3
+      type: integer
+      name: current_position
+      range:
+        min: 0
+        max: 100
+      mapping:
+        - invert: true
+secondary_entities:
+  - entity: select
+    name: Direction
+    icon: "mdi:arrow-u-left-bottom"
+    category: config
+    dps:
+      - id: 5
+        type: boolean
+        name: option
+        mapping:
+          - dps_val: false
+            value: Clockwise
+          - dps_val: true
+            value: Anti-clockwise
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 10
+        type: bitfield
+        name: sensor
+        optional: true
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+  - entity: sensor
+    name: Running time
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 11
+        type: integer
+        name: sensor
+        optional: true
+        unit: s
+        class: measurement
+        mapping:
+          - scale: 1000
+          - dps_val: null
+            value: 0