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

Devola intelligent heater: use standard HA presets

- rename file to match convention
- use eco, boost, away for presets, to take advantage of standard HA translations.
- no need for range on current temperature, since what the heater reports will always be displayed.

PR #2950
Jason Rumney 1 год назад
Родитель
Сommit
ec7bab9aab
1 измененных файлов с 5 добавлено и 8 удалено
  1. 5 8
      custom_components/tuya_local/devices/devola_intelligent_heater.yaml

+ 5 - 8
custom_components/tuya_local/devices/devola-intelligent-heater.yaml → custom_components/tuya_local/devices/devola_intelligent_heater.yaml

@@ -1,8 +1,8 @@
-name: Devola-Intelligent heater
+name: Heater
 products:
 products:
   - id: laagtqcj40q1uwg8
   - id: laagtqcj40q1uwg8
     manufacturer: Devola
     manufacturer: Devola
-    model: Intelligent Heater
+    model: Intelligent
 entities:
 entities:
   - entity: climate
   - entity: climate
     translation_only_key: heater
     translation_only_key: heater
@@ -33,16 +33,13 @@ entities:
       - id: 3
       - id: 3
         name: current_temperature
         name: current_temperature
         type: integer
         type: integer
-        range:
-          min: 0
-          max: 50
       - id: 4
       - id: 4
         name: preset_mode
         name: preset_mode
         type: string
         type: string
         mapping:
         mapping:
           - dps_val: low
           - dps_val: low
-            value: Low
+            value: eco
           - dps_val: high
           - dps_val: high
-            value: High
+            value: boost
           - dps_val: antifrost
           - dps_val: antifrost
-            value: Anti Frost
+            value: away