Bladeren bron

Vacuum configs: Add area class to clean area sensors.

Issue #2596
Jason Rumney 1 jaar geleden
bovenliggende
commit
43aaee06cc
26 gewijzigde bestanden met toevoegingen van 46 en 55 verwijderingen
  1. 1 1
      custom_components/tuya_local/devices/abir_x8_vacuum.yaml
  2. 1 1
      custom_components/tuya_local/devices/airrobo_p20_vacuum.yaml
  3. 1 1
      custom_components/tuya_local/devices/kabum_smart500_vacuum.yaml
  4. 1 1
      custom_components/tuya_local/devices/kabum_smart700_v2023_vaccum.yaml
  5. 1 1
      custom_components/tuya_local/devices/kabum_smart700_vacuum.yaml
  6. 4 4
      custom_components/tuya_local/devices/kogan_lx10_vacuum.yaml
  7. 4 4
      custom_components/tuya_local/devices/kogan_lx8_vacuum.yaml
  8. 1 1
      custom_components/tuya_local/devices/kyvol_e30_vacuum.yaml
  9. 1 1
      custom_components/tuya_local/devices/lefant_ls1_vacuum.yaml
  10. 1 1
      custom_components/tuya_local/devices/lefant_m213_vacuum.yaml
  11. 1 1
      custom_components/tuya_local/devices/lefant_n3_vacuum.yaml
  12. 1 1
      custom_components/tuya_local/devices/lefant_t700_vacuum.yaml
  13. 1 0
      custom_components/tuya_local/devices/lenovo_e1_vacuum.yaml
  14. 4 4
      custom_components/tuya_local/devices/liectroux_g7_vacuum.yaml
  15. 1 1
      custom_components/tuya_local/devices/liectroux_xr500_t3_vacuum.yaml
  16. 2 2
      custom_components/tuya_local/devices/lublueblu_sl60d_vacuum.yaml
  17. 1 1
      custom_components/tuya_local/devices/medion_s10_vacuum.yaml
  18. 1 0
      custom_components/tuya_local/devices/medion_s20_vacuum.yaml
  19. 4 2
      custom_components/tuya_local/devices/medion_x10sw_vacuum.yaml
  20. 1 1
      custom_components/tuya_local/devices/mellerware_citymove_vacuum.yaml
  21. 2 2
      custom_components/tuya_local/devices/neatsvor_x600_vacuum.yaml
  22. 1 0
      custom_components/tuya_local/devices/okp_k2_vacuum.yaml
  23. 4 19
      custom_components/tuya_local/devices/proscenic_m9_vacuum.yaml
  24. 4 4
      custom_components/tuya_local/devices/tefal_xplorer_vacuum.yaml
  25. 1 0
      custom_components/tuya_local/devices/tesvor_s6_vacuum.yaml
  26. 1 1
      custom_components/tuya_local/devices/ttec_reobipro_vacuum.yaml

+ 1 - 1
custom_components/tuya_local/devices/abir_x8_vacuum.yaml

@@ -146,8 +146,8 @@ secondary_entities:
         class: measurement
         class: measurement
   - entity: sensor
   - entity: sensor
     name: Cleaned area
     name: Cleaned area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 7
       - id: 7
         type: integer
         type: integer

+ 1 - 1
custom_components/tuya_local/devices/airrobo_p20_vacuum.yaml

@@ -151,7 +151,7 @@ secondary_entities:
         optional: true
         optional: true
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
-    icon: "mdi:floor-plan"
+    class: area
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 16
       - id: 16

+ 1 - 1
custom_components/tuya_local/devices/kabum_smart500_vacuum.yaml

@@ -126,8 +126,8 @@ secondary_entities:
         name: switch
         name: switch
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 32
       - id: 32
         type: integer
         type: integer

+ 1 - 1
custom_components/tuya_local/devices/kabum_smart700_v2023_vaccum.yaml

@@ -207,8 +207,8 @@ secondary_entities:
         class: measurement
         class: measurement
   - entity: sensor
   - entity: sensor
     name: Cleaned area
     name: Cleaned area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 7
       - id: 7
         type: integer
         type: integer

+ 1 - 1
custom_components/tuya_local/devices/kabum_smart700_vacuum.yaml

@@ -105,8 +105,8 @@ secondary_entities:
         class: measurement
         class: measurement
   - entity: sensor
   - entity: sensor
     name: Cleaned area
     name: Cleaned area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 16
       - id: 16
         type: integer
         type: integer

+ 4 - 4
custom_components/tuya_local/devices/kogan_lx10_vacuum.yaml

@@ -150,14 +150,14 @@ secondary_entities:
         unit: s
         unit: s
   - entity: sensor
   - entity: sensor
     name: Current clean area
     name: Current clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:map-marker-distance"
     dps:
     dps:
       - id: 108
       - id: 108
         name: sensor
         name: sensor
         type: integer
         type: integer
         optional: true
         optional: true
-        unit: m²
+        unit: m2
   - entity: select
   - entity: select
     translation_key: mopping
     translation_key: mopping
     category: config
     category: config
@@ -255,14 +255,14 @@ secondary_entities:
         unit: s
         unit: s
   - entity: sensor
   - entity: sensor
     name: Total clean area
     name: Total clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:map-marker-distance"
     dps:
     dps:
       - id: 117
       - id: 117
         name: sensor
         name: sensor
         type: integer
         type: integer
         optional: true
         optional: true
-        unit: m²
+        unit: m2
   - entity: sensor
   - entity: sensor
     name: Total clean count
     name: Total clean count
     category: diagnostic
     category: diagnostic

+ 4 - 4
custom_components/tuya_local/devices/kogan_lx8_vacuum.yaml

@@ -149,13 +149,13 @@ secondary_entities:
         unit: s
         unit: s
   - entity: sensor
   - entity: sensor
     name: Current clean area
     name: Current clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:map-marker-distance"
     dps:
     dps:
       - id: 108
       - id: 108
         name: sensor
         name: sensor
         type: integer
         type: integer
-        unit: m²
+        unit: m2
         optional: true
         optional: true
   - entity: select
   - entity: select
     translation_key: mopping
     translation_key: mopping
@@ -255,13 +255,13 @@ secondary_entities:
         optional: true
         optional: true
   - entity: sensor
   - entity: sensor
     name: Total clean area
     name: Total clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:map-marker-distance"
     dps:
     dps:
       - id: 117
       - id: 117
         name: sensor
         name: sensor
         type: integer
         type: integer
-        unit: m²
+        unit: m2
         optional: true
         optional: true
   - entity: sensor
   - entity: sensor
     name: Total clean count
     name: Total clean count

+ 1 - 1
custom_components/tuya_local/devices/kyvol_e30_vacuum.yaml

@@ -122,8 +122,8 @@ secondary_entities:
         unit: min
         unit: min
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 16
       - id: 16
         type: integer
         type: integer

+ 1 - 1
custom_components/tuya_local/devices/lefant_ls1_vacuum.yaml

@@ -102,8 +102,8 @@ secondary_entities:
         unit: min
         unit: min
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 7
       - id: 7
         type: integer
         type: integer

+ 1 - 1
custom_components/tuya_local/devices/lefant_m213_vacuum.yaml

@@ -124,8 +124,8 @@ secondary_entities:
         class: measurement
         class: measurement
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 16
       - id: 16
         type: integer
         type: integer

+ 1 - 1
custom_components/tuya_local/devices/lefant_n3_vacuum.yaml

@@ -264,8 +264,8 @@ secondary_entities:
         class: measurement
         class: measurement
   - entity: sensor
   - entity: sensor
     name: Cleaned area
     name: Cleaned area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 7
       - id: 7
         type: integer
         type: integer

+ 1 - 1
custom_components/tuya_local/devices/lefant_t700_vacuum.yaml

@@ -86,7 +86,7 @@ secondary_entities:
         unit: "%"
         unit: "%"
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
-    icon: "mdi:floor-plan"
+    class: area
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 16
       - id: 16

+ 1 - 0
custom_components/tuya_local/devices/lenovo_e1_vacuum.yaml

@@ -95,6 +95,7 @@ primary_entity:
 secondary_entities:
 secondary_entities:
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
+    class: area
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 14
       - id: 14

+ 4 - 4
custom_components/tuya_local/devices/liectroux_g7_vacuum.yaml

@@ -152,14 +152,14 @@ secondary_entities:
         unit: s
         unit: s
   - entity: sensor
   - entity: sensor
     name: Current clean area
     name: Current clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:map-marker-distance"
     dps:
     dps:
       - id: 108
       - id: 108
         name: sensor
         name: sensor
         type: integer
         type: integer
         optional: true
         optional: true
-        unit: m²
+        unit: m2
   - entity: select
   - entity: select
     translation_key: mopping
     translation_key: mopping
     category: config
     category: config
@@ -255,14 +255,14 @@ secondary_entities:
         unit: s
         unit: s
   - entity: sensor
   - entity: sensor
     name: Total clean area
     name: Total clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:map-marker-distance"
     dps:
     dps:
       - id: 117
       - id: 117
         name: sensor
         name: sensor
         type: integer
         type: integer
         optional: true
         optional: true
-        unit: m²
+        unit: m2
   - entity: sensor
   - entity: sensor
     name: Total clean count
     name: Total clean count
     category: diagnostic
     category: diagnostic

+ 1 - 1
custom_components/tuya_local/devices/liectroux_xr500_t3_vacuum.yaml

@@ -146,8 +146,8 @@ secondary_entities:
         class: measurement
         class: measurement
   - entity: sensor
   - entity: sensor
     name: Cleaned area
     name: Cleaned area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 7
       - id: 7
         type: integer
         type: integer

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

@@ -161,8 +161,8 @@ secondary_entities:
         unit: min
         unit: min
   - entity: sensor
   - entity: sensor
     name: Cleaning area
     name: Cleaning area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 7
       - id: 7
         type: integer
         type: integer
@@ -260,7 +260,7 @@ secondary_entities:
           max: 100
           max: 100
   - entity: sensor
   - entity: sensor
     name: Total cleaning area
     name: Total cleaning area
-    icon: "mdi:texture-box"
+    class: area
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 29
       - id: 29

+ 1 - 1
custom_components/tuya_local/devices/medion_s10_vacuum.yaml

@@ -88,7 +88,7 @@ secondary_entities:
         class: measurement
         class: measurement
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
-    icon: "mdi:floor-plan"
+    class: area
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 16
       - id: 16

+ 1 - 0
custom_components/tuya_local/devices/medion_s20_vacuum.yaml

@@ -137,6 +137,7 @@ secondary_entities:
         name: button
         name: button
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
+    class: area
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 16
       - id: 16

+ 4 - 2
custom_components/tuya_local/devices/medion_x10sw_vacuum.yaml

@@ -155,12 +155,13 @@ secondary_entities:
         class: measurement
         class: measurement
   - entity: sensor
   - entity: sensor
     name: Cleaned area
     name: Cleaned area
+    class: area
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 7
       - id: 7
         type: integer
         type: integer
         name: sensor
         name: sensor
-        unit: m²
+        unit: m2
         class: measurement
         class: measurement
   - entity: sensor
   - entity: sensor
     class: battery
     class: battery
@@ -337,12 +338,13 @@ secondary_entities:
         name: fault_code
         name: fault_code
   - entity: sensor
   - entity: sensor
     name: Total cleaned area
     name: Total cleaned area
+    class: area
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 29
       - id: 29
         type: integer
         type: integer
         name: sensor
         name: sensor
-        unit: m²
+        unit: m2
         class: total_increasing
         class: total_increasing
   - entity: sensor
   - entity: sensor
     name: Total cleans
     name: Total cleans

+ 1 - 1
custom_components/tuya_local/devices/mellerware_citymove_vacuum.yaml

@@ -112,8 +112,8 @@ primary_entity:
 secondary_entities:
 secondary_entities:
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 14
       - id: 14
         type: integer
         type: integer

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

@@ -152,13 +152,13 @@ secondary_entities:
         unit: min
         unit: min
   - entity: sensor
   - entity: sensor
     name: Cleaned area
     name: Cleaned area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:vector-square-close"
     dps:
     dps:
       - id: 7
       - id: 7
         name: sensor
         name: sensor
         type: integer
         type: integer
-        unit: m²
+        unit: m2
   - entity: sensor
   - entity: sensor
     class: battery
     class: battery
     dps:
     dps:

+ 1 - 0
custom_components/tuya_local/devices/okp_k2_vacuum.yaml

@@ -115,6 +115,7 @@ primary_entity:
 secondary_entities:
 secondary_entities:
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
+    class: area
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 16
       - id: 16

+ 4 - 19
custom_components/tuya_local/devices/proscenic_m9_vacuum.yaml

@@ -191,21 +191,15 @@ secondary_entities:
         name: sensor
         name: sensor
         type: integer
         type: integer
         unit: min
         unit: min
-        mapping:
-          - scale: 1
-            step: 1
   - entity: sensor
   - entity: sensor
     name: Cleaned area
     name: Cleaned area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:vector-square-close"
     dps:
     dps:
       - id: 7
       - id: 7
         name: sensor
         name: sensor
         type: integer
         type: integer
-        unit: m²
-        mapping:
-          - scale: 1
-            step: 1
+        unit: m2
   - entity: sensor
   - entity: sensor
     class: battery
     class: battery
     dps:
     dps:
@@ -344,16 +338,13 @@ secondary_entities:
         type: boolean
         type: boolean
   - entity: sensor
   - entity: sensor
     name: Total cleaned area
     name: Total cleaned area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:archive-marker-outline"
     dps:
     dps:
       - id: 29
       - id: 29
         name: sensor
         name: sensor
         type: integer
         type: integer
-        unit: m²
-        mapping:
-          - scale: 1
-            step: 1
+        unit: m2
   - entity: sensor
   - entity: sensor
     name: Total clean count
     name: Total clean count
     category: diagnostic
     category: diagnostic
@@ -362,9 +353,6 @@ secondary_entities:
       - id: 30
       - id: 30
         name: sensor
         name: sensor
         type: integer
         type: integer
-        mapping:
-          - scale: 1
-            step: 1
   - entity: sensor
   - entity: sensor
     name: Total clean time
     name: Total clean time
     category: diagnostic
     category: diagnostic
@@ -378,9 +366,6 @@ secondary_entities:
         range:
         range:
           min: 0
           min: 0
           max: 99999
           max: 99999
-        mapping:
-          - scale: 1
-            step: 1
   # - entity: select
   # - entity: select
   #   translation_key: language
   #   translation_key: language
   #   dps:
   #   dps:

+ 4 - 4
custom_components/tuya_local/devices/tefal_xplorer_vacuum.yaml

@@ -215,13 +215,13 @@ secondary_entities:
         unit: s
         unit: s
   - entity: sensor
   - entity: sensor
     name: Current clean area
     name: Current clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:map-marker-distance"
     dps:
     dps:
       - id: 108
       - id: 108
         name: sensor
         name: sensor
         type: integer
         type: integer
-        unit: m²
+        unit: m2
   - entity: switch
   - entity: switch
     name: Disturb switch
     name: Disturb switch
     category: config
     category: config
@@ -242,13 +242,13 @@ secondary_entities:
         unit: s
         unit: s
   - entity: sensor
   - entity: sensor
     name: Total clean area
     name: Total clean area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:map-marker-distance"
     dps:
     dps:
       - id: 117
       - id: 117
         name: sensor
         name: sensor
         type: integer
         type: integer
-        unit: m²
+        unit: m2
   - entity: sensor
   - entity: sensor
     name: Total clean count
     name: Total clean count
     category: diagnostic
     category: diagnostic

+ 1 - 0
custom_components/tuya_local/devices/tesvor_s6_vacuum.yaml

@@ -191,6 +191,7 @@ secondary_entities:
         unit: min
         unit: min
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
+    class: area
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 7
       - id: 7

+ 1 - 1
custom_components/tuya_local/devices/ttec_reobipro_vacuum.yaml

@@ -202,8 +202,8 @@ secondary_entities:
         class: measurement
         class: measurement
   - entity: sensor
   - entity: sensor
     name: Cleaned area
     name: Cleaned area
+    class: area
     category: diagnostic
     category: diagnostic
-    icon: "mdi:floor-plan"
     dps:
     dps:
       - id: 7
       - id: 7
         type: integer
         type: integer