Skip to main content

Library to interface an SMA Solar WebConnect module

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 seperate 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-0.7.5.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

pysma-0.7.5-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysma-0.7.5.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for pysma-0.7.5.tar.gz
Algorithm Hash digest
SHA256 ce508611c1b9b668045e148c0cb2a3d3f8a64f588706a969d4ed508663eb25c0
MD5 bf8356a98fed4b2a656efbf19a40de24
BLAKE2b-256 a8de9a43df4bc3350f5ef7db80030e2d2c394f5f7dd58d44ee9bb9ab57e78dd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysma-0.7.5-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for pysma-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ddfa1f6d6aa629e27d7282065c55fbcc633a1af5ecf6ded7c935385816bd463c
MD5 f4aa1bf29f4c324f6d6e6bc8275af5ef
BLAKE2b-256 78baf362e53856ed025eaa4f5353a96e4c6088a7df36d376d23c105d9acbf50d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page