Skip to content

1.2.5-beta2

Pre-release
Pre-release

Choose a tag to compare

@townsmcp townsmcp released this 19 Aug 08:43
· 4 commits to beta since this release
8589191

πŸ“Š Trip & efficiency statistics (#301)

New sensors that track how far you drive and how efficiently, built from data the integration already collects β€” no setup required.

  • Efficiency Since Last Charge (BEV/PHEV) β€” km/kWh since your last charge, straight from the car's own distance/energy figures.
  • Last Trip Distance β€” how far the last drive went.
  • Last Trip Efficiency (BEV/PHEV) and Last Trip Fuel Economy (ICE/HEV/PHEV) β€” each with the full breakdown of the last drive in its attributes (distance, energy/fuel used, SOC used, duration).

A trip is measured from when the car powers on to when it powers off, so the numbers reflect a real drive. Because the end is captured at shutdown, charging or refuelling while parked doesn't skew the figures β€” and if it happens mid-trip, that trip's figure is flagged and skipped rather than shown wrong. A mg_saic_trip_completed event also fires for each drive, so automations and the logbook can keep a full history.

Choose your units: the efficiency sensors can be switched per entity between km/kWh, mi/kWh and kWh/100km (the same way Mileage switches between km and miles). Fuel economy is shown in L/100km, with UK and US mpg in its attributes.

Fuel economy works out of the box for the MG3 Hybrid+, MG S9 PHEV and MG HS PHEV (tank sizes are built in; HS PHEV defaults to the UK/EU 37 L β€” Australian "Super Hybrid" owners, please note yours is 55 L and let us know). Other combustion models show fuel % used until a tank size is added.

⚠️ This release raises the minimum Home Assistant version to 2025.2 (required for the switchable efficiency units). Older installs won't be offered the update.

Notes: SOC and fuel level are whole-percent, so very short trips are coarse; trip duration is approximate.


Implements: #301