Bläddra i källkod

Add support for Anko kettles

Issue #468
Jason Rumney 3 år sedan
förälder
incheckning
03dd62d396

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -200,3 +200,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [hebenon](https://github.com/hebenon) for contributing support for Breville Smart Air Connect purifiers.
 - [pvillanyi](https://github.com/pvillanyi) for contributing support for smartplugs with USB (Gosund SP112).
 - [jaichinger](https://github.com/jaichinger) for contributing support for Breville Smart Air Viral Protect Plus purifier.
+- [kytro](https://github.com/kytro) for assistaing with support for Anko smart kettles.

+ 1 - 0
DEVICES.md

@@ -164,6 +164,7 @@
 
 ### Kitchen Appliances
 
+- Anko 1.7L smart kettle
 - Czajnik Setti+ KT950W smart kettle
 - Inkbird sous vide cooker
 - Kogan glass 1.7L smart kettle

+ 73 - 0
custom_components/tuya_local/devices/anko_kettle.yaml

@@ -0,0 +1,73 @@
+name: Anko kettle
+products:
+  - id: dft4ebatvon3ha5s
+    name: Anko LD-K3068
+primary_entity:
+  entity: water_heater
+  icon: "mdi:kettle"
+  dps:
+    - id: 1
+      type: boolean
+      name: operation_mode
+      mapping:
+        - dps_val: false
+          value: "Off"
+        - dps_val: true
+          constraint: work_type
+          conditions:
+            - dps_val: boiling_quick
+              value: Quick boil
+            - dps_val: setting_quick
+              value: Quick heat
+            - dps_val: temp_boiling
+              value: Boil
+            - dps_val: temp_setting
+              value: Heat
+    - id: 2
+      type: integer
+      name: current_temperature
+      unit: C
+    - id: 4
+      type: integer
+      name: temperature
+      range:
+        min: 85
+        max: 90
+      mapping:
+        - step: 5
+    - id: 16
+      type: string
+      name: work_type
+      hidden: true
+secondary_entities:
+  - entity: switch
+    name: Keep warm
+    icon: "mdi:kettle-outline"
+    dps:
+      - id: 13
+        type: boolean
+        name: switch
+  - entity: sensor
+    name: Status
+    class: enum
+    category: diagnostic
+    dps:
+      - id: 15
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: standby
+            value: Standby
+            icon: "mdi:kettle-off-outline"
+          - dps_val: heating
+            value: Heating
+            icon: "mdi:kettle"
+          - dps_val: cooling
+            value: Cooling
+            icon: "mdi:kettle-outline"
+          - dps_val: warm
+            value: Warm
+            icon: "mdi:kettle"
+          - dps_val: heating_temp
+            value: "No water"
+            icon: "mdi:kettle-alert"

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

@@ -252,8 +252,8 @@ secondary_entities:
             icon: "mdi:kettle"
             value: Warm
           - dps_val: heating_temp
-            icon: "mdi:kettle-steam-outline"
-            value: Reached Temperature
+            icon: "mdi:kettle-alert"
+            value: "No water"
           - dps_val: boiling_temp
             icon: "mdi:kettle-steam"
             value: Boiling