Crates.io | hamqtt |
lib.rs | hamqtt |
version | 0.1.7 |
created_at | 2025-06-03 21:00:16.953071+00 |
updated_at | 2025-08-30 18:40:17.432734+00 |
description | This crate is meant to be an easy to go Home Assistant MQTT implementation |
homepage | |
repository | https://codeberg.org/H4K1/HAMqtt |
max_upload_size | |
id | 1699487 |
size | 12,444 |
This crate is meant to be an easy to go Home Assistant MQTT implementation
It is in early development stage!
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.
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.
See examples
folder in the repository