You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tesla: show that the car is asleep on the vehicle's state #166
The collector leaves an asleep Tesla alone (ADR 0040), but nothing on the vehicle's pages says so: the state widget only shows values getting older, as if reading had stopped.
What exists today:
The collector knows the car is asleep (vs.activity.Asleep, internal/collector/collector.go), in memory only: it decides the reads and is logged ("vehicle asleep or out of reach: left alone").
The vehicle response of the Owner API is stored as a snapshot, with its state (online, asleep, offline).
The vehicle's state endpoint does not return it, so VehicleState.vue cannot show it.
To do:
API: the vehicle's state gives whether the car is asleep, offline or online, from the latest vehicle response, with when it was read (the other values' freshness).
UI: the state widget says the car is asleep, since when, and that what it measured is read when it wakes up, so that the older values do not look like a reading failure.
Simulator: the Tesla scenarios already let the car sleep; a test covers the state through it.
Guide (documentation/guide/tesla.md, "Letting the car sleep"): where the page shows it.
In runsten, pull request #169 (head a2a3131): the vehicle's state returns sleep (awake, asleep, offline) from the Owner API's vehicle and vehicle_data responses, and the State page says when the car is asleep or out of reach, and since when. Checked on a real Model Y, asleep. Nothing left once merged.
Done in runsten 8771a22: the vehicle's state tells whether a Tesla is awake, asleep or out of reach (from the vehicle endpoint), and the State page says so, since when, and what happens next.
Activity
vcanuel commentedon Oct 28, 2026
In runsten, pull request #169 (head a2a3131): the vehicle's state returns
sleep(awake, asleep, offline) from the Owner API'svehicleandvehicle_dataresponses, and the State page says when the car is asleep or out of reach, and since when. Checked on a real Model Y, asleep. Nothing left once merged.vcanuel commentedon Oct 28, 2026
Done in runsten 8771a22: the vehicle's state tells whether a Tesla is awake, asleep or out of reach (from the
vehicleendpoint), and the State page says so, since when, and what happens next.