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
Polling: Infotainment is polled every 10 s whenever the car is awake, which may keep it from sleeping #112
ADR-0001: "Infotainment charge state only while the car is awake, ~10s while charging."
docs/research/tesla-ble-capabilities.md (Constraints → Polling): "Faster polling keeps the car awake and drains battery — back off when vehicleSleepStatus says asleep / charge complete." docs/compatibility.md gives the same warning.
If 10 s Infotainment polling resets the car's inactivity timer, a parked car that stays connected never falls asleep. The app would then cause the parked drain it exists to measure, and distort the discharge projection and the planned vampire-drain alerts. "Never wake the car" holds to the letter but not in effect.
Proposal
Check on the car: connect, park, and leave it alone. Measure time-to-sleep with the current cadence and again with Infotainment polling turned off. The app already logs VCSEC sleep transitions.
Add an explicit cadence policy. For example: charging → every 10–30 s; awake and parked → one read after waking, then every N minutes or only on request; charge complete → stop; asleep → VCSEC only.
Write the policy as a pure function in core (inputs: charging state, time of the last reads, user activity), with unit tests.
Activity
dzid26 commentedon Oct 10, 2026
Fixed in #161