Skip to main content

📻 pyrtl_433

A standalone, dependency-light async client for the rtl_433 HTTP server's WebSocket + /cmd API.

pyrtl_433 speaks the transport/protocol half of an rtl_433 receiver: it connects to one server over a WebSocket, parses the JSON event stream, and drives the HTTP /cmd endpoint that reports and controls the SDR configuration. It also ships the device library — the YAML field mappings that say what each rtl_433 field means (pyrtl_433.library) — plus the pure event-driven classifier an availability policy needs (pyrtl_433.availability).

Deliberate non-scope: this is a client and a data library, not a policy engine. It does not include the Home Assistant integration's entity model, desired-state store, SDR adoption/enforcement, or availability watchdog. It emits normalized, replay-classified events, resolves each field to a descriptor and a transformed value, and gives you the /cmd setter primitive plus the SDR value transforms — you build any higher-level policy on top.

Full documentation: https://rtl-433-hass.github.io/pyrtl_433/latest/

Install

This project is uv-first and is published on PyPI:

uv add pyrtl_433

From a clone of this repository: uv pip install .. See Getting Started for pip and other options.

Quick start

Inject an aiohttp.ClientSession, construct the client, and consume events with async for event in client (or an on_event callback):

import asyncio

import aiohttp

from pyrtl_433 import Rtl433Client


async def main() -> None:
    async with aiohttp.ClientSession() as session:
        client = Rtl433Client("192.0.2.10", session=session)
        await client.start()
        try:
            async for event in client:
                if event.is_replay:
                    continue  # already-seen / stale-gap frame; seed only, don't act
                print(event.device_key, event.model, event.fields)
        finally:
            await client.stop()


asyncio.run(main())

See the Quick Start guide for the callback style, the full constructor signature, and SDR /cmd writes.

Documentation

License

Apache-2.0. This library was extracted from the transport/protocol code and the device-mapping library of the rtl-433-hass/rtl_433 Home Assistant integration. See LICENSE and NOTICE for the source modules and attribution.

Pull request documentation previews

Netlify builds the documentation using netlify.toml and publishes site/. The build uses Python 3.14 and docs/requirements.txt, then runs mkdocs build --strict from the repository root. The preview opens the branch's current documentation directly, without the published version directories.

To enable previews, create a Netlify project by importing this GitHub repository, select main as the production branch, and keep Deploy Previews enabled for pull requests. Netlify reads the build settings from netlify.toml once it is merged. Each PR gets a URL such as https://deploy-preview-123--your-project.netlify.app. No additional GitHub Actions workflow or Netlify API token is required. The existing GitHub Pages workflow continues to publish the versioned docs; Netlify also publishes main at its own netlify.app URL.

See Netlify's repository setup guide and Deploy Preview documentation.

Metadata

Release files for pyrtl-433 0.5.0

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

Source distribution (sdist)

Source distribution for pyrtl-433 0.5.0
File Size Uploaded Provenance Actions
pyrtl_433-0.5.0.tar.gz 154.6 kB With provenance Details for pyrtl_433-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyrtl-433 0.5.0
File Interpreter ABI Platform Actions
pyrtl_433-0.5.0-py3-none-any.whl Python 3 none any Details for pyrtl_433-0.5.0-py3-none-any.whl

Total release size: 224.2 kB

Release files / pyrtl_433-0.5.0.tar.gz

Download URL pyrtl_433-0.5.0.tar.gz
Size 154.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a000eed766c1b172fc363204452a55bdf6d496baffe8a3320e4bdaf0cdaebb99
BLAKE2b-256 checksum
How to use checksums
b55bc3104e9b136e038f4eb9ef8b5304f1920b3cddf1a403266f7c44be7cb696
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / pyrtl_433-0.5.0-py3-none-any.whl

Download URL pyrtl_433-0.5.0-py3-none-any.whl
Size 69.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef82bed7224cae81a2dc792316921da5e542e9bb94dbf9b90995586248146bc3
BLAKE2b-256 checksum
How to use checksums
76ffb5ed3f787e94fe681b8ba52b667a7cc2b807aab9b745da34be5a6be22d04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for pyrtl-433 0.5.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyrtl_433-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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