Async client for the ConnectSense Rebooter Pro local HTTPS API
Project description
ConnectSense Rebooter Pro Client
Async Python client for the local HTTPS API exposed by the ConnectSense Rebooter Pro. It wraps the device endpoints so they can be reused from any project or packaged for PyPI.
Installation
pip install rebooterpro-async
Usage
import asyncio
from rebooterpro_async import RebooterProClient
async def main():
client = RebooterProClient("rebooter-pro.local")
info = await client.get_info()
await client.set_outlet_state(True) # turn outlet on
await client.push_webhook("https://example.com/ha-webhook", token="secret")
await client.aclose()
asyncio.run(main())
Features
- Async aiohttp transport with optional injected session.
- Bundled device CA for hostname validation; IP targets fall back to
ssl=False. - Helpers for
/info,/config,/control,/notifyendpoints. - Simple helper to build the device webhook payload:
build_webhook_payload(). - MIT licensed; source and issues live at https://github.com/connectsense/rebooterpro-async.
Notes
- The client is intentionally transport-only: it does not manage application state or option schemas.
- When you target the device by IP address, TLS verification is disabled (
ssl=False) to avoid hostname mismatch errors.
Home Assistant integration hint
If you want to swap direct aiohttp calls, initialize the client with session and SSL helper:
session = async_get_clientsession(hass)
ssl_ctx = await get_aiohttp_ssl(hass, entry)
client = RebooterProClient(entry.data[CONF_HOST], session=session, ssl_context=ssl_ctx)
await client.set_outlet_state(True)
Releases & automation
- Tagged releases (
v*) trigger the GitHub Actions workflow in.github/workflows/publish.ymlto build sdist/wheel and publish to PyPI usingPYPI_API_TOKEN. - Make sure the GitHub repository has Issues enabled (required for device/service libraries). Consider adding an issue template tailored to your consumers.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rebooterpro_async-0.1.0.tar.gz.
File metadata
- Download URL: rebooterpro_async-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfb2f16a8d9a658939feaebec61cae7d8fa2d6889781839648f17835e7df5e12
|
|
| MD5 |
bb8b31701a2cb49bff0f76bdb6acb457
|
|
| BLAKE2b-256 |
7ab78a7dfd8df27dc3ac674c6cfff2b7c2fba27198d0f1e246d10cd3fbd24e9b
|
File details
Details for the file rebooterpro_async-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rebooterpro_async-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c12566f5dc024f3e5c2ff57a5dfe7f743e8fa5d4fe80daf9990e78e2932a6f93
|
|
| MD5 |
f503980afd2c8b416569794ca6a43fda
|
|
| BLAKE2b-256 |
ab6a9314355960ca87e13a3eacaa687c7ee93de58118b60162de5836210fc79b
|