Skip to content

fix: sleeping-car retries, restored power/activity times, window acti… - #399

Merged
townsmcp merged 1 commit into
betafrom
fix/sleep-retries-and-restored-times
Sep 30, 2026
Merged

townsmcp merged 1 commit into
betafrom
fix/sleep-retries-and-restored-times

Conversation

@townsmcp

Copy link
Copy Markdown
Owner

…vity

From @HarryFlatter's overnight logs (#262, 30 Sept):

  • Car asleep: once flagged unreachable, scheduled polls make one status attempt instead of five and skip the charging request (was ~4 minutes of requests an hour that couldn't succeed). User and event-driven refreshes keep full retries, so a car woken with the key is still picked up.
  • Last Powered On / Off / Vehicle Activity were restored from an entity ID the sensors never have, so every restart replaced them with "24 hours ago". They're now saved in the integration's storage (trip stats store) and restored from it; the real entity (via the registry) is a fallback. The first reading after a restart is a baseline, not activity.
  • Window open/close counts as vehicle activity.

Version 1.3.0-beta6.

…vity

From @HarryFlatter's overnight logs (#262, 30 Sept):

- Car asleep: once flagged unreachable, scheduled polls make one status
  attempt instead of five and skip the charging request (was ~4 minutes of
  requests an hour that couldn't succeed). User and event-driven refreshes
  keep full retries, so a car woken with the key is still picked up.
- Last Powered On / Off / Vehicle Activity were restored from an entity ID
  the sensors never have, so every restart replaced them with "24 hours
  ago". They're now saved in the integration's storage (trip stats store)
  and restored from it; the real entity (via the registry) is a fallback.
  The first reading after a restart is a baseline, not activity.
- Window open/close counts as vehicle activity.

Version 1.3.0-beta6.
@townsmcp
townsmcp merged commit 8a3585c into beta Sep 30, 2026
7 checks passed
@townsmcp
townsmcp deleted the fix/sleep-retries-and-restored-times branch September 30, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant