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

Add support for CCB-11 blind controller

Issue #456
Jason Rumney 3 лет назад
Родитель
Сommit
94245333bb

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -195,3 +195,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [MarciPain](https://github.com/MarciPain) for contributing support for PGST temperature and humidity sensors, Orion OWH-PTC2000 heaters and BlitzWolf SHP6 smartplugs.
 - [fischrobi](https://github.com/fischrobi) for assisting with support for Blitzwolf BW-SH2 humidifiers.
 - [elninosi](https://github.com/elninosi) for assisting with support for LoraTap curtain switches.
+- [mrulke](https://github.com/mrulke) for assisting with support for CCB-11 blind controllers.

+ 3 - 2
DEVICES.md

@@ -248,8 +248,9 @@ generic configurations known to work with multiple brands of device.
 - Abalon BCM700D curtain motor (likely to work with other brands)
 - Avatto curtain and light switch
 - Avatto curtain switch
-- Avatto roller blinds controller
+- Avatto roller blind controller
 - Benexmart blind motor
+- CCB-11 blind controller
 - Dongguan garage door
 - FS-03W curtain switch with backlight control
 - Kogan garage door with tilt sensor
@@ -257,7 +258,7 @@ generic configurations known to work with multiple brands of device.
 - LoraTap SC500W-V1 curtain switch
 - M027 curtain module (sold under several brands, including zemismart, meterk and others)
 - QS-WIFI-C01(BK) curtain module
-- Wistar roller blinds controller
+- Wistar roller blind controller
 - Zemismart curtain rail
 
 ### Vacuum Cleaners

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

@@ -0,0 +1,78 @@
+name: Blind controller
+products:
+  - id: 3r8gc33pnqsxfe1g
+    name: CCB-11
+primary_entity:
+  entity: cover
+  class: blind
+  dps:
+    - id: 1
+      name: control
+      type: string
+      mapping:
+        - dps_val: open
+          value: open
+        - dps_val: close
+          value: close
+        - dps_val: stop
+          value: stop
+    - id: 2
+      type: integer
+      name: position
+      unit: "%"
+      range:
+        min: 0
+        max: 100
+    - id: 3
+      type: integer
+      name: current_position
+      unit: "%"
+    - id: 7
+      type: string
+      name: action
+      mapping:
+        - dps_val: opening
+          constraint: current_position
+          conditions:
+            - dps_val: 100
+              value: opened
+            - value: opening
+        - dps_val: closing
+          constraint: current_position
+          conditions:
+            - dps_val: 0
+              value: closed
+            - value: closing
+    - id: 11
+      type: string
+      value: unknown_11
+    - id: 12
+      type: integer
+      value: unknown_12
+    - id: 103
+      type: boolean
+      value: unknown_103
+    - id: 104
+      type: boolean
+      value: unknown_104
+    - id: 105
+      type: boolean
+      value: unknown_105
+    - id: 106
+      type: string
+      value: unknown_106
+secondary_entities:
+  - entity: select
+    name: Motor direction
+    icon: "mdi:arrow-u-down-left"
+    category: config
+    dps:
+      - id: 8
+        type: string
+        name: option
+        mapping:
+          - dps_val: forward 
+            value: Forward
+          - dps_val: back
+            value: Reverse
+