Asynchronous Python library for Refoss smart devices
Project description
aiorefoss
Asynchronous Python library for Refoss smart devices, designed for Home Assistant integration.
Features
- Async WebSocket connection
- Device authentication support for new firmware (EM16P v3.1.11+)
- Automatic auth challenge handling
- Real-time status updates
- Device configuration management
- Cross-platform JSON support (orjson with stdlib fallback)
Installation
pip install aiorefoss
With faster JSON support:
pip install aiorefoss[fastjson]
Quick Start
import asyncio
from aiorefoss.rpc_device.device import RpcDevice
from aiorefoss.common import process_ip_or_options
async def main():
options = await process_ip_or_options("192.168.1.100")
device = await RpcDevice.create(None, options)
await device.initialize()
print(f"Device model: {device.model}")
print(f"Firmware version: {device.firmware_version}")
await device.shutdown()
asyncio.run(main())
Requirements
- Python 3.12+
- aiohttp
- yarl
- orjson (optional, for better performance)
License
MIT
Support
- Email: support@refoss.net
- Issues: https://github.com/ashionky/aiorefoss/issues
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiorefoss-1.0.5.tar.gz
(15.1 kB
view details)
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
aiorefoss-1.0.5-py3-none-any.whl
(16.6 kB
view details)
File details
Details for the file aiorefoss-1.0.5.tar.gz.
File metadata
- Download URL: aiorefoss-1.0.5.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57611b5714a5e420e12f6d3b7e29c115ddab7c7b16abbc692cd1af0636102d20
|
|
| MD5 |
1f5188dfee9f58d3e92b03a95b9f21aa
|
|
| BLAKE2b-256 |
fb280db7aa9078bdc2587e75d2873440270f9441c942d157137090a4cb969c01
|
File details
Details for the file aiorefoss-1.0.5-py3-none-any.whl.
File metadata
- Download URL: aiorefoss-1.0.5-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca1fa0870256a8878ef9b1e0b62cd13479638e3439b2f45a2237447aac2b874e
|
|
| MD5 |
adad4e77522a74630fd8d50b20735558
|
|
| BLAKE2b-256 |
f51282a3aba3cc5e464214dfeadd12d62b06ab289eb5091c40a4ddb17978ae52
|