Skip to main content

An async API client for HYXi Cloud.

Project description

hyxi-cloud-api

Security Shield PyPI version CI/CD Pipeline Python Versions OpenSSF Baseline

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyxi_cloud_api-1.0.10.tar.gz (36.8 kB view details)

Uploaded Source

Built Distribution

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

hyxi_cloud_api-1.0.10-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file hyxi_cloud_api-1.0.10.tar.gz.

File metadata

  • Download URL: hyxi_cloud_api-1.0.10.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hyxi_cloud_api-1.0.10.tar.gz
Algorithm Hash digest
SHA256 17f80f7e4c6516081cb917389d0b228e9271df19a4269296205182044ce1b257
MD5 f40e41755c70e44c046206989a49cfa9
BLAKE2b-256 bfd6601bec2ecaa6b94cd7d4f1f72eacbc1222f74b63ef31a0220dd8b4bdc82b

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyxi_cloud_api-1.0.10.tar.gz:

Publisher: ci-cd.yml on Veldkornet/hyxi-cloud-api

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

File details

Details for the file hyxi_cloud_api-1.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for hyxi_cloud_api-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 de64ed9b25388225241c83c2ce1d84c9717459b2de3356c62fa8d815dcdc0655
MD5 994d5ee651d95365d9fe99e23cb2d991
BLAKE2b-256 a54582980532218704d7e132b916546381d2a07dacdcd0ceffb9e976186575d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyxi_cloud_api-1.0.10-py3-none-any.whl:

Publisher: ci-cd.yml on Veldkornet/hyxi-cloud-api

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