Răsfoiți Sursa

feat (setti_czajnik_kettle): add optional time remaining entity

This additional entity is the only difference between Kogan 1.7L stainless steel kettle
and the devices already supported by this config.

PR #4751 by @jenko1080
Jason Rumney 1 zi în urmă
părinte
comite
fde0d140b1
1 a modificat fișierele cu 22 adăugiri și 0 ștergeri
  1. 22 0
      custom_components/tuya_local/devices/setti_czajnik_kettle.yaml

+ 22 - 0
custom_components/tuya_local/devices/setti_czajnik_kettle.yaml

@@ -4,6 +4,9 @@ products:
     manufacturer: Setti+
     manufacturer: Setti+
     model: KT950W
     model: KT950W
     name: Czajnik
     name: Czajnik
+  # - id: UNKNOWN
+  #   manufacturer: Kogan
+  #   model: KASMTSSKTLB
 entities:
 entities:
   - entity: water_heater
   - entity: water_heater
     translation_key: kettle
     translation_key: kettle
@@ -272,3 +275,22 @@ entities:
       - id: 19
       - id: 19
         type: bitfield
         type: bitfield
         name: fault_code
         name: fault_code
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    hidden: unavailable
+    dps:
+      - id: 18
+        type: integer
+        optional: true
+        name: sensor
+        unit: min
+      - id: 18
+        type: integer
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true