Skip to content

Tesla: show that the car is asleep on the vehicle's state #166

Closed

Description

@vcanuel

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.

Activity

  1. added
    enhancement
    on Oct 28, 2026
  2. vcanuel commented on Oct 28, 2026

    @vcanuel
    ContributorAuthor

    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.

  3. vcanuel commented on Oct 28, 2026

    @vcanuel
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions