فهرست منبع

Catit pixi: add missing sensor and button for pump maintenance

Remove duration class, as it results in display being in hours, even though we
are forcing minutes into days for more relatable units.
Jason Rumney 3 سال پیش
والد
کامیت
2bf8c13467
1فایلهای تغییر یافته به همراه22 افزوده شده و 11 حذف شده
  1. 22 11
      custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml

+ 22 - 11
custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml

@@ -11,15 +11,14 @@ primary_entity:
 secondary_entities:
   - entity: button
     name: Filter replaced
-    class: restart
+    icon: "mdi:air-filter"
     category: config
     dps:
       - id: 7
         type: boolean
         name: button
-
   - entity: switch
-    deprecated: button
+    deprecated: button.filter_replaced
     name: Filter replaced
     icon: "mdi:air-filter"
     category: config
@@ -27,25 +26,38 @@ secondary_entities:
       - id: 7
         type: boolean
         name: switch
-
+  - entity: button
+    name: Pump cleaned
+    icon: "mdi:pump"
+    category: config
+    dps:
+      - id: 8
+        type: boolean
+        name: button
   - entity: sensor
     name: Filter life
     icon: "mdi:air-filter"
     category: diagnostic
-    class: duration
     dps:
       - id: 4
         type: integer
         name: sensor
-        range:
-          min: 0
-          max: 43200
         mapping:
           - scale: 1440 # minutes => days
-            step: 1
             invert: true
         unit: d
-
+  - entity: sensor
+    name: Pump maintenance
+    icon: "mdi:pump"
+    category: diagnostic
+    dps:
+      - id: 5
+        type: integer
+        name: sensor
+        mapping:
+          - scale: 1440
+            invert: true
+        unit: d
   - entity: switch
     name: Run UV cycle
     icon: "mdi:bacteria"
@@ -54,7 +66,6 @@ secondary_entities:
       - id: 10
         type: boolean
         name: switch
-
   - entity: sensor
     name: Water level
     class: enum