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.2.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

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

pysma-0.7.2-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysma-0.7.2.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pysma-0.7.2.tar.gz
Algorithm Hash digest
SHA256 848add4f46fd5cac355283d9b5043b21a5be1d5f30b80f51c28a3c5d8746cb0f
MD5 6fc5d58d67149d5c6b18497935a0b8f8
BLAKE2b-256 3a86eeab13c592b3f98e28fa9df4d8bb8c5d6f53173ab0c23ccd3f7bbd64c7de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysma-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pysma-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d1350b335c6e7b29bd12851de956ae016c6e355d30e6739638dcbe07c69ec574
MD5 98fb7378c1bdd8b917d9563a78efb19b
BLAKE2b-256 5c8711ac3beba1ed41ed2c0ec59232def5dbb6983a69060cc041c11fe02c515d

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