Skip to content

v0.26.0 - Gateway Network Status and Cloud Calendar History

Latest

Choose a tag to compare

@jasonacox-sam jasonacox-sam released this 29 Nov 01:17

v0.26.0 - Gateway Network Status and Cloud Calendar History

See whether your gateway is on Wi-Fi, Ethernet or cellular, and how strong the link is, with the new network_status() from @cnapagoda in their first contribution — welcome to the project! Cloud mode gains a public get_calendar_history(). (Minor bump: new public methods; nothing existing changed shape.)

  • feat(tedapi): new Powerwall.network_status() (and TEDAPI.get_network_status()) returns the gateway's network status per interface (Wi-Fi, Ethernet, cellular): enabled, active route, link / internet / Tesla connectivity and signal strength. details=True adds MAC address, IPv4 settings and the Wi-Fi SSID; the Wi-Fi password is never parsed, logged or returned. Read-only, cached like the other TEDAPI getters, and available as python -m pypowerwall tedapi -network [-details]. Validated on a Powerwall 3 (firmware 26.34.3) over Gateway Wi-Fi and v1r, and on a Powerwall 2 (firmware 26.42.0) over Gateway Wi-Fi. A Powerwall 2 does not answer it over v1r, and firmware without the request returns None. Thanks @cnapagoda, and @erikgieseler for the Powerwall 2 tests (#477).
  • fix(v1r): the plain-text "authorization not verified" key error is recognised only as the whole inner payload or in the envelope outside it, so a reply whose data contains the phrase (such as a Wi-Fi SSID) is no longer taken for a key error. Key-error warnings show the envelope and the payload's size, never the payload itself. (#477)
  • fix(v1r): a request the gateway answers with a request-level fault (busy, timeout, invalid or unsupported command, decoding, internal, bad parameter) no longer counts toward the LAN→WiFi failover, and doesn't reset the count either: the gateway answered, so the LAN works. Before, a Powerwall 2 asked for its network status over v1r could move a healthy LAN to the WiFi host for 8 minutes. Key, signature and clock faults still count. New TEDAPIv1r.request_fault() (per thread). (#477)
  • feat(cloud): PyPowerwallCloud.get_calendar_history(kind, duration, time_zone, start, end) returns Tesla's site history in Cloud mode, with the same arguments and return value as FleetAPI's get_calendar_history(). It's a live request (not cached), so pypowerwall-server's opt-in cloud lifetime energy no longer needs a private method (#480, pypowerwall-server#209).
  • docs: the README's v1r feature table and v1r WiFi Fallback section say that follower Powerwall data needs wifi_host, and that wired v1r can't reach it any other way, as tested on sites with two Powerwall 3s. Thanks @JEMcats for running the tests (#478, #481).
  • docs: the README's TEDAPI Limitations note and the get_grid_charging() / get_grid_export() docstrings no longer say these reads need Cloud or FleetAPI. In WiFi TEDAPI and v1r LAN mode they read the gateway's config, and in v1r LAN mode set_grid_charging() / set_grid_export() write it (see LAN Control (v1r)). The set_* docstrings now say which modes support them, and the note now says Local and Hybrid mode return None. Thanks @wit3 (#479).
  • Proxy image jasonacox/pypowerwall:0.26.0t116 pins this release plus the v1r fixes above (c5776c5). Hardware A/B t115 vs t116 on our test site: 76 pass, 0 warn, 0 fail. Note: #476 (/pod status flags null) also falls in the v0.25.0...v0.26.0 compare range, but it already shipped with the proxy-t115 release, not this one.
  • Library version bumped to 0.26.0

Test hardware for the release validation: 2× Powerwall 3 + Backup Gateway 2 (no expansion packs), firmware 26.34.3, exercised across WiFi TEDAPI, v1r, Cloud and Fleet API modes.

Install

pip install --upgrade pypowerwall==0.26.0
docker pull jasonacox/pypowerwall:0.26.0t116

https://pypi.org/project/pypowerwall/0.26.0/


Contributors

Thanks to the community members who made this release possible:

  • @cnapagoda — new network_status() TEDAPI/v1r feature and the v1r fault-handling fixes, in their first contribution (#477)
  • @erikgieseler — Powerwall 2 testing of network status over Gateway Wi-Fi and v1r (#477)
  • @JEMcats — reported #478 and ran the two-Powerwall-3 v1r follower tests behind the docs fix (#481)
  • @wit3 — grid charging / export local-mode docs clarification (#479)
  • @jasonacox-sam — code review of #477 and the full release hardware test on #482