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

Add support for CC curtains.

Status is not really understood, so left as raw values on
curtain_status attribute rather than trying to use it as status.

Issue #523
Jason Rumney 2 лет назад
Родитель
Сommit
841d57fc7a
3 измененных файлов с 22 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 20 0
      custom_components/tuya_local/devices/cc_curtain.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -224,3 +224,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [pmazz](https://github.com/pmazz) for contributing Italian translations.
 - [thewolf-oz](https://github.com/thewolf-oz) for assisting with support for Arlec 12-speed tower fans, 6-speed floor fans and 19-speed wall fans, and contributing support for Arlec/Deta dimming lightbulbs.
 - [dhuddle](https://github.com/dhuddle) for assisting with support for Chanfok ceiling fan with light, Inkbird BBQ thermometer and Lepro lights (variant of RGBCW light without timer).
+- [theshop35](https://github.com/theshop35) for assisting with support for CC curtains.

+ 1 - 0
DEVICES.md

@@ -287,6 +287,7 @@ of device.
 - Avatto roller blind controller
 - Benexmart blind motor
 - CCB-11 blind controller
+- CC curtain controller 1
 - Dongguan garage door
 - Dooya curtain motor
 - FS-03W curtain switch with backlight control

+ 20 - 0
custom_components/tuya_local/devices/cc_curtain.yaml

@@ -0,0 +1,20 @@
+name: Curtain
+products:
+  - id: dy1jPRPGVR9G7PWY
+    name: CC smart curtain 1
+primary_entity:
+  entity: cover
+  dps:
+    - id: 2
+      name: curtain_status
+      type: string
+    - id: 101
+      name: control
+      type: string
+      mapping:
+        - dps_val: 01
+          value: stop
+        - dps_val: 02
+          value: open
+        - dps_val: 03
+          value: close