Sfoglia il codice sorgente

Create kogan_KASMCDSKTLA_kettle.yaml (#4193)

* Create kogan_KASMCDSKTLA_kettle.yaml

Initial commit

* Update kogan_KASMCDSKTLA_kettle.yaml

Fixed product ID as there are two extremely similar named but different devices

* Update kogan_KASMCDSKTLA_kettle.yaml

* Update kogan_KASMCDSKTLA_kettle.yaml

* Update kogan_KASMCDSKTLA_kettle.yaml

Updated to fix incorrect translation key issues

* Update kogan_KASMCDSKTLA_kettle.yaml

Feedback from dev - added quotes on power and renamed device to remove capacity as its not required. Looking at doco changed the "on" value to "electric" as that fits better with the water_heater entity from what I can gather from the docs

* fix (kogan_kasmcdsktla_kettle): refactor and rename

- avoid upper case in filename
- make name truly generic
- remove non-standard attributes from kettle
- remove duplicate entity that is covered by water_heater
- use ASCII replacements for units to avoid Unicode issues

PR #4193

* Fix indentation in kettle YAML configuration

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
baronorder 2 mesi fa
parent
commit
2f3744a627

+ 63 - 0
custom_components/tuya_local/devices/kogan_kasmcdsktla_kettle.yaml

@@ -0,0 +1,63 @@
+name: Kettle
+products:
+  - id: 7occ66lr74vfznwt
+    manufacturer: Kogan
+    model: Double wall 1.7L glass kettle
+    model_id: KASMCDSKTLA
+entities:
+  - entity: water_heater
+    translation_key: kettle
+    dps:
+      - id: 1
+        name: operation_mode
+        type: boolean
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            value: electric
+      - id: 2
+        name: current_temperature
+        type: integer
+      - id: 4
+        name: target_temperature
+        type: integer
+        unit: C
+        range:
+          min: 40
+          max: 100
+
+  - entity: sensor
+    translation_key: status
+    class: enum
+    dps:
+      - id: 8
+        name: sensor
+        type: string
+        mapping:
+          - dps_val: standby
+            value: standby
+          - dps_val: heating
+            value: heating
+          - dps_val: cooling
+            value: cooling
+
+  - entity: select
+    translation_key: kettle_mode
+    dps:
+      - id: 11
+        name: option
+        type: string
+        mapping:
+          - dps_val: boiled_water
+            value: water
+          - dps_val: diy
+            value: custom
+          - dps_val: coffee
+            value: coffee
+          - dps_val: green_tea
+            value: green_tea
+          - dps_val: honey_water
+            value: honey_water
+          - dps_val: milk_powder
+            value: infant_formula