Explorar el Código

fix (ilife vacuums): fix error bit values, volume range, lifespan units

- ilife_a30_pro_vacuum: all the above
- ilife v20_vacuum: except volume range, which seems correct based on #3711

Issue #4719
Jason Rumney hace 5 días
padre
commit
996a5e329c

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1300,3 +1300,4 @@ Further device support has been made with the assistance of users. Please consid
 - [goblinmaks](https://github.com/goblinmaks) for contributing support for iPengen GO-E31-32A EV charger.
 - [cjsturgess](https://github.com/cjsturgess) for assisting with support for Pawspik Microchip pet feeder.
 - [meeowgler](https://github.com/meeowgler) for assisting with support for Frienhund ACF180W-A dual camera pet feeder.
+- [ivasso](https://github.com/ivasso) for contributing support for Gosund SP6, which was merged into smartplug_usb.yaml.

+ 9 - 9
custom_components/tuya_local/devices/ilife_a30_pro_vacuum.yaml

@@ -245,7 +245,7 @@ entities:
       - id: 17
         type: integer
         name: sensor
-        unit: h
+        unit: min
   - entity: sensor
     name: Rolling brush lifetime
     category: diagnostic
@@ -254,7 +254,7 @@ entities:
       - id: 19
         type: integer
         name: sensor
-        unit: h
+        unit: min
   - entity: sensor
     translation_key: filter_life
     category: diagnostic
@@ -263,7 +263,7 @@ entities:
       - id: 21
         type: integer
         name: sensor
-        unit: h
+        unit: min
   - entity: number
     name: Dust collection frequency
     category: config
@@ -287,7 +287,9 @@ entities:
         unit: "%"
         range:
           min: 0
-          max: 100
+          max: 10
+        mapping:
+          - scale: 0.1
   - entity: sensor
     name: Total cleaning area
     class: area
@@ -411,7 +413,7 @@ entities:
         name: switch
   - entity: switch
     name: Edge brush clean
-    icon: "mdi:razor-single-edget"
+    icon: "mdi:razor-single-edge"
     category: config
     dps:
       - id: 150
@@ -500,9 +502,9 @@ entities:
             value: radar_fault
           - dps_val: 2097152
             value: camera_fault
-          - dps_val: 84194304
+          - dps_val: 4194304
             value: stuck_fault
-          - dps_val: 18388608
+          - dps_val: 8388608
             value: flow_fault
           - dps_val: 16777216
             value: other_fault
@@ -514,5 +516,3 @@ entities:
             value: water2_fault
           - dps_val: 268435456
             value: explore_fault
-          - dps_val: 53687091
-            value: kit_water_pump

+ 6 - 6
custom_components/tuya_local/devices/ilife_v20_vacuum.yaml

@@ -247,7 +247,7 @@ entities:
       - id: 17
         type: integer
         name: sensor
-        unit: h
+        unit: min
   - entity: sensor
     name: Rolling brush lifetime
     category: diagnostic
@@ -256,7 +256,7 @@ entities:
       - id: 19
         type: integer
         name: sensor
-        unit: h
+        unit: min
   - entity: sensor
     translation_key: filter_life
     category: diagnostic
@@ -265,7 +265,7 @@ entities:
       - id: 21
         type: integer
         name: sensor
-        unit: h
+        unit: min
   - entity: sensor
     name: Rag lifetime
     category: diagnostic
@@ -522,9 +522,9 @@ entities:
             value: pick_up
           - dps_val: 2097152
             value: no_dust_water_box
-          - dps_val: 84194304
+          - dps_val: 4194304
             value: water_box_empty
-          - dps_val: 18388608
+          - dps_val: 8388608
             value: forbid_area
           - dps_val: 16777216
             value: land_check
@@ -536,5 +536,5 @@ entities:
             value: kit_wheel
           - dps_val: 268435456
             value: kit_lidar
-          - dps_val: 53687091
+          - dps_val: 536870912
             value: kit_water_pump