Răsfoiți Sursa

Add support for Arlec PB88UHA Series 2 Powerboard

This is the current model sold at Bunnings in Australia
illuzn 3 ani în urmă
părinte
comite
d689882e88
1 a modificat fișierele cu 117 adăugiri și 0 ștergeri
  1. 117 0
      custom_components/tuya_local/devices/arlec_pb88uha_s2_switch

+ 117 - 0
custom_components/tuya_local/devices/arlec_pb88uha_s2_switch

@@ -0,0 +1,117 @@
+name: Arlec PB88UHA Series 2 Powerboard
+primary_entity:
+  entity: switch
+  name: "Outlet 1"
+  class: outlet
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+secondary_entities:
+  - entity: switch
+    name: "Outlet 2"
+    class: outlet
+    dps:
+      - id: 2
+        type: boolean
+        name: switch
+  - entity: switch
+    name: "Outlet 3"
+    class: outlet
+    dps:
+      - id: 3
+        type: boolean
+        name: switch
+  - entity: switch
+    name: "Outlet 4"
+    class: outlet
+    dps:
+      - id: 4
+        type: boolean
+        name: switch
+  - entity: number
+    category: config
+    name: "Timer Switch 1"
+    icon: "mdi:timer"
+    dps:
+      - id: 9
+        name: value
+        type: integer
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: number
+    category: config
+    name: "Timer Switch 2"
+    icon: "mdi:timer"
+    dps:
+      - id: 10
+        name: value
+        type: integer
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: number
+    category: config
+    name: "Timer Switch 3"
+    icon: "mdi:timer"
+    dps:
+      - id: 11
+        name: value
+        type: integer
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: number
+    category: config
+    name: "Timer Switch 4"
+    icon: "mdi:timer"
+    dps:
+      - id: 12
+        name: value
+        type: integer
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: select
+    category: config
+    name: "Restore Power State"
+    dps:
+      - id: 38
+        name: option
+        type: string
+        mapping:
+          - dps_val: memory
+            value: "Remember Last Status"
+          - dps_val: on
+            value: "On"
+          - dps_val: off
+            value: "Off"
+  - entity: lock
+    category: config
+    name: "Child Lock"
+    dps:
+      - id: 41
+        name: lock
+        type: boolean
+        mapping:
+          - dps_val: true
+            icon: "mdi:lock"
+          - dps_val: false
+            icon: "mdi:lock-open"