-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from jasonacox/v0.10.10
Add Grid Control Functions
- Loading branch information
Showing
8 changed files
with
286 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,54 @@ | ||
# RELEASE NOTES | ||
|
||
## v0.10.10 - Add Grid Control | ||
|
||
* 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="[email protected]" | ||
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) | ||
``` | ||
|
||
## v0.10.9 - TEDAPI Voltage & Current | ||
|
||
* Add computed voltage and current to `/api/meters/aggregates` from TEDAPI status data. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.