/pysma

Async library for SMA Solar's WebConnect interface

Primary LanguagePythonMIT LicenseMIT

pysma library

Workflow Status Codecov Documentation Status

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

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

Currently tested on Sunnyboy 1.5 and various other Webconnect models, If you can access your SMA via your browser, this might work for you.

Other SMA interfaces include https://sbfspot.codeplex.com/ 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

By default ssl is disabled (Sunnyboy 1.5 WebConnect uses http://). 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