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.5.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.5-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

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

Hashes for aiorefoss-1.0.5.tar.gz
Algorithm Hash digest
SHA256 57611b5714a5e420e12f6d3b7e29c115ddab7c7b16abbc692cd1af0636102d20
MD5 1f5188dfee9f58d3e92b03a95b9f21aa
BLAKE2b-256 fb280db7aa9078bdc2587e75d2873440270f9441c942d157137090a4cb969c01

See more details on using hashes here.

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

Hashes for aiorefoss-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ca1fa0870256a8878ef9b1e0b62cd13479638e3439b2f45a2237447aac2b874e
MD5 adad4e77522a74630fd8d50b20735558
BLAKE2b-256 f51282a3aba3cc5e464214dfeadd12d62b06ab289eb5091c40a4ddb17978ae52

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