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.4.tar.gz (15.1 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.4-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiorefoss-1.0.4.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

Hashes for aiorefoss-1.0.4.tar.gz
Algorithm Hash digest
SHA256 bc6e8889f5bef3ebd9860335d4002d3acb96e0368b637544eb0038a2bab4911f
MD5 05f8ec1134603b265272872753770de6
BLAKE2b-256 c698370846f97f5aa7ae94a3f212fcba4d13018671b21d62dde7c8f40e3e0ce9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiorefoss-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 81edd68292ff66977f2244710184a376f00287bfc6ae9cd766d68b152818000a
MD5 ae23f610012756695b9e4098ee283b48
BLAKE2b-256 7adefdd585ef781535eda0072aa3e839ddec6cfe2ae450c036bf5e66bac369ad

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