Skip to content

feat(BleDataPolling): improved vehicle away detection - #2819

Open
pkuehnel wants to merge 14 commits into
developfrom
fix/autoSetChargingValuesOnLeaving
Open

feat(BleDataPolling): improved vehicle away detection#2819
pkuehnel wants to merge 14 commits into
developfrom
fix/autoSetChargingValuesOnLeaving

Conversation

@pkuehnel

Copy link
Copy Markdown
Owner

No description provided.

pkuehnel and others added 12 commits July 23, 2026 12:52
The mode a previous process left on the home battery devices is unknown
after startup, e.g. when the container was killed instead of shut down
gracefully or when the mode job never ran at all. As restoring normal was
limited to a tracked hold or charge, such a leftover hold was never
released and the battery could neither charge nor discharge.

Normal is now written once after startup as long as no other mode is
required. Failed writes are retried as the flag is only set on success.

Also adds a test that all jobs in the scheduling jobs namespace are
registered for dependency injection: an unregistered job throws on every
fire, which sets its trigger to error state, so it silently never runs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…worked

fix(DI): add home battery mode job
refactor(chore): use httpClientFactory throughout solution
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

pkuehnel and others added 2 commits July 27, 2026 23:41
Debug output was enabled by the container wide UseDebugBle environment
variable, so it could only be turned on for every car at once and
required a container restart. TSC now requests it per command based on
the new UseBleDebug column of a car, toggled on the support page.

The detailed tesla-control log is returned in the new DebugOutput
property and logged in the container so it is part of the downloadable
BLE logs as well. As tesla-control writes both its log and its error
messages to standard error, the log lines are separated by their
timestamp prefix and kept out of the result message.

Enabling debug also revealed that the process streams were only read
after waiting for the exit: with the additional debug output the pipe
buffer runs full and the process never exits. Both streams are now
drained while the process is running.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@pkuehnel
pkuehnel force-pushed the fix/autoSetChargingValuesOnLeaving branch 2 times, most recently from b3d952e to f4baf68 Compare July 28, 2026 18:11
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