Skip to main content

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

Metadata

Release files for aiorefoss 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiorefoss 1.0.6
File Size Uploaded Provenance Actions
aiorefoss-1.0.6.tar.gz 15.0 kB Without provenance Details for aiorefoss-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiorefoss 1.0.6
File Interpreter ABI Platform Actions
aiorefoss-1.0.6-py3-none-any.whl Python 3 none any Details for aiorefoss-1.0.6-py3-none-any.whl

Total release size: 31.4 kB

Release files / aiorefoss-1.0.6.tar.gz

Download URL aiorefoss-1.0.6.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f95581d8e043965c2a7784195287727a4a7c67621d0aa540121409ed6c47de7c
BLAKE2b-256 checksum
How to use checksums
762dd341599881b987a5e849c69da62160b70d911ab9f69ddc6b484715a88aa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / aiorefoss-1.0.6-py3-none-any.whl

Download URL aiorefoss-1.0.6-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce5aaf5e39114ec2f11f749244a5963cfa918453ec8537ad069f07159ce67262
BLAKE2b-256 checksum
How to use checksums
8e478c90dfb46741677edc8a4124402bc5a48ee27034dd0ee4f66db765474065
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for aiorefoss 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page