Zum Hauptinhalt springen

LOA - Car Lease Mileage Smart-Home-Integration, kostenlos und Open Source

LOA - Car Lease Mileage-Integration für Gladys Assistant

Track the mileage of a leased car (LOA/LLD): allowance, projection, extra-kilometre cost.

Info

Die Dokumentation dieser Integration wird von ihrem Autor geschrieben und ist bisher nur auf Englisch verfügbar.

Your car is leased (LOA or LLD in France) with a mileage allowance: this integration tells you at any time whether you drive too much, what the odometer will read at the end of the contract at your current pace, and what the extra kilometres would cost when you return the car.

What you get​

A "<vehicle name> (LOA)" device in the Discovery tab, with these values:

ValueMeaning
Compteur kilométriquethe last reading you entered
Compteur prévu à datewhat the odometer should read today if the allowance were spread evenly
Écart avec le prévureading − expected at the reading date; positive = you drive too much
Km restants au forfaitallowance − distance driven; negative once the allowance is exceeded
Budget km par moiswhat you can still drive each month to end exactly within the allowance
Compteur projeté en fin de contratthe final odometer if you keep your current pace
Dépassement projetéthe kilometres over the allowance in that projection
Surcoût projetéprojected extra kilometres × price per extra kilometre
Jours restantsdays until the end of the contract

The feature names are in French (LOA is a French contract); rename them in Gladys if you like. Every value keeps its history, so you can chart it on a dashboard.

The projection only appears after one week of contract: before that, a single long trip would distort it completely.

Configuration​

  1. Open the Configuration tab of the integration and copy your contract:
    • Contract start: the delivery date, as YYYY-MM-DD (e.g. 2025-03-15);
    • Duration in months (36 for 3 years);
    • Mileage allowance for the whole contract (60,000 km for 3 years at 20,000 km/year);
    • Odometer at delivery (often a few kilometres);
    • Price per extra km, from the contract terms.
  2. Save, then add the device from the Discovery tab.
  3. Record a first odometer reading (see below).

While something is missing, the Configuration screen says what to fix.

Recording the odometer​

Three ways:

  • Configuration screen: the Record the odometer button. The summary shows under the button.
  • Dashboard: add the Car lease widget; its New reading button opens a small form, pre-filled with the last reading. Its chart draws the allowance over the whole contract and your own pace, extended to the projected final odometer: when your line runs above the allowance line, you are driving too much.
  • Scene: the Record the leased car odometer action. Handy when your car is connected and another Gladys integration already reads its odometer: a daily scene can pass that value on. In the Odometer (km) field, type {{ and pick the car's odometer value from the list.

A reading a week or a month is enough: the projection uses the average pace since the delivery. A reading lower than the previous one is accepted (fixing a typo).

Scene examples​

  • Overage alert: "device value" trigger on Surcoût projeté above 0 → send a message.
  • Return reminder: trigger on Jours restants below 90 → "book the return inspection".
  • Reading reminder: scheduled trigger every Sunday → "read the car odometer".

The computation​

expected(date) = odometer at delivery + allowance × (days elapsed / contract days)
delta = reading − expected(reading date)
pace = distance driven / days elapsed at the reading date
projected = odometer at delivery + pace × contract days
projected cost = max(0, projected distance − allowance) × price per extra km
budget per month = km left / months left (all of it during the last month)

The contract ends on the start date plus the duration in months (a contract started on 31 January ends on the last day of the target month).

Troubleshooting​

Read the integration logs from the Gladys UI (or docker logs on the host), with LOG_LEVEL=debug for the full detail.

Konfigurationseinstellungen​

Diese Einstellungen fragt LOA - Car Lease Mileage in seinem Konfigurationsbildschirm in Gladys ab.

EinstellungTypPflichtfeldBeschreibung
Your lease contractsectionNeinCopy the figures from your lease contract. Then enter the odometer from time to time (button below, dashboard widget or a scene): Gladys compares it with the allowance and projects the end of the contract.
Vehicle namestringNein
Contract start (delivery date)stringJaFormat YYYY-MM-DD.
Duration (months)numberJa
Mileage allowance (km)numberJaFor the whole contract, not per year.
Odometer at delivery (km)numberNein
Price per extra km (€)numberJaWritten in the contract, usually between 0.05 and 0.20 €.

So installierst du LOA - Car Lease Mileage in Gladys​

  1. Öffne in Gladys Integrationen: LOA - Car Lease Mileage erscheint im Katalog neben den nativen Integrationen, mit einem Community-Badge.
  2. Klicke auf Installieren. Gladys lädt das Docker-Image (ghcr.io/nagromdark/gladys-suivi-loa-lld:1.0.0) herunter, startet es in einer vom Kern isolierten Sandbox und erzeugt die Oberfläche der Integration (Geräte, Erkennung und Konfiguration).
  3. Öffne den Bildschirm Konfiguration der Integration, fülle die Einstellungen aus und speichere.
  4. Du kannst sie auch direkt über die URL ihres Repositorys installieren: https://github.com/Nagromdark/gladys-suivi-loa-lld.

LOA - Car Lease Mileage benötigt Gladys >=5.1.0. Der Katalog in Gladys wird stündlich aktualisiert, eine neue Version ist also spätestens eine Stunde nach ihrer Veröffentlichung verfügbar.

Du nutzt Gladys noch nicht? Es ist kostenlos und Open Source: folge der Installationsanleitung, um loszulegen.

Über externe Integrationen​

LOA - Car Lease Mileage ist eine externe Integration: eine Community-Integration, die als Docker-Container verpackt und auf GitHub veröffentlicht wird. Gladys installiert sie mit einem Klick und führt sie in einer vom Kern isolierten Sandbox aus. Sie wird von Nagromdark veröffentlicht und gepflegt, nicht vom Gladys-Kernteam.

Abonniere den Newsletter von Gladys Assistant

Ein paar E-Mails im Monat zu neuen Releases und Neuigkeiten aus dem Projekt. Verschickt von Pierre-Gilles Leymarie, dem Gründer des Projekts. Jederzeit abbestellbar 🙂