$npx skillfedfor your agent

pysma

Library to interface an SMA Solar devices

With conditionsPyPI MonitoringReleased Jun 202675.4K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pysma-1.1.6-py3-none-any.whl
v1.1.6 · released 2026-06-30 · Python >=3.12 · 2 runtime deps: aiohttp, jmespath

Yes, if you own an SMA inverter with WebConnect access and need programmatic monitoring. The library is actively maintained, has no known vulnerabilities, low install friction, and integrates well with Home Assistant. Not suitable if your inverter uses Modbus or lacks WebConnect, or if you require Python versions below 3.12.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.12 or later; SMA inverter must be accessible via WebConnect on the local network.
  • Low friction installation with only two lightweight runtime dependencies (aiohttp and jmespath).
  • Actively maintained with recent commits; supports modern Python versions.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both personal and commercial projects.

last release 2026-06-30 (45 days) · last repo commit 2026-08-04 · 65 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 75,369 downloads/mo, #14,722 on PyPI

Verify before relying

pip install pysma

import asyncio
from pysma import SMAConnection

async def main():
    async with SMAConnection(host='inverter.local') as conn:
        data = await conn.get_values()
        print(data)

asyncio.run(main())
  • Whether the library supports all SMA inverter models or only specific versions.
  • Performance characteristics when polling multiple inverters or high-frequency data collection.
  • Exact data fields and metrics available through the WebConnect interface.
  • Whether daily usage metrics are directly available or require external workarounds.
Same gist for agents: .md · .json

What it is and what it does

pysma is a Python library that communicates with SMA solar inverters through their WebConnect HTTP interface. It abstracts the WebConnect protocol to let you query real-time power output, cumulative energy, and device status without writing raw HTTP requests. The library is async-first, using aiohttp for non-blocking network calls, and integrates directly with Home Assistant's SMA sensor component for home automation workflows.

The library reads inverter data over HTTP/HTTPS (with optional SSL verification control) and parses responses using jmespath. It's designed for monitoring setups where you have browser access to your SMA device's web interface and want programmatic access to the same data. Note that Modbus is not supported—only WebConnect.

Use it for

  • Monitor real-time solar power generation in Home Assistant dashboards.
  • Log inverter output to a time-series database for long-term energy analysis.
  • Trigger automations based on solar production thresholds.
  • Read energy meter data from SMA devices for consumption tracking.
  • Build custom monitoring scripts for solar systems.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you own an SMA inverter with WebConnect access and need programmatic monitoring.

The library is actively maintained, has no known vulnerabilities, low install friction, and integrates well with Home Assistant. Not suitable if your inverter uses Modbus or lacks WebConnect, or if you require Python versions below 3.12.

Install

pysma on PyPI

Before you install

Low friction installation with only two lightweight runtime dependencies (aiohttp and jmespath). Actively maintained with recent commits; supports modern Python versions.

Requires Python 3.12 or later; SMA inverter must be accessible via WebConnect on the local network.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both personal and commercial projects.

Quickstart

pip install pysma

import asyncio
from pysma import SMAConnection

async def main():
    async with SMAConnection(host='inverter.local') as conn:
        data = await conn.get_values()
        print(data)

asyncio.run(main())

Verify before relying

  • Whether the library supports all SMA inverter models or only specific versions.
  • Performance characteristics when polling multiple inverters or high-frequency data collection.
  • Exact data fields and metrics available through the WebConnect interface.
  • Whether daily usage metrics are directly available or require external workarounds.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.12
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
aiohttpjmespath
MaintenanceActively maintained 45 days since the last release
Last repo commit
First released
Downloads75,369 / month, #14,722 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: pysma-1.1.6-py3-none-any.whl

Tags

Capabilities
SMA inverter monitoringsolar energy data APISMA WebConnect librarysolar inverter telemetryhome automation solar integration
Topics
solar-energyhome-automationasync-io

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “SMA inverter monitoring”

  • pysmaConnects to SMA solar inverters via their WebConnect interface to…
  • goodweConnects to GoodWe solar inverters over local network to retrieve…
  • growattServerRetrieves photovoltaic system information from Growatt inverter…

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also pysmappee · goodwe · pysml · pyenphase · growattServer · huawei-solar · sense-energy · dlms-cosem · systembridgeconnector · NREL-PySAM