All you need to integrate your EET SolMate into your home automation system - or really any Python-based system! Keep in mind that this is work in progress.
This Python SDK provides a class-based API Client which lets you:
- Login to your SolMate with serial number and password which returns an authentication token.
- Connect to your SolMate with the authentication token.
- Get live values of your SolMate.
- Check if your SolMate is online.
For any inquiries about, or problems with, the usage of this API endpoint, please create an issue in this repository.
Install the package via:
pip install solmate-sdk
Import the SolMateAPIClient
class and connect to your SolMate:
from solmate_sdk import SolMateAPIClient
client = SolMateAPIClient("<YOUR SOLMATE SERIAL NUMBER>")
client.connect()
print(f"Your SolMate online status is: {client.check_online()}")
# or for the protected API:
client.quickstart() # or client.quickstart(password="<YOUR_SOLMATE_PASSWORD>")
print(client.get_live_values())
The SolMate SDK communicates via a Websocket API with your SolMate.
- Quickstart supports multiple serial numbers (and multiple device ids?)
- More Examples
- Full Unit Testing
- Car Charger Example
- Our Homepage: www.eet.energy
- The project on PyPi: pypi.org/project/solmate-sdk
- Read the docs page: https://solmate-sdk.readthedocs.io/en/latest/
- Added async methods and made them public
- Added possibility to provide password to quickstart
- Added possibility to initialize api client with async parameter