-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New libbi action chargefromgrid
#16
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
9d15bf2
New libbi action `chargefromgrid`
61803c3
Added extra libbi functionality
trizmark c73cf7e
Update version as well
trizmark fd66824
Merge pull request #1 from trizmark/add-extra-libbi-functionality
trizmark ecb1314
Merge pull request #1 from trizmark/main
mattburns f3f313b
Update API endpoint for location discover
trizmark d6ce0fd
Merge pull request #2 from trizmark/fix-location-api-call
trizmark defb7b5
Merge pull request #2 from trizmark/main
mattburns 454d0c8
Added export mode for libbi
trizmark d3e369e
Merge pull request #3 from trizmark/add-discharge-to-grid
trizmark 0372ad7
Able to get and set charge target
trizmark 3408337
Fixed charge from grid
trizmark 5402856
Added status 12 - Target Charge
trizmark adb9ed5
Removed extra options for chargefromgrid
trizmark a4a5b8c
Updated readme
trizmark 6e063c1
Merge pull request #4 from trizmark/add-libbi-charge-target-handling
trizmark 2a470c8
Added status 173
trizmark b632aeb
Merge pull request #5 from trizmark/Add-new-status-code
trizmark ff1b1f9
OAuth now optional
trizmark 4492814
Merge pull request #6 from trizmark/make-oauth-optional
trizmark 0dbdc51
Merge pull request #3 from trizmark/main
mattburns File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ Setup will add a cli under the name myenergicli, see below for usage | |
|
||
A simple cli is provided with this library. | ||
|
||
If no username or password is supplied as input arguments and no configuration file is found you will be prompted. | ||
If no username, password, app_email or app_password is supplied as input arguments and no configuration file is found you will be prompted. | ||
Conifguration file will be searched for in ./.myenergi.cfg and ~/.myenergi.cfg | ||
|
||
### Example configuration file | ||
|
@@ -35,18 +35,20 @@ Conifguration file will be searched for in ./.myenergi.cfg and ~/.myenergi.cfg | |
[hub] | ||
serial=12345678 | ||
password=yourpassword | ||
[email protected] | ||
app_password=yourapppassword | ||
``` | ||
|
||
### CLI usage | ||
|
||
``` | ||
usage: myenergi [-h] [-u USERNAME] [-p PASSWORD] [-d] [-j] | ||
{list,overview,zappi,eddi,harvi} ... | ||
usage: myenergi [-h] [-u USERNAME] [-p PASSWORD] [-e APP_EMAIL] [-a APP_PASSWORD] [-d] [-j] | ||
{list,overview,zappi,eddi,harvi,libbi} ... | ||
|
||
myenergi CLI. | ||
|
||
positional arguments: | ||
{list,overview,zappi,eddi,harvi} | ||
{list,overview,zappi,eddi,harvi,libbi} | ||
sub-command help | ||
list list devices | ||
overview show overview | ||
|
@@ -59,6 +61,8 @@ optional arguments: | |
-h, --help show this help message and exit | ||
-u USERNAME, --username USERNAME | ||
-p PASSWORD, --password PASSWORD | ||
-e APP_EMAIL, --app_email APP_EMAIL | ||
-a APP_PASSWORD, --app_password APP_PASSWORD | ||
-d, --debug | ||
-j, --json | ||
``` | ||
|
@@ -146,20 +150,23 @@ loop.run_until_complete(get_data()) | |
``` | ||
|
||
## Libbi support | ||
Very early and basic support of Libbi. | ||
Currently supported features: | ||
|
||
- Reads a few values such as State of Charge, DCPV CT | ||
- Battery in and out energy | ||
- Gets and sets the current status | ||
- Gets and sets the current operating mode (normal/stopped/export) | ||
- Change priority of Libbi | ||
- Enable/Disable charging from the grid | ||
- Set charge target (in Wh) | ||
|
||
cli examples: | ||
``` | ||
myenergi libbi show | ||
myenergi libbi mode normal | ||
myenergi libbi mode stop | ||
myenergi libbi priority 1 | ||
myenergi libbi energy | ||
myenergi libbi chargefromgrid false | ||
myenergi libbi chargetarget 10200 | ||
``` | ||
|
||
|
||
|
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 +1 @@ | ||
0.0.29 | ||
0.0.30 |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add a check here to see if app email and password is set and print an error if not?