فهرست منبع

Add support for Avatto curtain with double light switch

Issue #1892
Jason Rumney 1 سال پیش
والد
کامیت
ac1e5a7591
3فایلهای تغییر یافته به همراه134 افزوده شده و 0 حذف شده
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 132 0
      custom_components/tuya_local/devices/avatto_curtain_duallights.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -695,3 +695,4 @@ Further device support has been made with the assistance of users. Please consid
 - [holgergrote](https://github.com/holgergrote) for contributing support for Sygonix Smarter dehumidifier.
 - [holgergrote](https://github.com/holgergrote) for contributing support for Sygonix Smarter dehumidifier.
 - [rmf1995](https://github.com/rmf1995) for contributing support for Giatsu VAW 2 heat pump water heater.
 - [rmf1995](https://github.com/rmf1995) for contributing support for Giatsu VAW 2 heat pump water heater.
 - [murch1](https://github.com/murch1) for contributing support for Brilliant ceiling fan with light.
 - [murch1](https://github.com/murch1) for contributing support for Brilliant ceiling fan with light.
+- [NashHome](https://github.com/NashHome) for contributing support for Avatto curtain with double light switch.

+ 1 - 0
DEVICES.md

@@ -600,6 +600,7 @@ of device.
 - Abalon BCM700D curtain motor (likely to work with other brands)
 - Abalon BCM700D curtain motor (likely to work with other brands)
 - AGL Ultracontato r2 door controller
 - AGL Ultracontato r2 door controller
 - AGL Ultra Magic gate opener
 - AGL Ultra Magic gate opener
+- Avatto curtain and double light switch
 - Avatto curtain and light switch
 - Avatto curtain and light switch
 - Avatto curtain switch
 - Avatto curtain switch
 - Avatto roller blind controller
 - Avatto roller blind controller

+ 132 - 0
custom_components/tuya_local/devices/avatto_curtain_duallights.yaml

@@ -0,0 +1,132 @@
+name: Curtain and lights
+products:
+  - id: n76sxga6lyfujuac
+    name: Avatto SYS-CL02
+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
+    name: Light 1
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+  - entity: light
+    name: Light 2
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+  - entity: select
+    name: Calibration
+    icon: "mdi:curtains"
+    category: config
+    dps:
+      - id: 3
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: start
+            value: Start
+          - dps_val: end
+            value: End
+  - entity: light
+    translation_key: backlight
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: switch
+  - entity: select
+    name: Direction
+    icon: "mdi:arrow-u-down-left"
+    category: config
+    dps:
+      - id: 8
+        type: string
+        name: switch
+        mapping:
+          - dps_val: forward
+            value: Forward
+          - dps_val: back
+            value: Back
+  - entity: number
+    name: Travel time
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 10
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 10
+          max: 120
+  - entity: select
+    name: Motor connection
+    icon: "mdi:cogs"
+    category: config
+    dps:
+      - id: 12
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: strong_power
+            value: Direct
+          - dps_val: dry_contact
+            value: Via relay
+  - entity: number
+    name: Light 1 timer
+    category: config
+    translation_key: timer
+    dps:
+      - id: 103
+        type: integer
+        optional: true
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: number
+    name: Light 2 timer
+    category: config
+    translation_key: timer
+    dps:
+      - id: 104
+        type: integer
+        optional: true
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60