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

Add support for Cronos GPH-D-DA heater

Contributed in discussion #2299
Jason Rumney 1 год назад
Родитель
Сommit
b2c0328c0d
3 измененных файлов с 75 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 73 0
      custom_components/tuya_local/devices/cronos_gphdda_heater.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -712,3 +712,4 @@ Further device support has been made with the assistance of users. Please consid
 - [Tallyessin](https://github.com/Tallyessin) for contributing support for Calibo Cloudfan DC with light.
 - [nankoboerma](https://github.com/nankoboerma) for assisting with support for PowerWorld PW58410 water and climate heat pump.
 - [dslava70](https://github.com/dslava70) for contributing support for PowerWorld PW58330 water and climate heat pump.
+- [Nevynnyi](https://githuub.com/Nevynnyi) for contributing support for Cronos GPH-D-DA heater.

+ 1 - 0
DEVICES.md

@@ -13,6 +13,7 @@
 - Caldo Up T fan heater
 - Calex Smart Convector heater
 - Cleverio AR10/AR20 panel heaters
+- Cronos GPH-D-DA heater
 - Devola patio heater
 - Dynasty BTX fireplace
 - Ecostrad Accent iQ heating panel

+ 73 - 0
custom_components/tuya_local/devices/cronos_gphdda_heater.yaml

@@ -0,0 +1,73 @@
+name: Heater
+products:
+  - id: gdxxobacdlckd0ye
+    name: Cronos GPH-D-DA
+primary_entity:
+  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: 50
+    - id: 3
+      name: current_temperature
+      type: integer
+    - id: 5
+      name: preset_mode
+      type: string
+      optional: true
+      mapping:
+        - dps_val: "level_1"
+          value: eco
+        - dps_val: "level_2"
+          value: comfort
+        - dps_val: "level_3"
+          value: boost
+secondary_entities:
+  - 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