https://github.com/kellerza/pysma
Async library for SMA Solar's WebConnect interface
https://github.com/kellerza/pysma
hacktoberfest homeassistant python sma
Last synced: 3 months ago
JSON representation
Async library for SMA Solar's WebConnect interface
- Host: GitHub
- URL: https://github.com/kellerza/pysma
- Owner: kellerza
- License: mit
- Created: 2016-12-28T19:37:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-08-19T19:35:15.000Z (almost 2 years ago)
- Last Synced: 2025-04-03T18:15:21.589Z (3 months ago)
- Topics: hacktoberfest, homeassistant, python, sma
- Language: Python
- Homepage:
- Size: 181 KB
- Stars: 61
- Watchers: 7
- Forks: 53
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pysma library
[](https://github.com/kellerza/pysma/actions)
[](https://codecov.io/gh/kellerza/pysma)
[](https://pysma.readthedocs.io/en/latest/?badge=latest)SMA Webconnect library for Python 3. The library was created
to integrate SMA inverters with HomeAssistantSee for more information on the SMA solar
invertersOther SMA interfaces include [SBFspot](https://github.com/SBFspot/SBFspot/) and a
Python [adaptation](https://github.com/TD22057/T-Home/)## Example usage
See [example.py](./example.py) for a basic usage and tests
# Home Assistant
The Home Assistant sma sensor documentation can be found
[here](https://www.home-assistant.io/components/sma)> ---
>
> **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](https://www.home-assistant.io/components/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
```yaml
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](https://github.com/kellerza/hassio-sma-em)