| Crates.io | hamqtt |
| lib.rs | hamqtt |
| version | 0.1.10 |
| created_at | 2025-06-03 21:00:16.953071+00 |
| updated_at | 2025-11-04 19:51:55.765009+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 | 14,970 |
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
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