API client and example CLI to interact with Indra V2H Chargers
Project description
pyindrav2h
A basic API client and example CLI to interact with Indra V2H Chargers. Required by Home Assistant.
This is a very early Alpha release, and functionality may change very rapidly.
NOTE: Indra Renewable Technologies Limited are aware of this integration. However, this is an unofficial integration and Indra are not able to provide support for direct API integrations. The Indra API will likely change in future which may result in functionality provided by this integration failing at any time.
Installation
Install pyindrav2h with pip. Using venv is recommended.
pip install pyindrav2h
to update pyindrav2h
pip install pyindrav2h -U
On installation a CLI will become available: indracli
Usage/Examples
CLI
usage: indracli [-h] [-u EMAIL] [-p PASSWORD] [-d] {statistics,device,alldevices,all,loadmatch,idle,exportmatch,charge,discharge,schedule} ...
Indra V2H CLI
positional arguments:
{statistics,device,alldevices,all,loadmatch,idle,exportmatch,charge,discharge,schedule}
statistics show device statistics
device show device info
alldevices show data on all available devices
all show all info
loadmatch set mode to load matching
idle set mode to IDLE
exportmatch set mode to export matching
charge set mode to CHARGE
discharge set mode to discharge
schedule return to scheuduled mode
options:
-h, --help show this help message and exit
-u EMAIL, --email EMAIL
-p PASSWORD, --password PASSWORD
-d, --debug
It is possible to provide a configuration file to provide Indra Smart Portal credentials. If no username/email or password is provided it will be retrieved from ./.indra.cfg
or ~/.indra.cfg
Example .indra.cfg Configuration file
[indra-account]
email=useremail@email.com
password=yourindrapassword
Library Usage
Intended for use with Indra V2H Home Assistant integration. Documentation to follow.
Support
This is a community project that lacks formal support.
For support from the community please join the Indra V2H trial support community: https://indrav2h.zendesk.com/hc/en-gb/community/topics
For bugs or feature requests please create a GitHub Issue: https://github.com/creatingwake/pyindrav2h/issues
NOTE: Please do not contact Indra Support. Indra are unable to assist with unofficial API integrations.
Acknowledgements
- trizmark for help with home assistant API integration examples
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyindrav2h-0.0.8.tar.gz
.
File metadata
- Download URL: pyindrav2h-0.0.8.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38862decc7e906f7e1b4c682914359d9343e6d1c06357a356c7c2d284f1543ee |
|
MD5 | ee6597ef7b7bee7794370a9577b489e1 |
|
BLAKE2b-256 | 223992a0803e3d67da471df0d3ab84bd2247b5986d0ddcaab36fcdda86bd494d |
File details
Details for the file pyindrav2h-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: pyindrav2h-0.0.8-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 630fe11e67f71506cd50ab8b123aee354068d4a0012be7df2241c9c26a8fd398 |
|
MD5 | b2a06f822244a8e8ee8bd2f0974e1cf4 |
|
BLAKE2b-256 | 67544bf24db61aa33a422791b22d7a39076320eb5f1ae2fcf509d8311d8f76b4 |