Pypowerwall

Latest version: v0.12.1

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

Scan your dependencies

Page 4 of 10

0.10.1

* Fix PVAC lookup error logic in TEDAPI class vitals() function.
* Add alerts and other elements to PVAC TETHC TESYNC vitals.
* Update vitals Neurio block to include correct location and adjust RealPower based on power scale factor.

0.10.0

* Add support for `/tedapi` API access on Gateway (requires connectivity to 192.168.91.1 GW and Gateway Password) with access to "config" and "status" data.
* Adds drop-in replacement for depreciated `/vitals` API and payload using the new TEDAPI class. This allows easy access to Powerwall device vitals.
* Proxy update to t58 to support TEDAPI with environmental variable `PW_GW_PWD` for Gateway Password. Also added FleetAPI, Cloud and TEDAPI specific GET calls, `/fleetapi`, `/cloud`, and `/tedapi` respectively.

python
How to Activate the TEDAPI Mode
import pypowerwall

gw_pwd = "GW_PASSWORD" Gateway Passowrd usually on QR code on Gateway

host = "192.168.91.1" Direct Connect to GW
pw = pypowerwall.Powerwall(host,password,email,timezone,gw_pwd=gw_pwd)
print(pw.vitals())


python
New TEDAPI Class
import pypowerwall.tedapi

tedapi = pypowerwall.tedapi.TEDAPI("GW_PASSWORD")

config = tedapi.get_config()
status = tedapi.get_status()

meterAggregates = status.get('control', {}).get('meterAggregates', [])
for meter in meterAggregates:
location = meter.get('location', 'Unknown').title()
realPowerW = int(meter.get('realPowerW', 0))
print(f" - {location}: {realPowerW}W")

0.9.1

* Fix bug in time_remaining_hours() and convert print statements in FleetAPI to log messages.
* Fix CLI bug related to `site_id` as raised by darroni in https://github.com/jasonacox/pypowerwall/issues/93
* Add CLI option for local mode to get status:

bash
python -m pypowerwall get -host 10.1.2.3 -password 'myPassword'

0.9.0

* v0.9.0 - Tesla (official) FleetAPI cloud mode support by jasonacox in https://github.com/jasonacox/pypowerwall/pull/91 - This adds the FleetAPI class and mapping for pypowerwall.
* FleetAPI setup provided by module CLI: `python -m pypowerwall fleetapi`
* Adds `auto_select` mode for instatiating a Powerwall connection: `local` mode, `fleetapi` mode and `cloud` mode. Provides `pw.mode` class variable as the mode selected.

python
import pypowerwall

Option 1 - LOCAL MODE - Credentials for your Powerwall - Customer Login
password="password"
email="emailexample.com"
host = "10.0.1.123" Address of your Powerwall Gateway
timezone = "America/Los_Angeles" Your local timezone

Option 2 - FLEETAPI MODE - Requires Setup
host = password = email = ""
timezone = "America/Los_Angeles"

Option 3 - CLOUD MODE - Requires Setup
host = password = ""
email='emailexample.com'
timezone = "America/Los_Angeles"

Connect to Powerwall - auto_select mode (local, fleetapi, cloud)
pw = pypowerwall.Powerwall(host,password,email,timezone,auto_select=True)

print(f"Connected to Powerwall with mode: {pw.mode}")

0.8.5

* Fix bug with setup for certain Solar Only systems where setup process fails. Identified by hulkster in https://github.com/jasonacox/Powerwall-Dashboard/discussions/475

0.8.4

* Updated `set_reserve(level)` logic to handle levels from 0 to 100. Identified by spoonwzd in 85

Page 4 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.