Skip to content

Kraken dispatches#4214

Merged
springfall2008 merged 2 commits into
mainfrom
fix/kraken_dispatch
Jul 8, 2026
Merged

Kraken dispatches#4214
springfall2008 merged 2 commits into
mainfrom
fix/kraken_dispatch

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 8, 2026 17:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds SmartFlex “intelligent dispatch” support to the Kraken (EDF/E.ON) integration so Predbat can consume provider-managed smart-charging windows (via octopus_intelligent_slot) similarly to Octopus Intelligent Go, plus new unit tests and a CLI diagnostic flag.

Changes:

  • Add SmartFlex device discovery + dispatch fetching/publishing in KrakenAPI, including cache persistence and a --dispatches CLI mode.
  • Publish per-device binary_sensor.intelligent_dispatch_* entities and wire them into octopus_intelligent_slot/num_cars.
  • Extend test_kraken.py to mock the new async calls and cover device filtering, dispatch normalization/merge, publishing, and run-cycle wiring.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
apps/predbat/kraken.py Introduces SmartFlex discovery/dispatch GraphQL queries, dispatch caching, sensor publishing + wiring, and CLI --dispatches.
apps/predbat/tests/test_kraken.py Adds/adjusts tests to cover the new discovery/dispatch functionality and avoid unintended network calls.

Comment thread apps/predbat/kraken.py
Comment thread apps/predbat/kraken.py
Comment thread apps/predbat/kraken.py
@springfall2008 springfall2008 merged commit bc1a282 into main Jul 8, 2026
2 checks passed
@springfall2008 springfall2008 deleted the fix/kraken_dispatch branch July 8, 2026 18:09
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.

2 participants