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

Add support for Curry Smarter roller shutter switch.

Issue #2464
Jason Rumney 1 год назад
Родитель
Сommit
2d4648ce46

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -742,3 +742,4 @@ Further device support has been made with the assistance of users. Please consid
 - [perimos](https://gituhb.com/perimos) for contributing support for KCvents VT-501 HRV.
 - [Tbaile](https://github.com/Tbaile) for contributing support for Plikc Neve Pro W thermostat.
 - [r08ertliu](https://github.com/r08ertliu) for contributing support for New Widetech WPF-15SW5 fan.
+- [banjohb](https://github.com/banjohb) for assisting with support for Curry Smarter 6-Gen roller shutter switch.

+ 1 - 0
DEVICES.md

@@ -636,6 +636,7 @@ of device.
 - Benexmart blind motor
 - CCB-11 blind controller
 - CC curtain controller 1
+- Curry Smarter 6-Gen roller shutter switch
 - Dongguan garage door
 - Dongguan LY1678-2 curtain robot
 - Dooya curtain motor

+ 61 - 0
custom_components/tuya_local/devices/currysmarter_6gen_rollershutter.yaml

@@ -0,0 +1,61 @@
+name: Roller shutter
+products:
+  - id: csgb8eqhczvjaetl
+    name: Curry Smarter 6Gen
+primary_entity:
+  entity: cover
+  class: shutter
+  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
+secondary_entities:
+  - entity: select
+    name: Calibration
+    icon: "mdi:arrow-collapse-vertical"
+    category: config
+    dps:
+      - id: 3
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: start
+            value: Start
+          - dps_val: end
+            value: End
+          - dps_val: null
+            value: Normal operation
+            hidden: true
+  - entity: light
+    translation_key: backlight
+    dps:
+      - id: 7
+        type: boolean
+        name: switch
+  - entity: select
+    name: Motor reverse mode
+    icon: "mdi:sign-direction"
+    category: config
+    dps:
+      - id: 8
+        type: string
+        name: option
+        mapping:
+          - dps_val: forward
+            value: Forward
+          - dps_val: back
+            value: Back