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_THRESHOLDenvironment 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/aggregatessite power,/csv//csv/v2grid power, and/jsongrid 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 nativetesla_authWebView PKCE flow instead of the brokenteslapybrowser redirect. Thetesla://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 requestedemailargument 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