An async API client for HYXi Cloud.
Project description
hyxi-cloud-api
An asynchronous Python client for interacting with the HYXI Cloud API.
This library was primarily built to power the HYXI Cloud Home Assistant Integration, but it can be used in any Python 3.11+ project to fetch telemetry data from HYXI solar inverters and battery systems.
📦 Installation
You can install the package directly from PyPI:
pip install hyxi-cloud-api
🚀 Quick Start
This library uses aiohttp for non-blocking network requests. You will need to provide your Developer API credentials (AK/SK), along with an active aiohttp.ClientSession.
[!NOTE] The HYXI Open API requires a separate developer account registered at open.hyxicloud.com. If your developer email is different from your main HYXI app account, you must Share your Plant from the app to your developer email address to access your data.
import asyncio
import aiohttp
from hyxi_cloud_api import HyxiApiClient
async def main():
# Replace with your actual HYXi Cloud credentials
ACCESS_KEY = "your_access_key"
SECRET_KEY = "your_secret_key"
BASE_URL = "https://open.hyxicloud.com"
async with aiohttp.ClientSession() as session:
# 1. Initialize the client
client = HyxiApiClient(
access_key=ACCESS_KEY,
secret_key=SECRET_KEY,
base_url=BASE_URL,
session=session
)
# 2. Fetch device data
try:
device_data = await client.get_all_device_data()
print("Successfully fetched HYXi data:")
print(device_data)
except Exception as e:
print(f"Error communicating with HYXi Cloud: {e}")
if __name__ == "__main__":
asyncio.run(main())
🛠️ Requirements
- Python 3.11 or newer
aiohttp>= 3.13.3
🔐 Privacy & Debug Logging
When debug logging is enabled, this library automatically masks sensitive identifiers before writing them to the log — no manual redaction needed.
| Field | Behaviour |
|---|---|
Serial numbers (deviceSn, parentSn, batSn) |
Middle characters replaced with X — length preserved for cross-device tracing, e.g. 106XXXXXXXX016 |
Plant IDs (plantId) |
Same X-padding format |
Home/site address (plantAddress) |
Fully redacted → [REDACTED] |
IMEI (gprsImei) |
X-padded |
Masking is deterministic, so parent/child device relationships remain traceable across log lines.
⚠️ Disclaimer
This is an unofficial, community-driven project. It is not affiliated with, endorsed by, or connected to HYXiPower in any official capacity. Use this software at your own risk.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hyxi_cloud_api-1.0.6.tar.gz.
File metadata
- Download URL: hyxi_cloud_api-1.0.6.tar.gz
- Upload date:
- Size: 29.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6de7084385a752db31a5999d2828fd688cdade15ed87d1a956ccf875730dc948
|
|
| MD5 |
712adf20392f622bffca40369a72eb4e
|
|
| BLAKE2b-256 |
2c9130737bb8e685e920c46df2bc7c0ad7cd16d674cb4226d3c49cc0c3092b7d
|
Provenance
The following attestation bundles were made for hyxi_cloud_api-1.0.6.tar.gz:
Publisher:
ci-cd.yml on Veldkornet/hyxi-cloud-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyxi_cloud_api-1.0.6.tar.gz -
Subject digest:
6de7084385a752db31a5999d2828fd688cdade15ed87d1a956ccf875730dc948 - Sigstore transparency entry: 1181994759
- Sigstore integration time:
-
Permalink:
Veldkornet/hyxi-cloud-api@82fae44aa2406bafe9052e684c4d200d46714b9d -
Branch / Tag:
refs/tags/v1.0.6 - Owner: https://github.com/Veldkornet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@82fae44aa2406bafe9052e684c4d200d46714b9d -
Trigger Event:
release
-
Statement type:
File details
Details for the file hyxi_cloud_api-1.0.6-py3-none-any.whl.
File metadata
- Download URL: hyxi_cloud_api-1.0.6-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
939f242564c180b8eed06e4869f0ad48d5bafeadc253d07eba25196c88d0406e
|
|
| MD5 |
73ce0b51e49f44292856e3e87e21cb90
|
|
| BLAKE2b-256 |
801b6a99d0eb9e9c369b1a7202b8615f8104b590f9f50d5003d4b1128448cbf9
|
Provenance
The following attestation bundles were made for hyxi_cloud_api-1.0.6-py3-none-any.whl:
Publisher:
ci-cd.yml on Veldkornet/hyxi-cloud-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyxi_cloud_api-1.0.6-py3-none-any.whl -
Subject digest:
939f242564c180b8eed06e4869f0ad48d5bafeadc253d07eba25196c88d0406e - Sigstore transparency entry: 1181994800
- Sigstore integration time:
-
Permalink:
Veldkornet/hyxi-cloud-api@82fae44aa2406bafe9052e684c4d200d46714b9d -
Branch / Tag:
refs/tags/v1.0.6 - Owner: https://github.com/Veldkornet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@82fae44aa2406bafe9052e684c4d200d46714b9d -
Trigger Event:
release
-
Statement type: