Pypowerwall

Latest version: v0.12.9

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 12

0.12.2

* Fix bug in cache expiration timeout code that was not honoring pwcacheexpire setting. Raised by erikgiesele in https://github.com/jasonacox/pypowerwall/issues/122 - PW_CACHE_EXPIRE=0 not possible? (Proxy)
* Add WARNING log in proxy for settings below 5s.
* Change TEDAPI config default timeout from 300s to 5s and link to pwcacheexpire setting.

0.12.1

* Large-scale refactor of scan function by Nexarian in https://github.com/jasonacox/pypowerwall/pull/117
- Function `scan()` returns a list of the discovered devices for use as a utility function.
- Ability to silence output for use as a utility.
- Improve performance of multi-threaded scan by using a Queue.
- General code flow improvements and encapsulation.
- Add ability to work with standalone inverters.

python
from pypowerwall.scan import scan
found_devices = scan(interactive = False)

0.12.0

* TEDAPI: Add `get_device_controller()` to get device data which includes Powerwall THC_AmbientTemp data. Credit to ygelfand for discovery and reported in https://github.com/jasonacox/Powerwall-Dashboard/discussions/392#discussioncomment-11360474
* Updated `vitals()` to include Powerwall temperature data.
* Proxy Updated to t66 to include API response for /tedapi/controller.
* Remove Negative Solar Values [Option] by jasonacox in https://github.com/jasonacox/pypowerwall/pull/113
* Solar-Only Cloud Access - Fix errors with site references by Nexarian in https://github.com/jasonacox/pypowerwall/pull/115

0.11.1

* TEDAPI: Fix bug with activeAlerts logic causing errors on systems with multiple Powerwall 3's. Identified by rmotapar in https://github.com/jasonacox/Powerwall-Dashboard/issues/387#issuecomment-2336431741
* FleetAPI: Fix connect() to handle non-energy products in the getsites response. Identified by gregrahn in https://github.com/jasonacox/pypowerwall/issues/111

0.11.0

* Add polling of Powerwall 3 Devices to pull in PW3 specific string data, capacity, voltages, frequencies, and alerts.
* This creates mock TEPOD, PVAC and PVS compatible payloads available in vitals().

Proxy URLs updated for PW3:
* http://localhost:8675/vitals
* http://localhost:8675/help (verify pw3 shows True)
* http://localhost:8675/tedapi/components
* http://localhost:8675/tedapi/battery

0.10.10

* Add a function and command line options to allow user to get and set grid charging and exporting modes (see https://github.com/jasonacox/pypowerwall/issues/108).
* Supports FleetAPI and Cloud modes only (not Local mode)

Command Line Examples

bash
Connect to Cloud
python3 -m pypowerwall setup or fleetapi

Get Current Settings
python3 -m pypowerwall get

Turn on Grid charging
python3 -m pypowerwall set -gridcharging on

Turn off Grid charging
python3 -m pypowerwall set -gridcharging off

Set Grid Export to Solar (PV) energy only
python3 -m pypowerwall set -gridexport pv_only

Set Grid Export to Battery and Solar energy
python3 -m pypowerwall set -gridexport battery_ok

Disable export of all energy to grid
python3 -m pypowerwall set -gridexport never


Programming Examples

python
import pypowerwall

FleetAPI Mode
PW_HOST=""
PW_EMAIL="myexample.com"
pw = pypowerwall.Powerwall(host=PW_HOST, email=PW_EMAIL, fleetapi=True)

Get modes
pw.get_grid_charging()
pw.get_grid_export()

Set modes
pw.set_grid_charging("on") set grid charging mode (on or off)
pw.set_grid_export("pv_only") set grid export mode (battery_ok, pv_only, or never)

Page 3 of 12

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.