Просмотр исходного кода

Update goldair_ggk1000_kettle

1. Change work mode from drop-down to a diagnostic sensor (since only one option)
2. Removed duplicate temperature and target temperature, as these are already exposed by water_heater entity
3. Added translation_key to countdown timer
ashabala 5 месяцев назад
Родитель
Сommit
b57f76f913
1 измененных файлов с 11 добавлено и 35 удалено
  1. 11 35
      custom_components/tuya_local/devices/goldair_ggk1000_kettle

+ 11 - 35
custom_components/tuya_local/devices/goldair_ggk1000_kettle

@@ -29,28 +29,6 @@ entities:
           min: 0
           max: 100
         unit: C
-  - entity: select
-    translation_key: kettle_mode
-    dps:
-      - id: 11
-        type: string
-        name: option
-        mapping:
-          - dps_val: boiling_quick
-            value: boil
-  - entity: number
-    name: Target temperature
-    category: config
-    class: temperature
-    icon: "mdi:coolant-temperature"
-    dps:
-      - id: 4
-        type: integer
-        name: value
-        unit: C
-        range:
-          min: 0
-          max: 100
   - entity: number
     name: Keep warm time
     category: config
@@ -71,6 +49,16 @@ entities:
       - id: 14
         type: boolean
         name: switch
+  - entity: sensor
+    name: Work mode
+    category: diagnostic
+    dps:
+      - id: 11
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: boiling_quick
+            value: boil
   - entity: sensor
     translation_key: status
     class: enum
@@ -88,18 +76,6 @@ entities:
             value: cooling
           - dps_val: warm
             value: keeping_warm
-  - entity: sensor
-    class: temperature
-    category: diagnostic
-    dps:
-      - id: 2
-        type: integer
-        name: sensor
-        unit: C
-        class: measurement
-        range:
-          min: 0
-          max: 100
   - entity: sensor
     translation_key: remaining_time
     class: duration
@@ -116,7 +92,7 @@ entities:
     name: Countdown timer
     category: config
     class: duration
-    icon: "mdi:timer"
+    translation_key: timer
     dps:
       - id: 15
         type: integer