Skip to content

Planner ~27% faster, cheapest export rates planned in automatic mode, Octopus and Sigenergy login fixes

Latest

Choose a tag to compare

@springfall2008 springfall2008 released this 26 Nov 17:31
3d77a4a

The planner is about 27% faster, and plans are unchanged. In automatic mode Predbat can now plan exports at your cheapest export rate, such as a dual-rate tariff's night band, when that beats clipping solar the next day.

This release also fixes Octopus and Sigenergy logins that failed or kept retrying when the network or the API refused them, Hypervolt car charges that were counted twice after a restart, and a Powerwall minimum reserve below 4% that wouldn't stick.

What's Changed

Planner

  • feat(plan): offer every export rate in automatic mode, the cheapest included by @springfall2008 in #6332
    • With rate_high_threshold: 0, the planner used to skip every slot at the cheapest export rate. On a dual-rate export tariff that is the whole night band, so it couldn't export overnight to make room for solar that would otherwise be clipped the next day. Fixes #6214.
    • The high-rate export sensors and binary_sensor.predbat_high_rate_export_slot are unchanged. Manual mode (rate_high_threshold above 0) is unchanged.
  • perf: make the planner ~27% faster with plans unchanged by @springfall2008 in #6352
  • perf(plan): price a target's export swaps as one batch by @springfall2008 in #6327
  • perf(plan): cut repeated work in the levels-pass search loop by @springfall2008 in #6323

Bug fixes

  • fix(octopus): handle connection errors in the token mint and GraphQL query by @springfall2008 in #6369
    • A DNS failure or refused connection stopped the Octopus component from starting, and dropped the Intelligent dispatches Predbat already had. It now logs a Warn: and keeps the dispatches it has. This was most likely during an internet or DNS outage.
  • fix(sigenergy): cool down logins after the auth endpoint rejects the key by @mgazza in #6370
    • When Sigenergy rejected a login (1201 Access restriction, 2036 client token requested too frequently), Predbat retried several times a minute, which kept the key blocked and stopped battery commands. It now waits about 1, 2, then 5 minutes between attempts.
  • fix(hypervolt): publish session energy as unavailable until known after a restart by @chalfontchubby in #6303
    • If Predbat restarted part-way through a car charge, the session's energy so far was counted twice. Fixes #6285.
  • fix(teslemetry): bind battery_min_soc to the Powerwall's 0% floor by @springfall2008 in #6339
    • With teslemetry_automatic on, a minimum reserve below 4% was reset to 4%. A Powerwall accepts 0%, and Predbat now does too.

Maintenance

  • dev: run_all accepts test function names and a test_ prefix; run_pre_commit --checks-only; quieter setup.csh by @gcoan in #6322
  • test(random): record the planner's own metric, pv90 included by @springfall2008 in #6329
  • feat(triage): shared-memory links and claims for the bot, with claim-or-stop and BOT_FORCE by @springfall2008 in #6328
  • predbat-memory board and offline memory benchmark (#6367, #6373, #6374)
  • Debug journal updates (#6334, #6346, #6356)

Full Changelog: v9.10.0...v9.10.1