Browse Source

Add ProfiCook PC-WKS 1167 G kettle operation mode (#5661)

* Исправить управление чайником ProfiCook

* Refactor operation_mode mapping in kettle YAML

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Anzic23 20 hours ago
parent
commit
4616b51023
1 changed files with 13 additions and 0 deletions
  1. 13 0
      custom_components/tuya_local/devices/koenic_ktm_kettle.yaml

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

@@ -3,10 +3,23 @@ products:
   - id: d9wi3si7ytqma30a
     manufacturer: Koenic
     model: KTM 221723 M
+  - id: h6MjwrnldNTu4kX3
+    manufacturer: ProfiCook
+    model: PC-WKS 1167 G
 entities:
   - entity: water_heater
     translation_key: kettle
     dps:
+      - id: 101
+        type: string
+        name: operation_mode
+        mapping:
+          - dps_val: "4"
+            value: electric
+          - dps_val: "6"
+            value: "off"
+          - value: electric
+            hidden: true
       - id: 102
         type: integer
         name: temperature