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

Add support for Aeno EK7S kettle

Issue #3159

- add translations for kettle operation modes
Jason Rumney 8 месяцев назад
Родитель
Сommit
1f40f2738a
27 измененных файлов с 335 добавлено и 23 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 6 6
      custom_components/tuya_local/devices/anko_kettle.yaml
  4. 6 6
      custom_components/tuya_local/devices/setti_czajnik_kettle.yaml
  5. 6 6
      custom_components/tuya_local/devices/silvercrest_kettle.yaml
  6. 5 5
      custom_components/tuya_local/devices/weeket_kettle.yaml
  7. 10 0
      custom_components/tuya_local/icons.json
  8. 15 0
      custom_components/tuya_local/translations/bg.json
  9. 15 0
      custom_components/tuya_local/translations/ca.json
  10. 15 0
      custom_components/tuya_local/translations/cz.json
  11. 15 0
      custom_components/tuya_local/translations/de.json
  12. 15 0
      custom_components/tuya_local/translations/el.json
  13. 15 0
      custom_components/tuya_local/translations/en.json
  14. 15 0
      custom_components/tuya_local/translations/es.json
  15. 15 0
      custom_components/tuya_local/translations/fr.json
  16. 15 0
      custom_components/tuya_local/translations/hu.json
  17. 15 0
      custom_components/tuya_local/translations/id.json
  18. 15 0
      custom_components/tuya_local/translations/it.json
  19. 15 0
      custom_components/tuya_local/translations/ja.json
  20. 15 0
      custom_components/tuya_local/translations/no-NB.json
  21. 15 0
      custom_components/tuya_local/translations/pl.json
  22. 15 0
      custom_components/tuya_local/translations/pt-BR.json
  23. 15 0
      custom_components/tuya_local/translations/ru.json
  24. 15 0
      custom_components/tuya_local/translations/uk.json
  25. 15 0
      custom_components/tuya_local/translations/ur.json
  26. 15 0
      custom_components/tuya_local/translations/zh-Hans.json
  27. 15 0
      custom_components/tuya_local/translations/zh-Hant.json

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -931,3 +931,4 @@ Further device support has been made with the assistance of users. Please consid
 - [diegoschefer](https://github.com/diegoschefer) for assisting with support for Zemismart ZM85EL-1x roller blind motor.
 - [sangphan12](https://github.com/sangphan12) for assisting with support for Neo Siren Alarm 2.
 - [orzeu](https://github.com/orzeu) for assisting with support for Parkside PPWD 30 A1 workshop vacuum.
+- [RudikHotValliant](https://github.com/RudikHotValliant) for assisting with support for Aeno EK7S kettle.

+ 1 - 0
DEVICES.md

@@ -404,6 +404,7 @@
 
 ### Kitchen Appliances
 
+- Aeno EK7S kettle
 - Anko 1.7L smart kettle
 - Ciarra CBCS4850 range hood
 - Casdon TD Pro 2 oven

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

@@ -5,25 +5,25 @@ products:
     model: LD-K3068
 entities:
   - entity: water_heater
-    icon: "mdi:kettle"
+    translation_key: kettle
     dps:
       - id: 1
         type: boolean
         name: operation_mode
         mapping:
           - dps_val: false
-            value: "Off"
+            value: "off"
           - dps_val: true
             constraint: work_type
             conditions:
               - dps_val: boiling_quick
-                value: Quick boil
+                value: quick_boil
               - dps_val: setting_quick
-                value: Quick heat
+                value: quick_heat
               - dps_val: temp_boiling
-                value: Boil
+                value: boil
               - dps_val: temp_setting
-                value: Heat
+                value: heat
       - id: 2
         type: integer
         name: current_temperature

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

@@ -6,25 +6,25 @@ products:
     name: Czajnik
 entities:
   - entity: water_heater
-    icon: "mdi:kettle"
+    translation_key: kettle
     dps:
       - id: 1
         type: boolean
         name: operation_mode
         mapping:
           - dps_val: false
-            value: "Off"
+            value: "off"
           - dps_val: true
             constraint: work_type
             conditions:
               - dps_val: setting_quick
-                value: Quick Set
+                value: quick_heat
               - dps_val: boiling_quick
-                value: Quick Boil
+                value: quick_boil
               - dps_val: temp_setting
-                value: Set
+                value: heat
               - dps_val: temp_boiling
-                value: Boil
+                value: boil
       - id: 2
         type: integer
         name: current_temperature

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

@@ -5,23 +5,23 @@ products:
     model: WK0828RT
 entities:
   - entity: water_heater
-    icon: "mdi:kettle"
+    translation_key: kettle
     dps:
       - id: 1
         type: boolean
         name: operation_mode
         mapping:
           - dps_val: false
-            value: "Off"
+            value: "off"
           - dps_val: true
             constraint: warm
             conditions:
               - dps_val: false
-                value: Keep warm
+                value: keep_warm
               - dps_val: true
-                value: Boil
+                value: boil
               - dps_val: null
-                value: Boil
+                value: boil
                 hidden: true
       - id: 2
         type: integer
@@ -61,7 +61,7 @@ entities:
     name: Warm time
     category: config
     class: duration
-    icon: "mdi:timer"
+    translation_key: timer
     dps:
       - id: 14
         type: integer

+ 5 - 5
custom_components/tuya_local/devices/weeket_kettle.yaml

@@ -5,7 +5,7 @@ products:
     model: KE4071TF
 entities:
   - entity: water_heater
-    icon: "mdi:kettle"
+    translation_key: kettle
     dps:
       - id: 2
         type: integer
@@ -54,13 +54,13 @@ entities:
         name: operation_mode
         mapping:
           - dps_val: setting_quick
-            value: Quick heat
+            value: quick_heat
           - dps_val: boiling_quick
-            value: Quick boil
+            value: quick_boil
           - dps_val: temp_setting
-            value: Heat
+            value: heat
           - dps_val: temp_boiling
-            value: Boil
+            value: boil
   - entity: switch
     dps:
       - id: 1

+ 10 - 0
custom_components/tuya_local/icons.json

@@ -332,6 +332,16 @@
             "scene": {
                 "default": "mdi:palette"
             }
+        },
+        "water_heater": {
+            "kettle": {
+                "default": "mdi:kettle",
+                "state": {
+                    "off": "mdi:kettle-off",
+                    "boil": "mdi:kettle-steam",
+                    "quick_boil": "mdi:kettle-steam"
+                }
+            }
         }
     }
 }

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

@@ -783,6 +783,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Кана",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Изключено",
+                            "heat": "Нагряване",
+                            "boil": "Кипене",
+                            "quick_heat": "Бързо загряване",
+                            "quick_boil": "Бързо кипене",
+                            "keep_warm": "Поддържайте топло"
+                        }
+                    }
+                }
             }
         }
     }

+ 15 - 0
custom_components/tuya_local/translations/ca.json

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Bullidor d'aigua",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Apagat",
+                            "heat": "Escalfament",
+                            "boil": "Ebullició",
+                            "quick_heat": "Calor ràpida",
+                            "quick_boil": "Ebullició ràpida",
+                            "keep_warm": "Conserva l'escalfor"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Konvice",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Vypnuto",
+                            "heat": "Ohřátí",
+                            "boil": "Vaření",
+                            "quick_heat": "Rychlé ohřátí",
+                            "quick_boil": "Rychlé vaření",
+                            "keep_warm": "Udržování tepla"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Wasserkocher",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Aus",
+                            "heat": "Heizen",
+                            "boil": "Kochen",
+                            "quick_heat": "Schnellheizen",
+                            "quick_boil": "Schnellkochen",
+                            "keep_warm": "Warmhalten"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Βραστήρας",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Απενεργοποίηση",
+                            "heat": "Θέρμανση",
+                            "boil": "Βράσιμο",
+                            "quick_heat": "Γρήγορη θέρμανση",
+                            "quick_boil": "Γρήγορο βράσιμο",
+                            "keep_warm": "Διατήρηση θερμοκρασίας"
+                        }
+                    }
+                }
             }
         }
     }

+ 15 - 0
custom_components/tuya_local/translations/en.json

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Kettle",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Off",
+                            "heat": "Heat",
+                            "boil": "Boil",
+                            "quick_heat": "Quick heat",
+                            "quick_boil": "Quick boil",
+                            "keep_warm": "Keep warm"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Hervidor",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Apagar",
+                            "heat": "Calor",
+                            "boil": "Hervir",
+                            "quick_heat": "Calor rápido",
+                            "quick_boil": "Hervir rápido",
+                            "keep_warm": "Mantener caliente"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Bouilloire",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Éteint",
+                            "heat": "Chauffage",
+                            "boil": "Ébullition",
+                            "quick_heat": "Chauffage rapide",
+                            "quick_boil": "Ébullition rapide",
+                            "keep_warm": "Garder au chaud"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -783,6 +783,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Vízforraló",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Ki",
+                            "heat": "Fűtés",
+                            "boil": "Forralás",
+                            "quick_heat": "Gyors fűtés",
+                            "quick_boil": "Gyors forralás",
+                            "keep_warm": "Melegen tartás"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Ketel",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Mati",
+                            "heat": "Pemanas",
+                            "boil": "Mendidih",
+                            "quick_heat": "Pemanasan cepat",
+                            "quicl_boil": "Mendidih cepat",
+                            "keep_warm": "Tetap hangat"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -783,6 +783,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Bollitore",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Spento",
+                            "heat": "Riscaldamento",
+                            "boil": "Bollire",
+                            "quick_heat": "Riscaldamento rapido",
+                            "quick_boil": "Bollitura rapida",
+                            "keep_warm": "Mantenere caldo"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "ケトル",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "オフ",
+                            "heat": "加熱",
+                            "boil": "沸騰",
+                            "quick_heat": "急速加熱",
+                            "quick_boil": "急速沸騰",
+                            "keep_warm": "保温"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -783,6 +783,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Vannkoker",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Av",
+                            "heat": "Varm",
+                            "boil": "Kok",
+                            "quick_heat": "Kjapp varming",
+                            "quick_boil": "Kjapp koking",
+                            "keep_warm": "Hold varm"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -783,6 +783,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Czajnik",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Wyłączony",
+                            "heat": "Ogrzewanie",
+                            "boil": "Gotowanie",
+                            "quick_heat": "Szybkie ogrzewanie",
+                            "quick_boil": "Szybkie gotowanie",
+                            "keep_warm": "Podgrzewanie"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Chaleira",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Desligado",
+                            "heat": "Aquecimento",
+                            "boil": "Fervura",
+                            "quick_heat": "Aquecimento rápido",
+                            "quick_boil": "Fervura rápida",
+                            "keep_warm": "Manter quente"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Чайник",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Выкл",
+                            "heat": "Нагрев",
+                            "boil": "Кипячение",
+                            "quick_heat": "Быстрый нагрев",
+                            "quick_boil": "Быстрое кипячение",
+                            "keep_warm": "Поддержание тепла"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -785,6 +785,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "Чайник",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "Вимк",
+                            "heat": "Нагрівання",
+                            "boil": "Кип'ятіння",
+                            "quick_heat": "Швидке нагрівання",
+                            "quick_boil": "Швидке кип'ятіння",
+                            "keep_warm": "Підтримувати тепло"
+                        }
+                    }
+                }
             }
         }
     }

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

@@ -785,6 +785,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "کیٹل",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "آف",
+                            "heat": "گرم",
+                            "boil": "ابالنا",
+                            "quick_heat": "فوری گرم",
+                            "quick_boil": "فوری ابالنا",
+                            "keep_warm": "گرم رکھنا"
+                        }
+                    }
+                }
             }
         }
     }

+ 15 - 0
custom_components/tuya_local/translations/zh-Hans.json

@@ -782,6 +782,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "电热水壶",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "关闭",
+                            "heat": "加热",
+                            "boil": "煮沸",
+                            "quick_heat": "快速加热",
+                            "quick_boil": "快速煮沸",
+                            "keep_warm": "保温"
+                        }
+                    }
+                }
             }
         }
     }

+ 15 - 0
custom_components/tuya_local/translations/zh-Hant.json

@@ -783,6 +783,21 @@
                         }
                     }
                 }
+            },
+            "kettle": {
+                "name": "水壺",
+                "state_attributes": {
+                    "operation_mode": {
+                        "state": {
+                            "off": "關",
+                            "heat": "加熱",
+                            "boil": "煮沸",
+                            "quick_heat": "快速加熱",
+                            "quick_boil": "快速煮沸",
+                            "keep_warm": "保溫"
+                        }
+                    }
+                }
             }
         }
     }