Conversation
added 2 commits
August 25, 2026 01:31
#282 labelled an hours-metered vehicle's own page, its charts, maintenance list, calendar feed and PDF report in engine hours, and put the right unit on most logging forms. It left four things, and this finishes them. The trip and charging forms asked for an odometer reading sized in the account's distance unit; they now ask for engine hours, rendered server-side so they are right before any script runs. The fuel, expense, note, tyre and allowance forms took the unit from the vehicle but still called the field "Odometer", a machine with no odometer to read; the word now follows the vehicle too. The CSV exports stamped every row with the vehicle's distance unit, so a tractor's engine hours were filed under a distance heading alongside the cars; each row now states the unit its own vehicle meters in. The Home Assistant endpoints described the same raw reading as miles. Totals that span both kinds of vehicle — the dashboard and the trip summaries — added engine hours to miles and labelled the result a distance. They now say "mixed units" rather than claiming a unit that describes neither half of the sum. Distance-metered vehicles are unchanged throughout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
0.40.0
Changed
Hour-metered vehicles are now described in hours everywhere. hourly metering for vehicles and means without odometers #282 labelled
a vehicle's own page, its charts, maintenance list, calendar feed and PDF
report in engine hours. This finishes the job on the surfaces it missed.
The trip and charging forms asked for an odometer reading sized in the
account's distance unit; they now ask for engine hours, rendered server-side
so the label is right before any script runs. The fuel, expense, note, tyre
and allowance forms already took the unit from the vehicle but still called
the field "Odometer" — on a machine with no odometer to read — so the word
now follows the vehicle as well as the unit beside it.
The CSV exports stamped every row with the vehicle's distance unit, filing a
tractor's engine hours under a distance heading alongside the cars; each row
now states the unit its own vehicle meters in.
Totals that span both kinds of vehicle — the dashboard and the trip
summaries — added engine hours to miles and called the result a distance.
They now say "mixed units" rather than claiming a unit that describes
neither half of the sum.
Distance-metered vehicles are unchanged throughout.
(#324)
Note for Home Assistant users
The Home Assistant endpoints described an hour-metered vehicle's reading as
miles. They now report the unit the reading is actually in:
unit_distanceon
/api/ha/vehicles, anddistance_uniton the per-vehicle stats endpoint,return
hfor such a vehicle instead of the account's distance preference.If you have a sensor templated on either field for an hour-metered vehicle,
its reported unit will change on upgrade. Sensors for distance-metered
vehicles are unaffected. This is now documented in the README.
Other
vehicles created there are tracked by distance. The README says so
explicitly now.