Răsfoiți Sursa

airx H8: tweak translations and add other languages.

- replace machine_separation_status with the "opening" class.
- rename water_volume to water_level
- rename electrolysis_sterilization to electrolytic_sterilization
- rename middle water level to medium
- change water_level icons to gauge based

- add docs

PR #2710
Jason Rumney 1 an în urmă
părinte
comite
29def3abf9

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -804,3 +804,4 @@ Further device support has been made with the assistance of users. Please consid
 - [nicolas-sora](https://github.com/nicolas-sora) for assisting with support for Wasserstein AquaPal water monitor.
 - [theqz](https://github.com/theqz) for assisting with support for A03 siren.
 - [luisolavea](https://github.com/luisolavea) for assisting with support for Zemismart ZMAi-90 energy meter smart switch.
+- [City-Zero](https://github.com/City-Zero) for contributing support for airx H8 humidifier.

+ 1 - 0
DEVICES.md

@@ -378,6 +378,7 @@
 
 ### Humidifiers
 
+- airx H8 humidifier
 - BlitzWolf BW-SH2 humidifier
 - BlitzWolf BW-SH5 humidifier
 - Carro VES1011 humidifier

+ 6 - 6
custom_components/tuya_local/devices/airx_h8_humidifier.yaml

@@ -40,18 +40,18 @@ entities:
             value: sleep
   - entity: binary_sensor
     category: diagnostic
-    translation_key: machine_separation_status
+    class: opening
     dps:
       - id: 22
         type: string
         name: sensor
         mapping:
           - dps_val: 0
-            value: off
+            value: false
           - dps_val: 1
-            value: on
+            value: true
   - entity: switch
-    translation_key: electrolysis_sterilization
+    translation_key: electrolytic_sterilization
     category: config
     dps:
       - id: 21
@@ -86,7 +86,7 @@ entities:
         type: boolean
         name: switch
   - entity: sensor
-    translation_key: water_volume
+    translation_key: water_level
     class: enum
     category: diagnostic
     dps:
@@ -99,7 +99,7 @@ entities:
           - dps_val: Low_water
             value: low
           - dps_val: Middle_water
-            value: middle
+            value: medium
           - dps_val: High_water
             value: high
           - dps_val: Full_water

+ 6 - 15
custom_components/tuya_local/icons.json

@@ -24,13 +24,6 @@
                 "state": {
                     "off": "mdi:weather-night"
                 }
-            },
-            "machine_separation_status": {
-                "default": "mdi:check-circle",
-                "state": {
-                    "on": "mdi:alert-circle",
-                    "off": "mdi:check-circle"
-                }
             }
         },
         "button": {
@@ -188,14 +181,12 @@
             "cooking_status": {
                 "default": "mdi:information-variant-circle"
             },
-            "water_volume": {
-                "default": "mdi:water",
+            "water_level": {
+                "default": "mdi:gauge",
                 "state": {
-                    "empty": "mdi:water-off",
-                    "low": "mdi:water-minus",
-                    "middle": "mdi:water-opacity",
-                    "high": "mdi:water-plus",
-                    "full": "mdi:water"
+                    "empty": "mdi:gauge-empty",
+                    "low": "mdi:gauge-low",
+                    "full": "mdi:gauge-full"
                 }
             },
             "status": {
@@ -288,7 +279,7 @@
             "uv_sterilization": {
                 "default": "mdi:sun-wireless"
             },
-            "electrolysis_sterilization": {
+            "electrolytic_sterilization": {
                 "default": "mdi:flash"
             }
         }

+ 13 - 0
custom_components/tuya_local/translations/bg.json

@@ -619,6 +619,16 @@
                     "pause": "Пауза за готвене"
                 }
             },
+            "water_level": {
+                "name": "Ниво на водата",
+                "state": {
+                    "full": "Пълна",
+                    "high": "Висока",
+                    "medium": "Средна",
+                    "low": "Ниска",
+                    "empty": "Празна"
+                }
+            },
             "energy_produced": {
                 "name": "Произведена енергия"
             },
@@ -663,6 +673,9 @@
             "switch_x": {
                 "name": "Превключване {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Електролизна стерилизация"
+            },
             "uv_sterilization": {
                 "name": "UV стерилизация"
             }

+ 13 - 0
custom_components/tuya_local/translations/cz.json

@@ -618,6 +618,16 @@
                     "pause": "Vaření pozastaveno"
                 }
             },
+            "water_level": {
+                "name": "Úroveň vody",
+                "state": {
+                    "full": "Plný",
+                    "high": "Vysoký",
+                    "medium": "Střední",
+                    "low": "Nízký",
+                    "empty": "Prázdný"
+                }
+            },
             "energy_produced": {
                 "name": "Vyprodukována energie"
             },
@@ -662,6 +672,9 @@
             "switch_x": {
                 "name": "Přepínač {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Elektrolytická sterilizace"
+            },
             "uv_sterilization": {
                 "name": "UV sterilizace"
             }

+ 13 - 0
custom_components/tuya_local/translations/de.json

@@ -618,6 +618,16 @@
                     "pause": "Kochen pausiert"
                 }
             },
+            "water_level": {
+                "name": "Wasserstand",
+                "state": {
+                    "empty": "Leer",
+                    "low": "Niedrig",
+                    "medium": "Mittel",
+                    "high": "Hoch",
+                    "full": "Voll"
+                }
+            },
             "energy_produced": {
                 "name": "Produzierte Energie"
             },
@@ -662,6 +672,9 @@
             "switch_x": {
                 "name": "Schalter {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Elektrolytische Sterilisation"
+            },
             "uv_sterilization": {
                 "name": "UV Sterilization"
             }

+ 13 - 0
custom_components/tuya_local/translations/el.json

@@ -618,6 +618,16 @@
                     "pause": "Παύση μαγειρέματος"
                 }
             },
+            "water_level": {
+                "name": "Επίπεδο νερού",
+                "state": {
+                    "full": "Πλήρες",
+                    "high": "Υψηλό",
+                    "medium": "Μεσαίο",
+                    "low": "Χαμηλό",
+                    "empty": "Άδειο"
+                }
+            },
             "energy_produced": {
                 "name": "Ενέργεια που παράχθηκε"
             },
@@ -662,6 +672,9 @@
             "switch_x": {
                 "name": "Διακόπτης {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Ηλεκτρολυτική αποστείρωση"
+            },
             "uv_sterilization": {
                 "name": "Αποστείρωση UV"
             }

+ 5 - 12
custom_components/tuya_local/translations/en.json

@@ -143,13 +143,6 @@
                         }
                     }
                 }
-            },
-            "machine_separation_status": {
-                "name": "Machine Separation Status",
-                "state": {
-                  "off": "Normal",
-                  "on": "Separated"
-                }
             }
         },
         "button": {
@@ -625,12 +618,12 @@
                     "pause": "Cooking Paused"
                 }
             },
-            "water_volume": {
-                "name": "Water Volume",
+            "water_level": {
+                "name": "Water Level",
                 "state": {
                     "empty": "Empty",
                     "low": "Low",
-                    "middle": "Middle",
+                    "medium": "Medium",
                     "high": "High",
                     "full": "Full"
                 }
@@ -682,8 +675,8 @@
             "uv_sterilization": {
                 "name": "UV sterilization"
             },
-            "electrolysis_sterilization": {
-                "name": "Electrolysis sterilization"
+            "electrolytic_sterilization": {
+                "name": "Electrolytic sterilization"
             }
         }
     }

+ 13 - 0
custom_components/tuya_local/translations/es.json

@@ -618,6 +618,16 @@
                     "pause": "Pausa en la cocción"
                 }
             },
+            "water_level": {
+                "name": "Nivel de agua",
+                "state": {
+                    "full": "Lleno",
+                    "high": "Alto",
+                    "medium": "Medio",
+                    "low": "Bajo",
+                    "empty": "Vacío"
+                }
+            },
             "energy_produced": {
                 "name": "Energía producida"
             },
@@ -662,6 +672,9 @@
             "switch_x": {
                 "name": "Interruptor {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Esterilización electrolítica"
+            },
             "uv_sterilization": {
                 "name": "Esterilización UV"
             }

+ 13 - 0
custom_components/tuya_local/translations/fr.json

@@ -618,6 +618,16 @@
                     "pause": "Cuisson en pause"
                 }
             },
+            "water_level": {
+                "name": "Niveau d'eau",
+                "state": {
+                    "full": "Plein",
+                    "high": "Haut",
+                    "medium": "Milieu",
+                    "low": "Bas",
+                    "empty": "Vide"
+                }
+            },
             "energy_produced": {
                 "name": "Énergie produite"
             },
@@ -662,6 +672,9 @@
             "switch_x": {
                 "name": "Interrupteur {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Stérilisation électrolytique"
+            },
             "uv_sterilization": {
                 "name": "Stérilisation UV"
             }

+ 13 - 0
custom_components/tuya_local/translations/hu.json

@@ -619,6 +619,16 @@
                     "pause": "Főzés szüneteltetve"
                 }
             },
+            "water_level": {
+                "name": "Vízszint",
+                "state": {
+                    "full": "Teljes",
+                    "empty": "Üres",
+                    "medium": "Közepes",
+                    "low": "Alacsony",
+                    "high": "Magas"
+                }
+            },
             "energy_produced": {
                 "name": "Termelt energia"
             },
@@ -663,6 +673,9 @@
             "switch_x": {
                 "name": "Kapcsoló {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Elektrolitikus szterilizálás"
+            },
             "uv_sterilization": {
                 "name": "UV sterilizálás"
             }

+ 13 - 0
custom_components/tuya_local/translations/id.json

@@ -618,6 +618,16 @@
                     "pause": "Memasak dijeda"
                 }
             },
+            "water_level": {
+                "name": "Tingkat air",
+                "state": {
+                    "full": "Penuh",
+                    "high": "Tinggi",
+                    "medium": "Sedang",
+                    "low": "Rendah",
+                    "empty": "Kosong"
+                }
+            },
             "energy_produced": {
                 "name": "Energi yang dihasilkan"
             },
@@ -662,6 +672,9 @@
             "switch_x": {
                 "name": "Saklar {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Sterilisasi elektrolit"
+            },
             "uv_sterilization": {
                 "name": "Sterilisasi UV"
             }

+ 13 - 0
custom_components/tuya_local/translations/it.json

@@ -619,6 +619,16 @@
                     "pause": "Cottura in pausa"
                 }
             },
+            "water_level": {
+                "name": "Livello dell'acqua",
+                "state": {
+                    "full": "Pieno",
+                    "high": "Alto",
+                    "medium": "Medio",
+                    "low": "Basso",
+                    "empty": "Vuoto"
+                }
+            },
             "energy_produced": {
                 "name": "Energia prodotta"
             },
@@ -663,6 +673,9 @@
             "switch_x": {
                 "name": "Interruttore {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Sterilizzazione elettrolitica"
+            },
             "uv_sterilization": {
                 "name": "Sterilizzazione UV"
             }

+ 13 - 0
custom_components/tuya_local/translations/ja.json

@@ -618,6 +618,16 @@
                     "pause": "調理一時停止"
                 }
             },
+            "water_level": {
+                "name": "水位",
+                "state": {
+                    "emtpy": "空",
+                    "medium": "中",
+                    "low": "低い",
+                    "high": "高い",
+                    "full": "満杯"
+                }
+            },
             "energy_produced": {
                 "name": "発電量"
             },
@@ -662,6 +672,9 @@
             "switch_x": {
                 "name": "スイッチ{x}"
             },
+            "electrolytic_sterilization": {
+                "name": "電解殺菌"
+            },
             "uv_sterilization": {
                 "name": "紫外線殺菌"
             }

+ 13 - 0
custom_components/tuya_local/translations/no-NB.json

@@ -619,6 +619,16 @@
                     "pause": "Matlaging pause"
                 }
             },
+            "water_level": {
+                "name": "Vannivå",
+                "state": {
+                    "full": "Full",
+                    "high": "Høy",
+                    "medium": "Medium",
+                    "low": "Lav",
+                    "empty": "Tom"
+                }
+            },
             "energy_produced": {
                 "name": "Energi produsert"
             },
@@ -663,6 +673,9 @@
             "switch_x": {
                 "name": "Bryter {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Elektrolytisk sterilisering"
+            },
             "uv_sterilization": {
                 "name": "UV-sterilisering"
             }

+ 13 - 0
custom_components/tuya_local/translations/pl.json

@@ -619,6 +619,16 @@
                     "pause": "Gotowanie wstrzymane"
                 }
             },
+            "water_level": {
+                "name": "Poziom wody",
+                "state": {
+                    "full": "Pełny",
+                    "high": "Wysoki",
+                    "medium": "Średni",
+                    "low": "Niski",
+                    "empty": "Pusty"
+                }
+            },
             "energy_produced": {
                 "name": "Energia wyprodukowana"
             },
@@ -663,6 +673,9 @@
             "switch_x": {
                 "name": "Przełącznik {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Elektrolityczna sterylizacja"
+            },
             "uv_sterilization": {
                 "name": "Sterylizacja UV"
             }

+ 13 - 0
custom_components/tuya_local/translations/pt-BR.json

@@ -618,6 +618,16 @@
                     "pause": "Pausa no cozimento"
                 }
             },
+            "water_level": {
+                "name": "Nível de água",
+                "state": {
+                    "full": "Cheio",
+                    "high": "Alto",
+                    "medium": "Médio",
+                    "low": "Baixo",
+                    "empty": "Vazio"
+                }
+            },
             "energy_produced": {
                 "name": "Energia produzida"
             },
@@ -662,6 +672,9 @@
             "switch_x": {
                 "name": "Interruptor {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Esterilização eletrolítica"
+            },
             "uv_sterilization": {
                 "name": "Esterilização UV"
             }

+ 13 - 0
custom_components/tuya_local/translations/ru.json

@@ -618,6 +618,16 @@
                     "pause": "Приготовление приостановлено"
                 }
             },
+            "water_level": {
+                "name": "Уровень воды",
+                "state": {
+                    "full": "Полный",
+                    "high": "Высокий",
+                    "medium": "Средний",
+                    "low": "Низкий",
+                    "empty": "Пустой"
+                }
+            },
             "energy_produced": {
                 "name": "Производимая энергия"
             },
@@ -662,6 +672,9 @@
             "switch_x": {
                 "name": "Выключатель {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Электролитическая стерилизация"
+            },
             "uv_sterilization": {
                 "name": "УФ-стерилизация"
             }

+ 13 - 0
custom_components/tuya_local/translations/uk.json

@@ -621,6 +621,16 @@
                     "pause": "Приготування призупинено"
                 }
             },
+            "water_level": {
+                "name": "Рівень води",
+                "state": {
+                    "full": "Повний",
+                    "high": "Високий",
+                    "medium": "Середній",
+                    "low": "Низький",
+                    "empty": "Порожній"
+                }
+            },
             "energy_produced": {
                 "name": "Вироблена енергія"
             },
@@ -665,6 +675,9 @@
             "switch_x": {
                 "name": "Вимикач {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "Електролітична стерилізація"
+            },
             "uv_sterilization": {
                 "name": "УФ стерилізація"
             }

+ 13 - 0
custom_components/tuya_local/translations/ur.json

@@ -621,6 +621,16 @@
                     "pause": "پکانا معطل ہوگیا"
                 }
             },
+            "water_level": {
+                "name": "پانی کی سطح",
+                "state": {
+                    "full": "مکمل",
+                    "high": "زیادہ",
+                    "medium": "درمیانہ",
+                    "low": "کم",
+                    "empty": "خالی"
+                }
+            },
             "energy_produced": {
                 "name": "پیدا کردہ بجلی"
             },
@@ -665,6 +675,9 @@
             "switch_x": {
                 "name": "سوئچ {x}"
             },
+            "electrolytic_sterilization": {
+                "name": "الیکٹرولائٹک نس بندی"
+            },
             "uv_sterilization": {
                 "name": "UV نس بندی"
             }

+ 3 - 10
custom_components/tuya_local/translations/zh-Hans.json

@@ -143,13 +143,6 @@
                         }
                     }
                 }
-            },
-            "machine_separation_status": {
-                "name": "机器分离状态",
-                "state": {
-                    "off": "正常",
-                    "on": "已分离"
-                }
             }
         },
         "button": {
@@ -625,12 +618,12 @@
                     "pause": "烹饪暂停"
                 }
             },
-            "water_volume": {
+            "water_level": {
                 "name": "水量",
                 "state": {
                     "empty": "空",
                     "low": "低",
-                    "middle": "中",
+                    "medium": "中",
                     "high": "高",
                     "full": "满"
                 }
@@ -682,7 +675,7 @@
             "uv_sterilization": {
                 "name": "紫外线消毒"
             },
-            "electrolysis_sterilization": {
+            "electrolytic_sterilization": {
                 "name": "电解消毒"
             }
         }

+ 3 - 10
custom_components/tuya_local/translations/zh-Hant.json

@@ -143,13 +143,6 @@
                         }
                     }
                 }
-            },
-            "machine_separation_status": {
-                "name": "機器分離狀態",
-                "state": {
-                    "off": "正常",
-                    "on": "已分離"
-                }
             }
         },
         "button": {
@@ -626,12 +619,12 @@
                     "pause": "烹飪暫停"
                 }
             },
-            "water_volume": {
+            "water_level": {
                 "name": "水量",
                 "state": {
                     "empty": "空",
                     "low": "低",
-                    "middle": "中",
+                    "medium": "中",
                     "high": "高",
                     "full": "滿"
                 }
@@ -683,7 +676,7 @@
             "uv_sterilization": {
                 "name": "紫外線消毒"
             },
-            "electrolysis_sterilization": {
+            "electrolytic_sterilization": {
                 "name": "電解消毒"
             }
         }