Metadata-Version: 2.1
Name: python-systemair-saveconnect
Version: 3.0.0rc2
Summary: A python interface for the SaveConnect API
License: MIT
Keywords: systemair,saveconnect,home-automation
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
Requires-Dist: aiohttp (==3.8.1)
Requires-Dist: gql[all] (==3.4.0)
Requires-Dist: python-keycloak (==2.1.1)
Requires-Dist: beautifulsoup4 (==4.11.1)
Requires-Dist: httpx (==0.23.0)
Requires-Dist: pydantic (==1.9.1)
Requires-Dist: importlib-metadata

python-systemair-saveconnect
============================

This is a simple package that expose the SaveConnect API as a python
module.

Installation
============

.. code:: python

   pip install python-systemair-saveconnect

Example
=======

.. code:: python

   from systemair.saveconnect import SaveConnect
   email = ""
   password = ""

   sc = SaveConnect(
       email=email,
       password=password,
       ws_enabled=True,
       update_interval=60,
       refresh_token_interval=300
   )

   # Authenticate
   if not await sc.login():
       raise RuntimeError("Could not connect to systemAIR")

   # Refresh Token
   await sc.auth.refresh_token()

   devices = await sc.get_devices()
   device_0 = devices[0]["identifier"]

   device_0_data = await sc.read_data(device_id=device_0)

Version History
===============

-  3.0.0 - Updated to work with SaveConnect
-  1.0.0 - Initial Version
