Add automated spot-market price threshold optimizer and DWD weather forecast modules#11
Draft
Copilot wants to merge 4 commits into
Draft
Add automated spot-market price threshold optimizer and DWD weather forecast modules#11Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
Agent-Logs-Url: https://github.com/jsphuebner/esp-egycounter/sessions/7ab20b4a-8457-4585-ba56-ffdd0fbc335d Co-authored-by: jsphuebner <3882041+jsphuebner@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
jsphuebner
April 25, 2026 09:13
View session
…tic consumption Agent-Logs-Url: https://github.com/jsphuebner/esp-egycounter/sessions/0979a95c-77c1-4882-ae21-66e209e678c5 Co-authored-by: jsphuebner <3882041+jsphuebner@users.noreply.github.com>
…ciency Agent-Logs-Url: https://github.com/jsphuebner/esp-egycounter/sessions/bca86518-22a7-461f-a54d-472c64c85eed Co-authored-by: jsphuebner <3882041+jsphuebner@users.noreply.github.com>
…andling Agent-Logs-Url: https://github.com/jsphuebner/esp-egycounter/sessions/a9412e73-abae-47dd-8195-f737965369f4 Co-authored-by: jsphuebner <3882041+jsphuebner@users.noreply.github.com>
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.
loop_start()+on_connectcallback so the client reconnects and re-subscribes automatically after any connection dropget_future_prices()filter fromstart_timestamp >= now_mstoend_timestamp > now_msso the currently-active price slot is included as a recharge opportunity; add key-presence guardcalculate_thresholds()calls (main loop +on_message+on_connect) in try/except so a transient error doesn't crash the process or silently skip future recalculations