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

feat(devices): add Goldair GPCV405 convection heater (#5578)

christhementalist 5 дней назад
Родитель
Сommit
a73b4e9ab9
1 измененных файлов с 74 добавлено и 0 удалено
  1. 74 0
      custom_components/tuya_local/devices/goldair_gpcv405_heater.yaml

+ 74 - 0
custom_components/tuya_local/devices/goldair_gpcv405_heater.yaml

@@ -0,0 +1,74 @@
+name: Convection heater
+# products: Goldair GPCV405 (model CV1150), 2400W
+# A newer generation than goldair_gpcv_heater: the datapoints differ, so that
+# config does not match this unit (its dp7 is a string preset, here it is a
+# boolean child lock).
+# dp4 is the "Speed" control on the panel: H1 = Lo, H2 = Mid, H3 = Hi.
+# Mapped to fan_mode, as in taurus_agadir_heater which uses the same dialect.
+entities:
+  - entity: climate
+    translation_only_key: heater
+    dps:
+      - id: 1
+        name: hvac_mode
+        type: boolean
+        mapping:
+          - dps_val: true
+            value: heat
+          - dps_val: false
+            value: "off"
+      - id: 2
+        name: temperature
+        type: integer
+        unit: C
+        range:
+          min: 5
+          max: 35
+      - id: 3
+        name: current_temperature
+        type: integer
+      - id: 4
+        name: fan_mode
+        type: string
+        mapping:
+          - dps_val: H1
+            value: low
+          - dps_val: H2
+            value: medium
+          - dps_val: H3
+            value: high
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: lock
+  - 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"
+  - entity: light
+    translation_key: backlight
+    dps:
+      - id: 10
+        type: boolean
+        name: switch