Repository navigation
Description
Today a vehicle exists only through a Volvo connection: vehicles.connection_id and vin are NOT NULL (0001_init.sql), and the model sheet (variant_id, ADR 0022) is recognised from the API. A driver who does not want to link their Volvo account, or whose data comes from elsewhere, cannot use Runsten at all.
ADR 0035 already made the Volvo API one source among others. A vehicle without a Volvo connection is the same thing with no API source: it is fed by imports (#4, #43) and, later, by pushed readings (ADR 0035 §6). It also takes nothing from the Volvo API's quota.
What the driver gets depends on what feeds the vehicle
- Summaries (Aximote, the Volvo Cars app's CSV): trips, charges, costs, statistics. No battery state, no live state of charge, no capacity estimate (ADR 0023).
- Readings pushed or imported (Home Assistant first): everything, the derivation runs as for the API.
Decided (2026-10-11)
- Schema:
vehicles.connection_idbecomes nullable.NULLis a vehicle created by hand, which the collector never polls. Linking a Volvo account later fills the column. No placeholder connection. - VIN: optional, still unique per account when given. Without a VIN, linking a Volvo account later is the driver's explicit choice of vehicle, never guessed.
- Makes: Volvo and Polestar only, through the model catalogue (ADR 0022). Other makes are out of scope; the question can be reopened on its own later.
- Next source: Home Assistant is the first source of pushed readings, in its own issue.
Scope of this issue
- An amendment to ADR 0035 recording the decisions above.
- Migration: nullable
connection_id, nullablevin(unique per account when not null); the collector and everything readingconnection_idskip vehicles without one. - Store and API: create, rename and delete a vehicle without a connection.
- The model chosen by hand from the catalogue (ADR 0022), so that capacity, costs and statistics work.
- Web: create a vehicle without linking a Volvo account, saying what it will and will not show.
- The imports of Store and show imported trips and charges #4 work on it unchanged (the cutoff already says: a vehicle without a snapshot accepts what starts before now).
Linking a Volvo account later (to design here, may be built after)
- The driver picks the vehicle created by hand that matches, or it is matched by VIN when both have one. Never guessed.
- From then on, summaries starting after the first snapshot are skipped by the cutoff (ADR 0030 §3); the import screen must say so.
Out of scope, their own issues
- Pushed readings from Home Assistant: the write scope for personal access tokens and the idempotent batch route (ADR 0035 §6).
- A periodic synchronisation of summaries from a third-party app.
Activity
vcanuel commentedon Oct 11, 2026
Decisions (2026-10-11):
vehicles.connection_idbecomes nullable;NULLis a vehicle created by hand, which the collector never polls. Linking a Volvo account later fills the column. No placeholder connection.