Multiple fixes to issues I have seen in my debug logs.#244
Merged
kvanbiesen merged 2 commits intokvanbiesen:mainfrom Feb 14, 2026
Merged
Multiple fixes to issues I have seen in my debug logs.#244kvanbiesen merged 2 commits intokvanbiesen:mainfrom
kvanbiesen merged 2 commits intokvanbiesen:mainfrom
Conversation
When GPS was stale and a burst arrived with door unlock plus GPS at a new location, update_location() ignored the door state and entered driving mode. The car was actually parked at the destination. Fix: check _door_unlocked_at in the escape branch — if doors transitioned locked to unlocked, relocate the park anchor without driving mode. Also wire MotionDetector.set_charging() in the coordinator so the charging override in is_moving() actually works (was dead code).
Uncapped extrapolation in get_predicted_soc() inflated prediction during long MQTT gaps (53 min observed), then the never-decrease constraint locked in the inflated value. accumulate_energy() already caps at MAX_ENERGY_GAP_SECONDS (600s) but get_predicted_soc() did not, creating a mismatch that caused visible prediction plateaus. Trace: MQTT burst 10:33-10:35, 53-min gap, extrapolation inflated 51.4%->58.7%, real energy stuck at 0.307 kWh, plateau until re-anchor. After HA restart, 74-min gap from persisted session inflated to 61.5%, second plateau at 61.7% until API sync-up at 62%.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each commit has comments describing it. Those fixes are for real problems spotted in my logs.