Metadata-Version: 2.1
Name: plum-econet
Version: 0.1.1
Summary: Api wrapper for Plum Econet devices
Author-email: Paweł Tomak <pawel@tomak.eu>
Project-URL: Homepage, https://gitlab.com/bulgur/plum-econet
Project-URL: Bug Tracker, https://gitlab.com/bulgur/plum-econet/-/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# Plum Econet api wrapper

This package aims to simplify using Plum Econet api available via local network.

Based on and tested with local router connected to HKS Lazar SmartFire pellet furnace.

# Basic usage

```python
import asyncio
from plum_econet import Smartfire

async def main():
    smartfire = Smartfire("<host>", "username", "password")
    await smartfire.setup()
    await smartfire.update()
    print(f"Current temperature {smartfire.central_heating.temperature}")
    print(f"Target temperature {smartfire.central_heating.target_temperature}")
    await smartfire.central_heating.set_target_temperature(30)
    await asyncio.sleep(5)
    await smartfire.update()
    print(f"Target temperature {smartfire.central_heating.target_temperature}")

if __name__ == "__main__":
    asyncio.run(main())
```
