Ver Fonte

feat (devices): add support for Svensson Smart06C kettle

Issue #3750
Jason Rumney há 4 meses atrás
pai
commit
4f8d8248c6

+ 2 - 2
ACKNOWLEDGEMENTS.md

@@ -508,8 +508,8 @@ Further device support has been made with the assistance of users. Please consid
 - [dakker78](https://github.com/dakker78) for contributing support for Herschel IR heaters.
 - [liamlain](https://github.com/liamlain) for assisting with support for SmartCurtain curtains.
 - [legantois](https://github.com/legantois) for assisting with support for EPT tank level sensors.
-- [osaczony](https://github.com/oscazony) for assisting with support for Tongou QCB2 single phase breakers.
-- [realdimik](https://github.com/realdimik) for assisting with support for Tongou ST463JWT three phase breakers and contributing support for SNT957W-DE temperature and humidity sensors.
+- [osaczony](https://github.com/oscazony) for assisting with support for Tongou QCB2 single phase breaker and Svensson Smart06C kettle.
+- [realdimik](https://github.com/realdimik) for assisting with support for Tongou ST463JWT three phase breaker and contributing support for SNT957W-DE temperature and humidity sensors.
 - [jameskoziol](https://github.com/jameskoziol) for contributing support for second variant of Madimack Elite V3 and Madimack Inverflow Pro pump.
 - [halmaizsolt92](https://github.com/halmaizsolt92) for assisting with support for SNT857W-TDE temperature sensors.
 - [nk00li](https://github.com/nk00li) for assisting with support for BHT-002 GBLW thermometers that differ slightly from GALW in how they report the heating state.

+ 1 - 0
DEVICES.md

@@ -484,6 +484,7 @@
 - Silvercrest 1.7L smart kettle
 - Silvercrest coffee maker
 - Silvercrest HF-6602T air fryer
+- Svensson Smart06C kettle
 - Ultenic K10 air fryer
 - Wandai GS-801 infant formula maker (sold as Easybaby, Gustino)
 - Weeket KE4071TF, KES5211TE-CE smart kettles

+ 134 - 0
custom_components/tuya_local/devices/svensson_smart06c_kettle.yaml

@@ -0,0 +1,134 @@
+name: Kettle
+products:
+  - id: c0abgyio6epc07b2
+    manufacturer: Svensson
+    model: Smart06C
+entities:
+  - entity: water_heater
+    translation_key: kettle
+    dps:
+      - id: 1
+        type: boolean
+        name: operation_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            value: electric
+      - id: 2
+        type: integer
+        name: current_temperature
+      - id: 4
+        type: integer
+        name: temperature
+        unit: C
+        range:
+          min: 0
+          max: 100
+  - entity: number
+    name: Keep warm time
+    class: duration
+    category: config
+    dps:
+      - id: 7
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 720
+  - entity: sensor
+    class: enum
+    translation_key: status
+    category: diagnostic
+    dps:
+      - id: 8
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: standby
+            value: standby
+          - dps_val: heating
+            value: heating
+          - dps_val: cooling
+            value: cooling
+          - dps_val: warm
+            value: keeping_warm
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 10
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 10
+        type: bitfield
+        name: fault_code
+      - id: 10
+        type: bitfield
+        name: description
+        mapping:
+          - dps_val: 0
+            value: ok
+          - dps_val: 1
+            value: boiled_dry
+          - dps_val: 2
+            value: low_water
+          - dps_val: 4
+            value: sensor_fault
+  - entity: select
+    translation_key: kettle_mode
+    category: config
+    dps:
+      - id: 11
+        type: string
+        name: option
+        mapping:
+          - dps_val: diy
+            value: custom
+          - dps_val: boiled_water
+            value: boil
+          - dps_val: dechlorination
+            value: dechlorinate
+          - dps_val: black_tea
+            value: black_tea
+          - 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
+  - entity: switch
+    name: Keep warm
+    category: config
+    dps:
+      - id: 14
+        type: boolean
+        name: switch
+  - entity: number
+    name: Keep warm temperature
+    category: config
+    class: temperature
+    dps:
+      - id: 15
+        type: integer
+        name: value
+        unit: C
+        range:
+          min: 0
+          max: 100
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 17
+        type: integer
+        name: sensor
+        unit: min