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

Create Relay_Module_Smart_16CH.yaml

stepsolar 7 месяцев назад
Родитель
Сommit
217a275ebe
1 измененных файлов с 288 добавлено и 0 удалено
  1. 288 0
      custom_components/tuya_local/devices/Relay_Module_Smart_16CH.yaml

+ 288 - 0
custom_components/tuya_local/devices/Relay_Module_Smart_16CH.yaml

@@ -0,0 +1,288 @@
+name: Relay Module Smart 16CH
+products:
+  - id: 05iqw2misedc8pgv
+    model: RCU-16
+entities:
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "1"
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "2"
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "3"
+    dps:
+      - id: 103
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "4"
+    dps:
+      - id: 104
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "5"
+    dps:
+      - id: 105
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "6"
+    dps:
+      - id: 106
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "7"
+    dps:
+      - id: 107
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "8"
+    dps:
+      - id: 108
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "9"
+    dps:
+      - id: 109
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "10"
+    dps:
+      - id: 110
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "11"
+    dps:
+      - id: 111
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "12"
+    dps:
+      - id: 112
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "13"
+    dps:
+      - id: 113
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "14"
+    dps:
+      - id: 114
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "15"
+    dps:
+      - id: 115
+        type: boolean
+        name: switch
+  - entity: switch
+    icon: "mdi:power"
+    translation_key: switch_x
+    translation_placeholders:
+      x: "16"
+    dps:
+      - id: 116
+        type: boolean
+        name: switch
+  - entity: select
+    name: Relay Status
+    icon: "mdi:lightning-bolt"
+    translation_key: initial_state
+    translation_placeholders:
+      x: "1"
+    category: config
+    dps:
+      - id: 117
+        type: string
+        name: option
+        mapping:
+          - dps_val: "off"
+            value: "off"
+          - dps_val: "on"
+            value: "on"
+          - dps_val: "fixed"
+            value: "memory"
+  - entity: select 
+    name: 1-8 IO set
+    icon: "mdi:lightning-bolt"
+    translation_key: initial_state 
+    translation_placeholders:
+      x: "2"
+    category: config 
+    dps:
+      - id: 118
+        type: string
+        name: option
+        mapping:
+          - dps_val: "eturn"
+            value: "eturn"
+          - dps_val: "switch"
+            value: "switch"
+          - dps_val: "sensor"
+            value: "sensor"
+  - entity: select 
+    name: 9-16 IO set
+    icon: "mdi:lightning-bolt"
+    translation_key: initial_state 
+    translation_placeholders:
+      x: "3"
+    category: config 
+    dps:
+      - id: 119
+        type: string
+        name: option
+        mapping:
+          - dps_val: "eturn"
+            value: "eturn"
+          - dps_val: "switch"
+            value: "switch"
+          - dps_val: "sensor"
+            value: "sensor"
+  - entity: select
+    name: Mode 1
+    translation_key: initial_state 
+    translation_placeholders:
+      x: "4"
+    category: config 
+    dps:
+      - id: 120
+        type: string
+        name: option
+        mapping:
+          - dps_val: "switch"
+            value: "switch"
+          - dps_val: "curtain"
+            value: "curtain"
+  - entity: select 
+    name: Mode 2
+    translation_key: initial_state 
+    translation_placeholders:
+      x: "5"
+    category: config 
+    dps:
+      - id: 121
+        type: string
+        name: option
+        mapping:
+          - dps_val: "switch"
+            value: "switch"
+          - dps_val: "curtain"
+            value: "curtain"
+  - entity: select 
+    name: Mode 3
+    translation_key: initial_state 
+    translation_placeholders:
+      x: "6"
+    category: config 
+    dps:
+      - id: 122
+        type: string
+        name: option
+        mapping:
+          - dps_val: "switch"
+            value: "switch"
+          - dps_val: "curtain"
+            value: "curtain"
+  - entity: select 
+    name: Scene
+    translation_key: scene
+    translation_placeholders:
+      x: "7"
+    category: config 
+    dps:
+      - id: 123
+        type: string
+        name: option
+        mapping:
+          - dps_val: "ready"
+            value: "ready"
+          - dps_val: "scene1"
+            value: "scene1"
+          - dps_val: "scene2"
+            value: "scene2"
+          - dps_val: "scene3"
+            value: "scene3"
+          - dps_val: "scene4"
+            value: "scene4"
+          - dps_val: "scene5"
+            value: "scene5"
+          - dps_val: "scene6"
+            value: "scene6"
+          - dps_val: "scene7"
+            value: "scene7"
+  - entity: number
+    name: Number 1-30
+    translation_key: number_x
+    translation_placeholders:
+      x: "8"
+    category: config 
+    dps:
+      - id: 125
+        type: integer
+        name: value
+        range:
+          min: 1
+          max: 30