Skip to main content

A python library to retrieve energy statistics from your Alpha ESS inverter by polling the Official Alpha ESS Open API.

Project description

alphaess

This Python library uses the Alpha ESS Open API to retrieve data on your Alpha ESS inverter, photovoltaic panels, and battery if you have one. This library is principally intended for use by my Home Assistant integration [https://github.com/CharlesGillanders/homeassistant-alphaESS]

How to use

1. Sign up for an open API account

Register at https://open.alphaess.com/ for a (free) account to get your Developer ID (AppID) and Developer Secret (AppSecret).

Once registered, add your battery/inverter to the developer account via the web UI.

Note

To be good internet citizens, it is advised that your polling frequency for any AlphaCloud endpoints are 10 seconds at a minimum.

Methods

There are public methods in this module that duplicate the AlphaESS OpenAPI and provide wrappers for

All of the above are documented at https://open.alphaess.com/developmentManagement/apiList (Registration required)

  • getdata() - Attempts to get statistical energy data for use in Home Assistant for all registered Alpha ESS systems - will return None if there are issues retrieving data from the Alpha ESS API.
  • authenticate - Attempts to use https://openapi.alphaess.com/api/getEssList to validate authentication to the ALpha ESS API - will return True or False.
  • setbatterycharge (serial, enabled, dp1start, dp1end, dp2start, dp2end, chargecutoffsoc) Parameters:
  • chargecutoffsoc (float) % to stop charging from the grid at
  • enabled (bool) True to charge from the grid, False do not
  • dp1start (datetime.time) The start time of charging period 1 (the minutes must be one of :00, :15, :30, :45)
  • dp1end (datetime.time) The end time of charging period 1 (the minutes must be one of :00, :15, :30, :45)
  • dp2start (datetime.time) The start time of charging period 2 (the minutes must be one of :00, :15, :30, :45)
  • dp2end (datetime.time) The end time of charging period 2 (the minutes must be one of :00, :15, :30, :45)
  • serial (str) The serial number of the battery/inverter.
  • setbatterydischarge (serial, enabled, dp1start, dp1end, dp2start, dp2end, dischargecutoffsoc) Parameters:
  • dischargecutoffsoc (float) % to stop discharging from the battery at
  • enabled (bool) True to discharge from the battery, False do not
  • dp1start (datetime.time) The start time of charging period 1 (the minutes must be one of :00, :15, :30, :45)
  • dp1end (datetime.time) The end time of charging period 1 (the minutes must be one of :00, :15, :30, :45)
  • dp2start (datetime.time) The start time of charging period 2 (the minutes must be one of :00, :15, :30, :45)
  • dp2end (datetime.time) The end time of charging period 2 (the minutes must be one of :00, :15, :30, :45)
  • serial (str) The serial number of the battery/inverter.

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

alphaessopenapi-0.0.18.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

alphaessopenapi-0.0.18-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file alphaessopenapi-0.0.18.tar.gz.

File metadata

  • Download URL: alphaessopenapi-0.0.18.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for alphaessopenapi-0.0.18.tar.gz
Algorithm Hash digest
SHA256 5675808d72b2b45866f3eade36e6ac1d5194cc2d7aa0a84e303c6b56ff2178a5
MD5 a7db9c66619c658d963e254064079d9c
BLAKE2b-256 8c5ffb6ad4c1811ba75ba0b7a7fb0a13f0bc085c6d93a7be5c05546824b72ce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for alphaessopenapi-0.0.18.tar.gz:

Publisher: publish.yml on CharlesGillanders/alphaess-openAPI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file alphaessopenapi-0.0.18-py3-none-any.whl.

File metadata

File hashes

Hashes for alphaessopenapi-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 9aee81210b2545b25686c0e870b36f8d485d794620ca267835e0953984a20ebd
MD5 7ec97510b65b2e3da062d7cb5e77e9c9
BLAKE2b-256 5f625501352dbd03deeefbf406f63d64a7cdb5f1a6ce94c89dc8f4848a3cdd52

See more details on using hashes here.

Provenance

The following attestation bundles were made for alphaessopenapi-0.0.18-py3-none-any.whl:

Publisher: publish.yml on CharlesGillanders/alphaess-openAPI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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