Skip to content

Match the official app's Maintenance screen - #104

Closed
virtitnerd wants to merge 1 commit into
DonSidro:masterfrom
virtitnerd:fix/maintenance-official-parity
Closed

virtitnerd wants to merge 1 commit into
DonSidro:masterfrom
virtitnerd:fix/maintenance-official-parity

Conversation

@virtitnerd

Copy link
Copy Markdown
Contributor

Match the official app's Maintenance screen

What changes

  • The cleaning tray was read wrong. strainer_work_times (and cleaning_brush_work_times) count runs since the last reset, not seconds. LocalRock treated them as seconds out of 150 hours, so the tray always showed about 100%. They are now measured out of 150 and 300 runs, as in the official app's supplies list.
  • Renamed Strainer to Cleaning Tray, which is what the official app calls it on this dock.
  • Sensors and the tray show a state ("Normal", "Clean soon", "Must clean") instead of hours. A sensor past its 30 h limit reads "Must clean" with a full red bar.
  • Percentages round up, like the official app (a brush with 142 h of 300 left shows 48%, not 47%).
  • Colour steps follow the official app: above 20%, 5 to 20%, 5% and below. LocalRock's own palette is kept.
  • Mop and Dust Bag are listed as "Replace as needed." with no bar, as in the official app.

Notes

  • The official app's exact text for the in-between states was not confirmed, so "Clean soon" is my wording.
  • Dust Bag has no counter, because it is not clear what dust_collection_work_times measures.
  • Checked on a Qrevo Pro (a101) against the official app's Maintenance screen. ConsumableStatusTest covers the percent maths with the values that robot reports.

🤖 Generated with Claude Code

Percentages round up and use the app's 20% and 5% colour steps. The
cleaning tray and maintenance brush counters are run counts, not seconds,
so they are measured out of 150 and 300 runs. Sensors and the tray show a
state ("Normal", "Clean soon", "Must clean") instead of hours, and the tray
is named Cleaning Tray. Mop and Dust Bag are listed as "Replace as needed."

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@virtitnerd

Copy link
Copy Markdown
Contributor Author

Folded into #117 together with #105 so they can be reviewed as one; closing this one.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant