hamqtt

Crates.iohamqtt
lib.rshamqtt
version0.1.10
created_at2025-06-03 21:00:16.953071+00
updated_at2025-11-04 19:51:55.765009+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
size14,970
H4K1 (justrandomgenerateduser)

documentation

README

HAMqtt

CICD Status

This crate is meant to be an easy to go Home Assistant MQTT implementation. It does not use Rust standard library, thus it can be run on bare-metal embedded devices, as well as can be integrated with systems with standard library. For more details on no_std check the Rust Book

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