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

feat(devices): add Avatto WSM16-DC-1 smart switch

Issue #5983
Jason Rumney 10 часов назад
Родитель
Сommit
aa91941cec
2 измененных файлов с 81 добавлено и 0 удалено
  1. 1 0
      DEVICES.md
  2. 80 0
      custom_components/tuya_local/devices/avatto_wsm16dc1_switch.yaml

+ 1 - 0
DEVICES.md

@@ -810,6 +810,7 @@ the best option.
 - Arlec PB88UHA 4 way powerstrip with child lock
 - Aubess 1-gang switch with energy monitoring
 - Aubess 2 and 3-gang switches
+- Avatto WSM16-DC-1 dry contact smart switch
 - Aziot 4, 7 and 8 gang multi-switches
 - Bauhn APSW-0624 5 way powerstrip (with unswitched USB)
 - BBCoin AC5299 PCIe computer switch

+ 80 - 0
custom_components/tuya_local/devices/avatto_wsm16dc1_switch.yaml

@@ -0,0 +1,80 @@
+name: Dry contact switch
+products:
+  - id: tyh5ryj3jfi3hkgv
+    manufacturer: Avatto
+    model: WSM16-DC-1
+entities:
+  - entity: switch
+    class: switch
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 7
+        type: integer
+        name: second
+        range:
+          min: 0
+          max: 86399
+  - entity: select
+    translation_key: initial_state
+    category: config
+    dps:
+      - id: 14
+        type: string
+        name: option
+        mapping:
+          - dps_val: "off"
+            value: "off"
+          - dps_val: "on"
+            value: "on"
+          - dps_val: memory
+            value: memory
+  - entity: text
+    translation_key: schedule
+    category: config
+    hidden: true
+    dps:
+      - id: 17
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Randomized schedule
+    category: config
+    icon: "mdi:island"
+    hidden: true
+    dps:
+      - id: 18
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Inching
+    category: config
+    icon: "mdi:toggle-switch"
+    hidden: true
+    dps:
+      - id: 19
+        type: string
+        optional: true
+        name: value
+  - entity: select
+    name: Switch type
+    icon: "mdi:toggle-switch"
+    category: config
+    dps:
+      - id: 47
+        type: string
+        name: option
+        mapping:
+          - dps_val: flip
+            value: Flip
+          - dps_val: sync
+            value: Synchronized
+          - dps_val: button
+            value: Button