Skip to main content

Home Assistant Control Objects

Project description

haco Home Assistant Control Objects

haco is a to greatly simplify 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

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

haco-0.3.4a7.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

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

haco-0.3.4a7-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file haco-0.3.4a7.tar.gz.

File metadata

  • Download URL: haco-0.3.4a7.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for haco-0.3.4a7.tar.gz
Algorithm Hash digest
SHA256 2dfd21a045c5fc7660e8a6aeb9eb0dca7b08cf724b1fbc284af43285cde78e9f
MD5 5becc13f8e1de6ecbcab5b9eda3740da
BLAKE2b-256 a6f1e233ac398e6c7949d00c05ce3559b9f687a71f59dc7935e0f3db51b01350

See more details on using hashes here.

File details

Details for the file haco-0.3.4a7-py3-none-any.whl.

File metadata

  • Download URL: haco-0.3.4a7-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for haco-0.3.4a7-py3-none-any.whl
Algorithm Hash digest
SHA256 90da9c4df69e3d8a4b40654e73719d1aa275e0325f7604cd2808db4e3530a91b
MD5 4bd86c2318d1ae8114c0527c62d9af3f
BLAKE2b-256 53bc2d533870f5dc93267e82b8d2a329b2f6271615cacd95568ac903b03fe84d

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