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

Add support for Dooya curtain motor

Issue #472
Jason Rumney 3 лет назад
Родитель
Сommit
5dd50d5b4b
3 измененных файлов с 40 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 38 0
      custom_components/tuya_local/devices/dooya_curtain.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -205,3 +205,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [Whytey](https://github.com/Whytey/pymoebot) for investigation work into the MoeBot protocol.
 - [launchm](https://github.com/launchm) for assisting with support for Asakuki aroma diffusers.
 - [ajvandr](https://github.com/ajvandr) for assisting with support for Arlec temperature and humidity smart switches.
+- [denveronly](https://github.com/denveronly) for assisting with support for Dooya curtain motors.

+ 1 - 0
DEVICES.md

@@ -273,6 +273,7 @@ of device.
 - Benexmart blind motor
 - CCB-11 blind controller
 - Dongguan garage door
+- Dooya curtain motor
 - FS-03W curtain switch with backlight control
 - Kogan garage door with tilt sensor
 - Loonas smart curtain

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

@@ -0,0 +1,38 @@
+name: Dooya curtain
+product:
+  - id: spjpuwf1u2dc7tlt
+primary_entity:
+  entity: cover
+  class: curtain
+  dps:
+    - id: 101
+      type: string
+      name: control
+      mapping:
+        - dps_val: open
+          value: open
+        - dps_val: close
+          value: close
+        - dps_val: stop
+          value: stop
+    - id: 102
+      type: integer
+      name: current_position
+    - id: 104
+      type: integer
+      name: position
+secondary_entities:
+  - entity: select
+    name: Direction
+    icon: "mdi:swap-horizontal"
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: option
+        mapping:
+          - dps_val: false
+            value: Forward
+          - dps_val: true
+            value: Reverse
+