Skip to main content

SMA ennexOS Cloud

Python library for interacting with the SMA ennexOS / Sunny Portal API.

Uses PKCE OAuth2 to authenticate and provides typed access to PV plant data (current power, daily energy, plant info). No browser required.

Installation

pip install sma_ennexos_cloud

Usage

from sma_ennexos_cloud import SmaClient

client = SmaClient(username="your@email.com", password="your-password")
client.login()

plant_name = client.get_plant_name()
power = client.get_current_power()
energy = client.get_daily_energy()

print(f"Plant: {plant_name}")
print(f"Power: {power.value} W")
print(f"Daily energy: {energy.wh} Wh")
client.close()

Checking Live Data Status (Public Statuspage)

You can check whether SMA ennexOS Live Data is operational or under maintenance:

from sma_ennexos_cloud import get_live_data_status

status = get_live_data_status()
print(status)  # "operational" or "under_maintenance"

Or via SmaClient:

client = SmaClient(username="...", password="...", check_portal_status=True)
status = client.get_live_data_status()  # "operational" or "under_maintenance"

API

Method Returns Description
login() — PKCE OAuth2 login
get_current_power() PowerData Live PV power in watts
get_daily_energy() EnergyData Today's total energy in Wh
get_plant_name() str Name of your PV plant
get_weather() WeatherData Weather conditions, temperature, and tomorrow's forecast
get_live_data_status(force_refresh=False) str Live Data status (operational, under_maintenance, etc.)
close() — Close HTTP session

Standalone Functions

Function Returns Description
get_live_data_status(session=None, timeout=10.0) str Fetch ennexOS Live Data status without login

Development

pip install -e ".[dev]"
pytest

Metadata

Release files for sma-ennexos-cloud 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sma-ennexos-cloud 0.2.4
File Size Uploaded Provenance
sma_ennexos_cloud-0.2.4.tar.gz 15.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sma-ennexos-cloud 0.2.4
File Interpreter ABI Platform
sma_ennexos_cloud-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 27.3 kB

Release files / sma_ennexos_cloud-0.2.4.tar.gz

Download URL sma_ennexos_cloud-0.2.4.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7b15d6efbbbea11913239c4b57994289299b2b009858cba4aa9d204a4c2703dd
BLAKE2b-256 checksum
How to use checksums
7e00be4530d43aee78b74f15220bf336dc7a56b63712b88046f1b7635dbf5033
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release files / sma_ennexos_cloud-0.2.4-py3-none-any.whl

Download URL sma_ennexos_cloud-0.2.4-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d16b718d3bfbd5e6ea81a318dd98759c0f5837b192f0d2fdf6087d1b59f5ff9c
BLAKE2b-256 checksum
How to use checksums
f331f21a6cfaa8634f91d26ebe063eca3798680b15bed4d01e854e057278ead3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Security for sma-ennexos-cloud 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sma_ennexos_cloud-0.2.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page