Skip to content

Release v0.40.0 - #334

Merged
dannymcc merged 2 commits into
mainfrom
dev
Aug 25, 2026
Merged

Release v0.40.0#334
dannymcc merged 2 commits into
mainfrom
dev

Conversation

@dannymcc

Copy link
Copy Markdown
Owner

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_distance
on /api/ha/vehicles, and distance_unit on the per-vehicle stats endpoint,
return h for 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

  • The tracking unit is still neither exposed nor settable over the REST API;
    vehicles created there are tracked by distance. The README says so
    explicitly now.

Harness 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.
@dannymcc
dannymcc merged commit 01d1234 into main Aug 25, 2026
1 check passed
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