github jasonacox/pypowerwall v0.15.7
v0.15.7 - Zero Threshold and v1r Owner API Login Fix

latest releases: v0.15.13, v0.15.12, v0.15.11...
one month ago

What's Changed

  • fix: v1r Owner API login — use tesla_auth WebView instead of teslapy browser redirect by @jasonacox-sam in #301
  • feat: Add PW_SITE_ZERO_THRESHOLD to suppress phantom grid noise by @jasonacox-sam in #298
  • docs: warn about 80% reserve limit in cloud/FleetAPI mode by @jasonacox-sam in #304

Details

  • Feat: Add PW_SITE_ZERO_THRESHOLD environment variable to suppress phantom grid noise readings
    • When set to a positive integer value (in watts), site power readings with absolute value at or below the threshold are reported as 0
    • Applies to /api/meters/aggregates site power, /csv//csv/v2 grid power, and /json grid power endpoints
    • Useful for off-grid and night-time scenarios where sensor noise causes small non-zero grid readings (e.g. 5–15W phantom draw)
    • Default is 0 (disabled — no suppression)
  • Proxy build t89
  • For /json endpoint, None values are now preserved. Previously, the proxy converted None to 0 for numeric fields, which could cause confusion when distinguishing between true zero values and missing data. Now, if a field is None in the underlying API response, it will be returned as None in the /json output, allowing clients to handle missing data appropriately. The /csv and /csv/v2 endpoints continue to convert None to 0 for numeric fields to maintain consistent numeric output.
  • Fix: v1r Owner API registration (python -m pypowerwall setup -v1r → option 1) now uses the native tesla_auth WebView PKCE flow instead of the broken teslapy browser redirect. The tesla:// custom URL scheme callback is intercepted by the WebView, eliminating the "missing_code" login failure (#300, reported in discussion #299)
  • Fix: Cached token lookup in owner_api_login() now selects the account matching the requested email argument instead of always using the first entry in .pypowerwall.auth
  • Bump library version to 0.15.7

Full Changelog: v0.15.6...v0.15.7

Don't miss a new pypowerwall release

NewReleases is sending notifications on new releases.