Metadata-Version: 2.5
Name: renson-healthbox-go
Version: 0.1.2
Summary: Async client for the local Renson Healthbox Go API
Project-URL: Homepage, https://github.com/royhenkemans/renson-healthbox-go
Project-URL: Issues, https://github.com/royhenkemans/renson-healthbox-go/issues
Project-URL: Source, https://github.com/royhenkemans/renson-healthbox-go
Author: Roy Henkemans
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: AsyncIO
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Home Automation
Requires-Python: >=3.11
Requires-Dist: aiohttp>=3.9.0
Provides-Extra: test
Requires-Dist: pytest-asyncio>=0.23; extra == 'test'
Requires-Dist: pytest-cov>=5; extra == 'test'
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# renson-healthbox-go

Fully asynchronous Python client for the unauthenticated local HTTP API of the
Renson Healthbox Go. The caller injects an `aiohttp.ClientSession`, making the
library suitable for Home Assistant and other asyncio applications.

```python
from aiohttp import ClientSession
from renson_healthbox_go import HealthboxGoApi

async with ClientSession() as session:
    client = HealthboxGoApi("192.168.1.50", session)
    info = await client.async_get_info()
    data = await client.async_update()
    await client.set_manual_override(50, 600)
```

This is an unofficial project and is not affiliated with Renson.

## Transport behaviour

Version 0.1.2 serializes requests per client, including reads and writes.
Use one client per device and reuse the caller-owned session. Separate clients
do not share locks. Complete polls are also serialized and read all eight
endpoints sequentially, with live data first. There is no background polling
inside the library; the caller determines the interval.

GET transport failures receive one additional attempt after 0.5 seconds.
Requests time out after 10 seconds per attempt; complete polls after 30 seconds.
No extra application retry is performed for PUT, HTTP errors or invalid JSON.
The supplied aiohttp session may itself retry an idempotent request on a stale
persistent connection. The library never changes or closes the caller's session.
Response context managers guarantee cleanup on failure and cancellation.

Connection errors contain method, endpoint, host, attempt count and exception
type. A complete-poll timeout reports the host and overall budget. Optional
endpoint failures are omitted and logged at debug level, without stale caching.

Run the regression suite with `python -m pip install -e '.[test]'` followed by
`python -m pytest`. It includes local HTTP-server tests and simulated transport
failures; no real device is needed.
