Metadata-Version: 2.1
Name: pysma-plus
Version: 0.3.7
Summary: Library to interface SMA Devices via WebConnect, EnnexOS and Energy Meter Devices
Home-page: https://github.com/littleyoda/pysma
Download-URL: https://github.com/littleyoda/pysma/tarball/0.3.7
Author: Sven Bursch-Osewold, Johann Kellerman and other
Author-email: Sven Bursch-Osewold <sb_pysma@bursch.com>, Johann Kellerman <kellerza@gmail.com>
License: - The webconnect Interface was created by kellerza.
        - Engery-Meter and EnnexOS Support was added by little.yoda.
        - Parts of the SMA-Query-Library (https://github.com/Wired-Square/sma-query/) by Garth Berry
          was added to this library and heavy modified by little.yoda
        - ssdp based on homeassistantcore/homeassistant/components/emulated_hue/upnp.py
        
        
        --------------
        
        The MIT License (MIT)
        
        Copyright (c) 2016 kellerza
        Copyright (c) 2021 Garth Berry
        Copyright (c) 2024 little.yoda
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
        
        
Project-URL: Homepage, https://github.com/littleyoda/pysma
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp<4,>3.3
Requires-Dist: attrs>18
Requires-Dist: jmespath<2
Requires-Dist: dataclasses-struct>0.8
Requires-Dist: untangle>=1.2.1
Requires-Dist: pymodbus>=3.6.9
Requires-Dist: xmlschema>=3.3.0

# pysma-plus library

Unofficial and unaffiliated Python 3 library to retrieve data from various [SMA](https://www.sma.de/) devices.
Based on the Webconnect implementation of the [pysma lib from kellerza](https://github.com/kellerza/pysma), the number of supported devices has been massively increased by this implementation.

This library is the basis for a [Home Assistant Integration](https://github.com/littleyoda/ha-pysmaplus).

Supported Devices:
* Devices with Webconnect-Interface
* Devices based on ennexOS e.g. the Tripower X series released in 2022
* SMA Energy Meter (EMETER-10, EMETER-20) und Sunny Home Manager 2.0 (hm-20/shm2)
* Almost all SMA devices through the use of Speedwire (with a reduced range of measured values compared to the other interfaces)

The long-term goal is to integrate the change into the original library.

## Example usage

See [example.py](./example.py) for a basic usage and tests

## Successfully tested devices

| Bereich | Gerät | Method |
|--|--|--|
| Wechselrichter | Tripower X (STP XX-50)<br>(15,25) | ennexos |
| Hybrid-Wechselrichter | Sunny Tripower Smart Energy<br>(10.0)  | webconnect |
| Hybrid-Wechselrichter | Sunny Boy Storage<br>(SBS3.7-10, SBS5.0-10) | webconnect |
| | | |
| Energy Meter | Energy Meter 2<br>(EMTER 20) | speedwireEM |
| Energy Meter | Sunny Home Manager 2<br>(SHM2) | speedwireEM |
| | | |
 

