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

feat (devices): add Koenic KTM 221723 M kettle

Issue #4422
Jason Rumney 15 часов назад
Родитель
Сommit
c71c200160
3 измененных файлов с 109 добавлено и 1 удалено
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 107 0
      custom_components/tuya_local/devices/koenic_ktm_kettle.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -1294,4 +1294,4 @@ Further device support has been made with the assistance of users. Please consid
 - [sydneysider123](https://github.com/sydneysider123) for assisting with support for Ausclimate EcoSmart pedestal fan.
 - [ClarkAlmazan](https://github.com/ClarkAlmazan) for assisting with support for Suntree SPG3 EV charger.
 - [wan0net](https://github.com/wan0net) for contributing support for Kogan  Vostok portable air conditioner.
-
+- [penguin00xx](https://github.com/penguin00xx) for assisting with support for Koenic KTM-221723-M kettle.

+ 1 - 0
DEVICES.md

@@ -567,6 +567,7 @@ devices # Supported
 - Inkbird sous vide cooker (also supports Silvercrest sous vide sticks)
 - Klarstein Amazonia dishwasher
 - Klarstein Ava range hood
+- Koenic KTM-221723-M kettle
 - Kogan glass 1.7L smart kettle (at least 2 different variants)
 - Korex AX-WF306N smart kettle
 - Leoffen LFIM6000 ice cube maker

+ 107 - 0
custom_components/tuya_local/devices/koenic_ktm_kettle.yaml

@@ -0,0 +1,107 @@
+name: Kettle
+products:
+  - id: d9wi3si7ytqma30a
+    manufacturer: Koenic
+    model: KTM 221723 M
+entities:
+  - entity: water_heater
+    translation_key: kettle
+    dps:
+      - id: 102
+        type: integer
+        name: temperature
+        unit: C
+        range:
+          min: 30
+          max: 95
+      - id: 105
+        type: integer
+        name: current_temperature
+  - entity: select
+    translation_key: kettle_mode
+    dps:
+      - id: 101
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: infant_formula
+          - dps_val: "1"
+            value: honey_water
+          - dps_val: "2"
+            value: green_tea
+          - dps_val: "3"
+            value: dechlorinate
+          - dps_val: "4"
+            value: boil
+          - dps_val: "5"
+            value: keep_warm
+          - dps_val: "6"
+            value: "off"
+  - entity: sensor
+    translation_key: status
+    class: enum
+    dps:
+      - id: 106
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: "0"
+            value: fault_unplugged
+          - dps_val: "1"
+            value: missing
+          - dps_val: "2"
+            value: idle
+          - dps_val: "3"
+            value: heating
+          - dps_val: "4"
+            value: cooling
+          - dps_val: "5"
+            value: keeping_warm
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 104
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 104
+        type: bitfield
+        name: fault_code
+      - id: 104
+        type: bitfield
+        name: description
+        mapping:
+          - dps_val: 0
+            value: ok
+          - dps_val: 1
+            value: boiled_dry
+          - dps_val: 2
+            value: fault
+          - dps_val: 4
+            value: water_low
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 107
+        type: integer
+        name: sensor
+        unit: min
+  - entity: number
+    tramslation_key: timer
+    class: duration
+    category: config
+    dps:
+      - id: 108
+        type: integer
+        name: sensor
+        unit: min
+        ramge:
+          min: 0
+          max: 240