github jasonacox/pypowerwall v0.27.0
v0.27.0 - Cloud Calendar History Timeout

one hour ago

v0.27.0 - Cloud Calendar History Timeout

A large Cloud history request can now get its own timeout, so pypowerwall-server's opt-in cloud lifetime energy overlay can use the existing Tesla connection instead of a second login. Minor bump: a new optional parameter — nothing existing changed.

What's New

  • feat(cloud, fleetapi): get_calendar_history() takes an optional timeout (seconds) for that one request, in Cloud mode (PyPowerwallCloud) and FleetAPI (FleetAPI, also get_history()) (#484, for pypowerwall-server#209).
    • A large duration="lifetime" history can take longer than the connection's 5 s default, and the caller no longer needs a second Tesla login with a longer timeout.
    • The timeout applies to that one request, including the retry after a token refresh. In Cloud mode it also sets how long the call waits for the request lock. A FleetAPI call with its own timeout always sends its own request rather than joining one already in flight.
    • timeout=None (the default) sends exactly the same requests as 0.26.0 — existing behavior is unchanged.
  • Library version bumped to 0.27.0.

Proxy (t117)

  • Pin-only change (193f44c): the proxy image is upgraded to pypowerwall v0.27.0 — jasonacox/pypowerwall:0.27.0t117 (amd64, arm64, arm). No other proxy-visible changes.
  • Hardware A/B, t116 vs t117: 76 pass / 0 warn / 0 fail.
  • Published-image smoke test: all 22 endpoints answer, container healthy.

Hardware Validation

Read-only testing on 2x Powerwall 3 + Backup Gateway 2 (no expansion packs) across Cloud, FleetAPI and v1r LAN modes (#485):

  • get_calendar_history() with timeout=30 returns identical payloads to the no-timeout call and to 0.26.0 — including the full duration="lifetime" energy history and kind="power", duration="day" (live drift only).
  • timeout=0.001 fails fast (returns None with a logged timeout), and the next normal call on the same object still works.
  • FleetAPI get_history(timeout=30) matches get_history().
  • No-regression battery vs 0.26.0 (power(), level(), site_name(), grid_status(), get_reserve(), get_mode(), /api/meters/aggregates, /api/system_status): pass in all three modes.

Install / Upgrade

pip install --upgrade pypowerwall==0.27.0

PyPI: https://pypi.org/project/pypowerwall/0.27.0/


Contributors

Thanks to everyone who helped with this release:

  • @erikgieseler — the cloud lifetime energy work in pypowerwall-server#209 that called for this feature (#484)
  • @jasonacox-sam — hardware testing on #485 across Cloud, FleetAPI and v1r LAN, including re-authing FleetAPI to close the FleetAPI gap

Don't miss a new pypowerwall release

NewReleases is sending notifications on new releases.