Преглед изворни кода

Add support for Eruiklink curtain motors.

Issue #1735
Jason Rumney пре 1 година
родитељ
комит
4d48179b3c
3 измењених фајлова са 94 додато и 0 уклоњено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 92 0
      custom_components/tuya_local/devices/eruiklink_curtains.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -525,3 +525,4 @@ Further device support has been made with the assistance of users. Please consid
 - [ItsMe00007](https://github.com/ItsMe00007) for contributing support for Lehmann LHOHC-2013C radiators.
 - [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.

+ 1 - 0
DEVICES.md

@@ -508,6 +508,7 @@ of device.
 - Dongguan garage door
 - Dongguan LY1678-2 curtain robot
 - Dooya curtain motor
+- Eruiklink curtain motor
 - Etersky curtain switch with backlight and timing control
 - FS-03W curtain switch with backlight control
 - Graywind window shades

+ 92 - 0
custom_components/tuya_local/devices/eruiklink_curtains.yaml

@@ -0,0 +1,92 @@
+name: Curtain
+products:
+  - id: oxzxmhkdvqexpwqo
+    name: Eruiklink curtain motor
+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
+      range:
+        min: 0
+        max: 100
+      mapping:
+        - invert: true
+    - id: 3
+      type: integer
+      name: current_position
+      mapping:
+        - invert: true
+    - id: 7
+      type: string
+      name: action
+      mapping:
+        - dps_val: opening
+          constraint: situation_set
+          conditions:
+            - dps_val: fully_open
+              value: opened
+            - value: opening
+        - dps_val: closing
+          constraint: situation_set
+          conditions:
+            - dps_val: fully_close
+              value: closed
+            - value: closing
+    - id: 11
+      type: string
+      name: situation_set
+      optional: true
+      persist: false
+secondary_entities:
+  - entity: select
+    name: Direction
+    icon: "mdi:arrow-u-left-bottom"
+    category: config
+    dps:
+      - id: 5
+        type: string
+        name: option
+        mapping:
+          - dps_val: forward
+            value: Clockwise
+          - dps_val: back
+            value: Anti-clockwise
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 12
+        type: bitfield
+        name: sensor
+        optional: true
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 12
+        type: bitfield
+        optional: true
+        name: fault_code
+  - entity: binary_sensor
+    name: Hand pulled
+    icon: "mdi:hand-back-right"
+    category: diagnostic
+    dps:
+      - id: 102
+        type: boolean
+        name: sensor