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,get-schedule,set-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
    get-schedule        get the currently-active schedule
    set-schedule        set the active schedule

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.9.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyindrav2h-0.0.9-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file pyindrav2h-0.0.9.tar.gz.

File metadata

  • Download URL: pyindrav2h-0.0.9.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for pyindrav2h-0.0.9.tar.gz
Algorithm Hash digest
SHA256 3256c196c9a8b81f031d5c3d9145c29e774f82905baefc9fb8bd40f37ba9d692
MD5 1098bad14a5f16974b67337a2408b8e6
BLAKE2b-256 27779733177b679491be78f6a67fef89b70693e9bc7b49bd5fd4dee1625eb414

See more details on using hashes here.

File details

Details for the file pyindrav2h-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: pyindrav2h-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for pyindrav2h-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ae413a2b3bcbff25d7c944d8f7ca477ab6788a5f9323c5f94b3d6d61ae6b8442
MD5 587b0c524ebed9cbd046f3c11b119ab4
BLAKE2b-256 85e1cd1a0364c812a02d894ae99243b8ac280a4e8160a077dfdc478338576c8a

See more details on using hashes here.

Supported by

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