Skip to content

Fix IOG slot to new API#3870

Merged
springfall2008 merged 3 commits intomainfrom
fix/octopus_api_dispatch
May 5, 2026
Merged

Fix IOG slot to new API#3870
springfall2008 merged 3 commits intomainfrom
fix/octopus_api_dispatch

Conversation

@springfall2008
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 5, 2026 17:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Predbat’s Octopus Intelligent (IOG) dispatch-slot handling to match Octopus’s newer GraphQL API shape, and bumps the application version accordingly.

Changes:

  • Switch GraphQL dispatch query from plannedDispatches(accountNumber: ...) to flexPlannedDispatches(deviceId: ...).
  • Update dispatch parsing to use energyAddedKwh/type (with fallback to legacy delta where present).
  • Bump THIS_VERSION to v8.37.10.

Reviewed changes

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

File Description
apps/predbat/predbat.py Version bump to reflect the release containing the IOG API adjustment.
apps/predbat/octopus.py Migrates planned dispatch retrieval/parsing to flexPlannedDispatches and maps new fields into Predbat’s internal dispatch model.

Comment thread apps/predbat/octopus.py
Comment thread apps/predbat/octopus.py Outdated
Comment thread apps/predbat/octopus.py
@springfall2008 springfall2008 merged commit e45c9bb into main May 5, 2026
1 check passed
@springfall2008 springfall2008 deleted the fix/octopus_api_dispatch branch May 5, 2026 18:19
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