Pypowerwall

Latest version: v0.12.1

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

Scan your dependencies

Page 2 of 10

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)

0.10.9

* Add computed voltage and current to `/api/meters/aggregates` from TEDAPI status data.
* Fix error in `num_meters_aggregated` calculation in aggregates.

0.10.8

* Add TEDAPI `get_firmware_version()` to poll Powerwall for firmware version. Discovered by geptto in https://github.com/jasonacox/pypowerwall/issues/97. This function has been integrated into pypowerwall existing APIs (e.g. `pw.version()`)
* Add TEDAPI `get_components()` and `get_battery_block()` functions which providing additional Powerwall 3 related device vital information for Powerwall 3 owners. Discovered by lignumaqua in https://github.com/jasonacox/Powerwall-Dashboard/discussions/392#discussioncomment-9864364. The plan it to integrate this data into the other device vitals payloads (TODO).

Page 2 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.