4
0
Эх сурвалжийг харах

Bonaire heater: add compatible Arlec product

Issue #2895
Jason Rumney 1 жил өмнө
parent
commit
2a05b7ae44

+ 91 - 2
custom_components/tuya_local/devices/bonaire_heater.yaml

@@ -1,8 +1,10 @@
-name: Electric Heater
+name: Heater
 products:
   - id: xto0qf9xem5bi7sj
     manufacturer: Bonaire
     model: HPC5200020
+  - id: hko3cyvbm7ps0rzi
+    manufacturer: Arlec
 entities:
   - entity: climate
     translation_only_key: heater
@@ -56,21 +58,98 @@ entities:
       - id: 12
         type: bitfield
         name: fault_code
+  - entity: switch
+    translation_key: ionizer
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 9
+        type: boolean
+        optional: true
+        name: switch
+      - id: 9
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
   - entity: light
     translation_key: backlight
     dps:
       - id: 10
         type: boolean
         name: switch
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "3h"
+            value: "3h"
+          - dps_val: "4h"
+            value: "4h"
+          - dps_val: "5h"
+            value: "5h"
+          - dps_val: "6h"
+            value: "6h"
+          - dps_val: "7h"
+            value: "7h"
+          - dps_val: "8h"
+            value: "8h"
+          - dps_val: "9h"
+            value: "9h"
+          - dps_val: "10h"
+            value: "10h"
+          - dps_val: "11h"
+            value: "11h"
+          - dps_val: "12h"
+            value: "12h"
+          - dps_val: "13h"
+            value: "13h"
+          - dps_val: "14h"
+            value: "14h"
+          - dps_val: "15h"
+            value: "15h"
+          - dps_val: "16h"
+            value: "16h"
+          - dps_val: "17h"
+            value: "17h"
+          - dps_val: "18h"
+            value: "18h"
+          - dps_val: "19h"
+            value: "19h"
+          - dps_val: "20h"
+            value: "20h"
+          - dps_val: "21h"
+            value: "21h"
+          - dps_val: "22h"
+            value: "22h"
+          - dps_val: "23h"
+            value: "23h"
+          - dps_val: "24h"
+            value: "24h"
   - entity: number
     translation_key: timer
     class: duration
+    # 2025-02-22
+    deprecated: select
     category: config
     dps:
       - id: 19
         type: string
         name: value
-        unit: hour
+        unit: h
         optional: true
         range:
           min: 0
@@ -126,3 +205,13 @@ entities:
             value: 23
           - dps_val: "24h"
             value: 24
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 20
+        type: integer
+        optional: true
+        name: sensor
+        unit: min