فهرست منبع

Add support for Avatto curtain+light switches.

Issue #378
Jason Rumney 3 سال پیش
والد
کامیت
2c3453b92c
3فایلهای تغییر یافته به همراه81 افزوده شده و 0 حذف شده
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 79 0
      custom_components/tuya_local/devices/avatto_curtain_light.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -174,3 +174,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [samios88](https://github.com/samios88) for assistance supporting Nedis pet feeders.
 - [janchrillesen](https://github.com/janchrillesen) for assistance supporting Nedis air quality monitors.
 - [Celezak](https://github.com/Celezak) for assistance supporting Qnect 3 outlet + USB powerstrips.
+- [ShayGus](https://github.com/ShayGus) for contributing support for Avatto curtain and light switch.

+ 1 - 0
DEVICES.md

@@ -226,6 +226,7 @@ generic configurations known to work with multiple brands of device.
 
 - Simple garage door
 - Simple blind controller
+- Avatto curtain and light switch
 - Avatto curtain switch
 - Avatto roller blinds controller
 - Benexmart blind motor

+ 79 - 0
custom_components/tuya_local/devices/avatto_curtain_light.yaml

@@ -0,0 +1,79 @@
+name: Avatto Curtain and Light
+product:
+  - id: v59tpvs4ubvjalhq
+    name: Avatto CB3S
+primary_entity:
+  entity: cover
+  class: curtain
+  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
+      name: position
+      type: integer
+      unit: "%"
+      range:
+        min: 0
+        max: 100
+      mapping:
+        - step: 10
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+  - entity: select
+    name: Calibration
+    icon: "mdi:curtains"
+    category: config
+    dps:
+      - id: 3
+        type: string
+        name: option
+        mapping:
+          - dps_val: start
+            value: Start
+          - dps_val: end
+            value: End
+  - entity: light
+    name: Backlight
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Reverse
+    icon: "mdi:arrow-u-down-left"
+    category: config
+    dps:
+      - id: 8
+        type: string
+        name: switch
+        mapping:
+          - dps_val: forward
+            value: false
+          - dps_val: back
+            value: true
+  - entity: number
+    name: Time control
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 10
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 10
+          max: 120
+