Skip to main content

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

pyindrav2h-0.0.7.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

pyindrav2h-0.0.7-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page