hamqtt

Crates.iohamqtt
lib.rshamqtt
version0.1.7
created_at2025-06-03 21:00:16.953071+00
updated_at2025-08-30 18:40:17.432734+00
descriptionThis crate is meant to be an easy to go Home Assistant MQTT implementation
homepage
repositoryhttps://codeberg.org/H4K1/HAMqtt
max_upload_size
id1699487
size12,444
H4K1 (justrandomgenerateduser)

documentation

README

HAMqtt

This crate is meant to be an easy to go Home Assistant MQTT implementation

Status

It is in early development stage!

Motivation

Home Assistant uses MQTT discovery to automatically detect sensors, switches, lights, and other devices by subscribing to specific MQTT topics containing JSON configuration payloads. I was not able to find any easy 2 go crate to generate MQTT autodiscovery topic, so I have created one.

Key Concepts

  • Device: Represents a physical or logical device containing one or more sensor components. It includes identifying information such as unique IDs, model, and manufacturer.

  • Component: Represents an individual sensor entity (e.g., temperature, humidity) that publishes sensor data on a specified MQTT topic. Each component is associated with a device.

Usage

See examples folder in the repository

Commit count: 0

cargo fmt