Skip to main content

Library to interface an SMA Solar devices

Project description

pysma library

Workflow Status Codecov Documentation Status

SMA Webconnect library for Python 3. The library was created to integrate SMA inverters with HomeAssistant

See http://www.sma-solar.com for more information on the SMA solar inverters

Other SMA interfaces include SBFspot and a Python adaptation

Example usage

See example.py for a basic usage and tests

Home Assistant

The Home Assistant sma sensor documentation can be found here


This library uses Webconnect. Modbus is not supported

If you can access your SMA via your browser, this might work for you.


If you access your SMA WebConnect via https:// you should set both ssl: true and verify_ssl: false.

Daily usage is not always available from the SMA WebConnect interface. It is possible to get around this by using a utility meter or more recently from the Energy management feature in Home Assistant

How to debug this addon

  1. Ensure you can access your SMA from your browser

To enable detailed logging in Home Assistant, you can add the following to your configuration

logger:
  default: info
  logs:
    homeassistant.components.sma: debug
    pysma: debug

Energy Meter

This library can read the second version of the emnergy meter, there is a separate Home Assistant OS Addon that could also read older Energy Meters directly. See Energy Meter

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

pysma-1.1.4.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

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

pysma-1.1.4-py3-none-any.whl (2.4 MB view details)

Uploaded Python 3

File details

Details for the file pysma-1.1.4.tar.gz.

File metadata

  • Download URL: pysma-1.1.4.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pysma-1.1.4.tar.gz
Algorithm Hash digest
SHA256 fd62d66ee846e3c306f2c11b52e44e7c6ea21c560c46d4f27c03d5a05b30087c
MD5 3473b9fa97fba705bc608c1ab81d19c3
BLAKE2b-256 716c70d4990e2a71b5cfadf8da12c1e2a9865f616fc5bf41ac15e406cb4dca6b

See more details on using hashes here.

File details

Details for the file pysma-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: pysma-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pysma-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a0721543da312448217a4b6f72b93969393691a371261622a4da3ddf5b63d232
MD5 b8bfe4f0a5ba8adb9e5fda8bf391fee8
BLAKE2b-256 15f592e0de99c7c06337e251181f713d68966ff2226cd4679cb96a24e95c06a4

See more details on using hashes here.

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