-
Notifications
You must be signed in to change notification settings - Fork 4
Implemented charge windows instead of just picking random low price s… #951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
fredli74
wants to merge
73
commits into
master
Choose a base branch
from
charge_window_planner
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
f4aff26
Implemented charge windows instead of just picking random low price s…
fredli74 f0cabe5
logic.ts trailing whitespace
fredli74 6ee0dd7
Update server/logic.ts
fredli74 d77163b
Reuse now instead of Date.now()
fredli74 62ca0a6
Incorrectly removed current timeslot from price_data SQL
fredli74 2f49ce8
Inline score calculation for remainders.
fredli74 56f2dbf
Track requested charge levels in status messages
fredli74 dfdbcbc
Refactor soft intents: type definition and status function
fredli74 289a128
Disable ESLint for v-html in alerts
fredli74 edee93d
Still do SoftIntents during manual charge, because of trip scheduling
fredli74 cd6e37c
Fix backoff logic to always run at least once if we have a targetMs <…
fredli74 a05c30e
Fix: Apply fill plan only if windows exist and time sufficient
fredli74 9970b35
Tesla-agent would set charge limit (wantedSoc) too low and risk the v…
fredli74 abaa689
Improve logging
fredli74 0ba6c3c
Refactor charge scheduling to use dynamic programming instead of spli…
fredli74 d6249df
Refactor vehicle logging to use dedicated logger
fredli74 eff4b93
Increase warmup penalty to 15 minutes and add scheduling window logging.
fredli74 e792fc0
Fix existingPrecon check
fredli74 2469fd9
Add error logging for vehicleWork failures
fredli74 8ec1159
Add exponential backoff for telemetry config on 403 errors
fredli74 e20c353
Allow over max price for charging start windows
fredli74 f283d3f
Fix spelling of 'Telemetry' in logs and strings
fredli74 303905c
Move dotenv config and use serverURL in proxy target
fredli74 b7c3b2e
Add module temperature min/max telemetry support
fredli74 66d84c1
Add split charge control for vehicle settings
fredli74 c2d4356
Fix split charge label and warmup penalty calculation
fredli74 7d4afca
Fix: We did not respect the autoHvac setting
fredli74 47b15e8
tesla: redact secrets in logs
fredli74 5640500
Fix splitCharge default and saving state handling.
fredli74 3cd204f
Fix soft intent scheduling by keeping per-intent deadlines
fredli74 6f93098
Keep active charge legs sticky near completion
fredli74 98dee8f
Audit Tesla schedules against live vehicle state
fredli74 55ab6e1
Await queued Tesla work on telemetry scope backoff
fredli74 6cb27e4
Log updateVehicle against verified vehicle UUID
fredli74 2bf6ad5
Compile error because of missing import
fredli74 2b65953
Scope vehicle location save cleanup to each request
fredli74 94a38f8
Refactor charge intent handling with price planning constants
fredli74 3184af2
Refactor scheduling logic for step-based optimization
fredli74 4936876
Fix splitCharge type and location key in templates
fredli74 8930668
Add planStartIndex to track charge plan start position
fredli74 1337dcb
Replace deepmerge with ticket-based save state tracking
fredli74 240bff8
Refactor gap penalty logic for interruptions
fredli74 654fd5d
Fix stepMs for splitCharge.Always case
fredli74 fcb1d3c
Add disallowGaps check to block gap-containing compositions.
fredli74 16ab507
Refactor scheduling logic to prioritize tariff fidelity and phase tra…
fredli74 3617fc9
Add detailed logging for scheduling steps and node management.
fredli74 2dd33b0
Extract location settings logic into helper method
fredli74 cac8348
Replace string-based schedule comparison with structural equality che…
fredli74 8ead037
Refactor charging plan to track warmup debt and energy cost.
fredli74 c3fddbb
Replace compareStopTimes with numeric comparison in sort
fredli74 c0f3761
Fix form validation check and add else block for saving state.
fredli74 26458af
Refactor log formatting into helper function
fredli74 c767ffe
Fix: Sort schedules by start time instead of stop time
fredli74 770145f
Sort intents by start time instead of stop time.
fredli74 ea2929b
Enhance schedule management and emergency wake-up logic
fredli74 c24027f
Update manual schedule departure threshold to 3km for clearer detection.
fredli74 44b1f35
Remove setSmartStatusFromIntent and integrate status into charge plan
fredli74 ae599de
Log VIN always, include UUID when available
fredli74 2c474af
Move Tesla scheduling methods to public utilities.
fredli74 c2b0854
Add Node.js tests for Tesla agent logic
fredli74 40e31e0
Add trusted HTML comments to v-html usages
fredli74 df20a04
Replace splitCharge string with enum in resolvers and schema
fredli74 562a1fe
Refactor charge schedule quantum and adjust blocker logic for tariff …
fredli74 79979ac
Fix emergency wake-up time parsing and log formatting
fredli74 f49c50e
Fix: Skip schedule reconciliation if live schedules are unknown
fredli74 7acb956
Add schedule sync issue indicators and backend support
fredli74 868024c
Simplify schedule sync issue handling by removing reason and streamli…
fredli74 060e327
Update sync status colors and drift message wording
fredli74 7c89cc2
Move icon class to tooltip activator
fredli74 c0de92a
Use issueKind instead of hardcoded 'drift
fredli74 0eb6648
Update schedule tooltip and add SOC limit checks
fredli74 8e21af4
Fix schedule sync classification by checking start time only.
fredli74 919cd96
Add teslaWantedSocLimit function and test
fredli74 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,3 +23,4 @@ jobs: | |
| cache: 'npm' | ||
| - run: npm ci | ||
| - run: npm run build | ||
| - run: npm run test:node | ||
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.