فهرست منبع

feat (heaters): add low, medium, high, preset_1-3, standby preset_modes

Some heaters have low/medium/high mapped to eco, comfort, boost, but
this is not obvious to new users and takes some getting used to. It
also results in submissions ignoring known presets and using Low,
Medium and High to better match their heater.

Preset 1-3 and Standby were already in use, so could use translations.

Issue #1708
Jason Rumney 4 ماه پیش
والد
کامیت
d460780414
27فایلهای تغییر یافته به همراه332 افزوده شده و 33 حذف شده
  1. 3 3
      custom_components/tuya_local/devices/cecotec_readywarm2000max_heater.yaml
  2. 2 2
      custom_components/tuya_local/devices/kogan_kasmgphXXXX_heater.yaml
  3. 2 2
      custom_components/tuya_local/devices/livn_arosa_fireplace.yaml
  4. 3 3
      custom_components/tuya_local/devices/semptec_zx7007_heater.yaml
  5. 14 1
      custom_components/tuya_local/translations/bg.json
  6. 14 1
      custom_components/tuya_local/translations/ca.json
  7. 14 1
      custom_components/tuya_local/translations/cz.json
  8. 14 1
      custom_components/tuya_local/translations/de.json
  9. 14 1
      custom_components/tuya_local/translations/el.json
  10. 14 1
      custom_components/tuya_local/translations/en.json
  11. 14 1
      custom_components/tuya_local/translations/es.json
  12. 14 1
      custom_components/tuya_local/translations/fr.json
  13. 14 1
      custom_components/tuya_local/translations/hu.json
  14. 14 1
      custom_components/tuya_local/translations/id.json
  15. 14 1
      custom_components/tuya_local/translations/it.json
  16. 14 1
      custom_components/tuya_local/translations/ja.json
  17. 14 1
      custom_components/tuya_local/translations/no-NB.json
  18. 14 1
      custom_components/tuya_local/translations/pl.json
  19. 14 1
      custom_components/tuya_local/translations/pt-BR.json
  20. 14 1
      custom_components/tuya_local/translations/pt-PT.json
  21. 14 1
      custom_components/tuya_local/translations/ro.json
  22. 14 1
      custom_components/tuya_local/translations/ru.json
  23. 14 1
      custom_components/tuya_local/translations/sv.json
  24. 14 1
      custom_components/tuya_local/translations/uk.json
  25. 14 1
      custom_components/tuya_local/translations/ur.json
  26. 14 1
      custom_components/tuya_local/translations/zh-Hans.json
  27. 14 1
      custom_components/tuya_local/translations/zh-Hant.json

+ 3 - 3
custom_components/tuya_local/devices/cecotec_readywarm2000max_heater.yaml

@@ -56,11 +56,11 @@ entities:
           - dps_val: EC
             value: eco
           - dps_val: P1
-            value: Program 1
+            value: program_1
           - dps_val: P2
-            value: Program 2
+            value: program_2
           - dps_val: P3
-            value: Program 3
+            value: program_3
           - dps_val: AF
             value: away
           - dps_val: ST

+ 2 - 2
custom_components/tuya_local/devices/kogan_kasmgphXXXX_heater.yaml

@@ -21,9 +21,9 @@ entities:
         type: string
         mapping:
           - dps_val: Low
-            value: eco
+            value: low
           - dps_val: High
-            value: boost
+            value: high
       - id: 2
         name: temperature
         type: integer

+ 2 - 2
custom_components/tuya_local/devices/livn_arosa_fireplace.yaml

@@ -47,9 +47,9 @@ entities:
           - dps_val: auto
             value: comfort
           - dps_val: manual_high
-            value: boost
+            value: high
           - dps_val: manual_low
-            value: eco
+            value: low
       - id: 13
         type: string
         name: temperature_unit

+ 3 - 3
custom_components/tuya_local/devices/semptec_zx7007_heater.yaml

@@ -20,11 +20,11 @@ entities:
         name: preset_mode
         mapping:
           - dps_val: "1"
-            value: eco
+            value: low
           - dps_val: "2"
-            value: comfort
+            value: medium
           - dps_val: "3"
-            value: boost
+            value: high
       - id: 14
         type: string
         name: hvac_action

+ 14 - 1
custom_components/tuya_local/translations/bg.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Нагревател"
+                "name": "Нагревател",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Ниско",
+                            "medium": "Средно",
+                            "high": "Високо",
+                            "program_1": "Програма 1",
+                            "program_2": "Програма 2",
+                            "program_3": "Програма 3",
+                            "standby": "Готовност"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/ca.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Escalfador"
+                "name": "Escalfador",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Baix",
+                            "medium": "Mitjà",
+                            "high": "Alt",
+                            "program_1": "Programa 1",
+                            "program_2": "Programa 2",
+                            "program_3": "Programa 3",
+                            "standby": "En espera"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/cz.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Ohřívač"
+                "name": "Ohřívač",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Nízký",
+                            "medium": "Střední",
+                            "high": "Vysoký",
+                            "program_1": "Program 1",
+                            "program_2": "Program 2",
+                            "program_3": "Program 3",
+                            "standby": "Pohotovostní režim"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/de.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Heizung"
+                "name": "Heizung",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Niedrig",
+                            "medium": "Mittel",
+                            "high": "Hoch",
+                            "program_1": "Programm 1",
+                            "program_2": "Programm 2",
+                            "program_3": "Programm 3",
+                            "standby": "Standby"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/el.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Θέρμανση"
+                "name": "Θέρμανση",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Χαμηλή",
+                            "medium": "Μεσαία",
+                            "high": "Υψηλή",
+                            "program_1": "Πρόγραμμα 1",
+                            "program_2": "Πρόγραμμα 2",
+                            "program_3": "Πρόγραμμα 3",
+                            "standby": "Αναμονή"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/en.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Heater"
+                "name": "Heater",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Low",
+                            "medium": "Medium",
+                            "high": "High",
+                            "program_1": "Program 1",
+                            "program_2": "Program 2",
+                            "program_3": "Program 3",
+                            "standby": "Standby"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/es.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Calentador"
+                "name": "Calentador",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Bajo",
+                            "medium": "Medio",
+                            "high": "Alto",
+                            "program_1": "Programa 1",
+                            "program_2": "Programa 2",
+                            "program_3": "Programa 3",
+                            "standby": "En espera"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/fr.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Chauffage"
+                "name": "Chauffage",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Bas",
+                            "medium": "Moyen",
+                            "high": "Haut",
+                            "program_1": "Programme 1",
+                            "program_2": "Programme 2",
+                            "program_3": "Programme 3",
+                            "standby": "Veille"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/hu.json

@@ -267,7 +267,20 @@
                 }
             },
             "heater": {
-                "name": "Fűtő"
+                "name": "Fűtő",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Alacsony",
+                            "medium": "Közepes",
+                            "high": "Magas",
+                            "program_1": "Program 1",
+                            "program_2": "Program 2",
+                            "program_3": "Program 3",
+                            "standby": "Készenlét"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/id.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Pemanas"
+                "name": "Pemanas",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Rendah",
+                            "medium": "Sedang",
+                            "high": "Tinggi",
+                            "program_1": "Program 1",
+                            "program_2": "Program 2",
+                            "program_3": "Program 3",
+                            "standby": "Siaga"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/it.json

@@ -267,7 +267,20 @@
                 }
             },
             "heater": {
-                "name": "Stufa"
+                "name": "Stufa",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Basso",
+                            "medium": "Medio",
+                            "high": "Alto",
+                            "program_1": "Programma 1",
+                            "program_2": "Programma 2",
+                            "program_3": "Programma 3",
+                            "standby": "Standby"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/ja.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "ヒーター"
+                "name": "ヒーター",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "低い",
+                            "medium": "中",
+                            "high": "高い",
+                            "program_1": "プログラム 1",
+                            "program_2": "プログラム 2",
+                            "program_3": "プログラム 3",
+                            "standby": "スタンバイ"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/no-NB.json

@@ -267,7 +267,20 @@
                 }
             },
             "heater": {
-                "name": "Varmeapparat"
+                "name": "Varmeapparat",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Lav",
+                            "medium": "Medium",
+                            "high": "Høy",
+                            "program_1": "Program 1",
+                            "program_2": "Program 2",
+                            "program_3": "Program 3",
+                            "standby": "Standby"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/pl.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Podgrzewacz"
+                "name": "Podgrzewacz",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Niski",
+                            "medium": "Średni",
+                            "high": "Wysoki",
+                            "program_1": "Program 1",
+                            "program_2": "Program 2",
+                            "program_3": "Program 3",
+                            "standby": "Tryb gotowości"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/pt-BR.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Aquecedor"
+                "name": "Aquecedor",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Baixo",
+                            "medium": "Médio",
+                            "high": "Alto",
+                            "program_1": "Programa 1",
+                            "program_2": "Programa 2",
+                            "program_3": "Programa 3",
+                            "standby": "Em espera"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/pt-PT.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Aquecedor"
+                "name": "Aquecedor",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Baixo",
+                            "medium": "Médio",
+                            "high": "Alto",
+                            "program_1": "Programa 1",
+                            "program_2": "Programa 2",
+                            "program_3": "Programa 3",
+                            "standby": "Em espera"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/ro.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Încălzitor"
+                "name": "Încălzitor",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Scăzut",
+                            "medium": "Mediu",
+                            "high": "Ridicat",
+                            "program_1": "Program 1",
+                            "program_2": "Program 2",
+                            "program_3": "Program 3",
+                            "standby": "În așteptare"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/ru.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Обогреватель"
+                "name": "Обогреватель",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Низкий",
+                            "medium": "Средний",
+                            "high": "Высокий",
+                            "program_1": "Программа 1",
+                            "program_2": "Программа 2",
+                            "program_3": "Программа 3",
+                            "standby": "Режим ожидания"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/sv.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Värmare"
+                "name": "Värmare",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Låg",
+                            "medium": "Medel",
+                            "high": "Hög",
+                            "program_1": "Program 1",
+                            "program_2": "Program 2",
+                            "program_3": "Program 3",
+                            "standby": "Standby"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/uk.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "Обігрівач"
+                "name": "Обігрівач",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "Низький",
+                            "medium": "Середній",
+                            "high": "Високий",
+                            "program_1": "Програма 1",
+                            "program_2": "Програма 2",
+                            "program_3": "Програма 3",
+                            "standby": "Режим очікування"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/ur.json

@@ -268,7 +268,20 @@
                 }
             },
             "heater": {
-                "name": "ہیٹر"
+                "name": "ہیٹر",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "کم",
+                            "medium": "درمیانہ",
+                            "high": "زیادہ",
+                            "program_1": "پروگرام 1",
+                            "program_2": "پروگرام 2",
+                            "program_3": "پروگرام 3",
+                            "standby": "اسٹینڈ بائی"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/zh-Hans.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "加热器"
+                "name": "加热器",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "低",
+                            "medium": "中",
+                            "high": "高",
+                            "program_1": "程序1",
+                            "program_2": "程序2",
+                            "program_3": "程序3",
+                            "standby": "待机"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {

+ 14 - 1
custom_components/tuya_local/translations/zh-Hant.json

@@ -266,7 +266,20 @@
                 }
             },
             "heater": {
-                "name": "加热器"
+                "name": "加热器",
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "low": "低",
+                            "medium": "中",
+                            "high": "高",
+                            "program_1": "程式1",
+                            "program_2": "程式2",
+                            "program_3": "程式3",
+                            "standby": "待機"
+                        }
+                    }
+                }
             },
             "thermo_switch": {
                 "state_attributes": {