Skip to content

Saros Z70 brush and filter life percentages are treated as elapsed seconds #1098

Backlog

Description

@kirintwn

When my Saros Z70 starts cleaning, the main brush, side brush and filter briefly appear almost new in Home Assistant. In one run, the main brush went from 101 h remaining to 300 h. About 41 seconds later, the next full consumables update restored the 101 h reading.

I observed this on a Saros Z70 (roborock.vacuum.a179, firmware 02.64.56) with Home Assistant Core 2026.11.2 and python-roborock 7.12.0. The standalone example below also reproduces it on 7.26.1 and 7.38.0.

Device readings

The product schema gives these three DPS fields a range of 0–100. The device status values match the percentage of life remaining, while get_consumable reports cumulative work time in seconds.

DPS Product schema field Device status Work time from full read Remaining hours in HA (full read → push)
125 main_brush_life 34% 717,768 s 101 → 300
126 side_brush_life 65% 258,513 s 128 → 200
127 filter_life 75% 138,327 s 112 → 150

Earlier upstream discussions document both representations of IDs 125–127. Device schema with 0–100 life fields in #325 · Work-time field names in #625 · V1 push implementation in #799

Minimal reproduction

With python-roborock==7.38.0 installed, this runs offline.

from roborock.devices.traits.v1.consumeable import ConsumableTrait
from roborock.roborock_message import RoborockDataProtocol

consumables = ConsumableTrait()
consumables.main_brush_work_time = 717_768  # Elapsed seconds from the full read
print(consumables.main_brush_time_left)  # 362232 seconds, about 101 h

consumables.update_from_dps({RoborockDataProtocol(125): 34})
print(consumables.main_brush_time_left)  # 1079966 seconds, about 300 h

Expected behavior

A push reporting 34% main-brush life should keep the remaining time around one third of its 300 h lifetime. On this model, retaining the last polled work time until the next full read would preserve that estimate. Currently the push overwrites the work-time field, so the library subtracts 34 seconds from 300 h. DPS field mapping and remaining-time calculation · DPS update handler

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions