Răsfoiți Sursa

Diivoo DWV010: merge related sensors, naming standardisation

- put daily measurements as an attribute of the main sensor, to keep the interface clean.
Jason Rumney 1 an în urmă
părinte
comite
61c932e694
1 a modificat fișierele cu 12 adăugiri și 16 ștergeri
  1. 12 16
      custom_components/tuya_local/devices/diivoo_dwv010.yaml

+ 12 - 16
custom_components/tuya_local/devices/diivoo_dwv010.yaml

@@ -25,23 +25,19 @@ secondary_entities:
         type: string
         type: string
         name: operation
         name: operation
   - entity: sensor
   - entity: sensor
-    class: total_increasing
-    name: Cumulative water usage
+    name: Water use
+    class: volume
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 112
       - id: 112
         type: integer
         type: integer
         name: sensor
         name: sensor
-        unit: "l"
-  - entity: sensor
-    class: volume
-    name: Daily water usage
-    category: diagnostic
-    dps:
+        unit: l
+        class: total_increasing
       - id: 6
       - id: 6
         type: integer
         type: integer
-        name: sensor
-        unit: "l"
+        name: daily
+        unit: l
   - entity: sensor
   - entity: sensor
     class: battery
     class: battery
     category: diagnostic
     category: diagnostic
@@ -101,7 +97,7 @@ secondary_entities:
           - dps_val: "7"
           - dps_val: "7"
             value: "7 days"
             value: "7 days"
   - entity: number
   - entity: number
-    name: Single use time 1
+    name: Irrigation time 1
     category: config
     category: config
     icon: "mdi:timer"
     icon: "mdi:timer"
     dps:
     dps:
@@ -114,7 +110,7 @@ secondary_entities:
           min: 0
           min: 0
           max: 1440
           max: 1440
   - entity: number
   - entity: number
-    name: Single use time 2
+    name: Irrigation time 2
     category: config
     category: config
     icon: "mdi:timer"
     icon: "mdi:timer"
     dps:
     dps:
@@ -128,19 +124,19 @@ secondary_entities:
           max: 1440
           max: 1440
   - entity: sensor
   - entity: sensor
     class: duration
     class: duration
-    name: Remaining irrigation time 2
+    name: Time remaining 1
     category: diagnostic
     category: diagnostic
     dps:
     dps:
-      - id: 125
+      - id: 11
         type: integer
         type: integer
         name: sensor
         name: sensor
         unit: "s"
         unit: "s"
   - entity: sensor
   - entity: sensor
     class: duration
     class: duration
-    name: Remaining irrigation time 1
+    name: Time remaining 2
     category: diagnostic
     category: diagnostic
     dps:
     dps:
-      - id: 11
+      - id: 125
         type: integer
         type: integer
         name: sensor
         name: sensor
         unit: "s"
         unit: "s"