Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

haco Home Assistant Control Objects

haco greatly simplifies the process of exposing Home Assistant controls (e.g. Pull-down Lists, Number Sliders, Sensors, etc.) from a device - and handling the communication between both sides.

While the current implementation is in Python, the capability definitions for controls are designed to be shared across different languages. Support for additional languages (namely native support for Tasmota Berry) is planned.

Why MQTT?

You might wonder why we use MQTT instead of directly using Home Assistant's APIs. The reason is flexibility: using MQTT allows haco to target any device or environment that has an MQTT client, not just those that can easily make HTTP requests or run a full HA integration. This makes it ideal for lightweight embedded systems and cross-platform utility.

Why Would I Want Such a Thing?

Integrating custom hardware or scripts with Home Assistant often involves a lot of boilerplate: defining MQTT topics, crafting JSON payloads for discovery, and managing state updates. haco handles the heavy lifting, letting you define your device and its controls in clean, declarative Python.

If you're building a custom IoT device, a script to monitor your system, or just want a simpler way to bridge your code to Home Assistant, then you might find haco useful.

How it Works

haco uses MQTT to communicate with Home Assistant. It automatically generates the discovery configurations required for Home Assistant to "see" your device and its entities. All you need to do is define a Device with some Controls and start the ClientHaco.

Documentation

See Documentation

Metadata

Release files for haco 0.4.6a0

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

Source distribution (sdist)

Source distribution for haco 0.4.6a0
File Size Uploaded Provenance Actions
haco-0.4.6a0.tar.gz 17.6 kB Without provenance Details for haco-0.4.6a0.tar.gz

Built distribution (wheel)

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

Total release size: 40.2 kB

Release files / haco-0.4.6a0.tar.gz

Download URL haco-0.4.6a0.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
28d1c0da12a55d342a03fa4e1d5a369ce7d10ca8d26dc2873e9c3a3fbe8e8506
BLAKE2b-256 checksum
How to use checksums
0a08d3c9ca879cc613a17b64952c1bc0148923722a94a01fa50767df7c16c857
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / haco-0.4.6a0-py3-none-any.whl

Download URL haco-0.4.6a0-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a4d1001a7e2f8eed2627265c13a1775df7b0b988c9a8ef341b625f66b808b1b
BLAKE2b-256 checksum
How to use checksums
fa5fd5645f3c4ffcd04b6844cba0fe7de63eacb6be59ad218aeea149bd9e842f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for haco 0.4.6a0

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.

Release history Release notifications | RSS feed

This release
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