Skip to main content

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

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.3.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiorefoss-1.0.3-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file aiorefoss-1.0.3.tar.gz.

File metadata

  • Download URL: aiorefoss-1.0.3.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for aiorefoss-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b1f8979b6dcc0eb50150442d1b239370c7c837e9ab8ad8560d93a60d3af7bada
MD5 11fbd19dcf8c44aa8a1192c8a7c3e4fd
BLAKE2b-256 b22635a6457f4065131b9f859beff25f20eff1dc87f925673b778f197f9e3b27

See more details on using hashes here.

File details

Details for the file aiorefoss-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: aiorefoss-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for aiorefoss-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 22a1b861c70db15599b6c5d1b2980ef0422fc7e46ec5ca11850484aa3f99531f
MD5 cbcd2ceabfa42f065e4637711db84132
BLAKE2b-256 75bf310ebe04f597c9a0be7ea76b6bf6f53260cdc78ab9a5c82328d04fd44d87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page