#mqtt #smart-home #iot #home-assistant

homeassistant-agent

A crate for implementing MQTT-based Home Assistant integrations

10 releases

0.2.0 Apr 7, 2024
0.2.0-alpha.8 Mar 27, 2024
0.2.0-alpha.1 Feb 23, 2024
0.1.0 Feb 23, 2024

#1390 in Network programming

Download history 159/week @ 2024-02-18 82/week @ 2024-02-25 9/week @ 2024-03-03 2/week @ 2024-03-10 432/week @ 2024-03-17 125/week @ 2024-03-24 53/week @ 2024-03-31 122/week @ 2024-04-07 2/week @ 2024-04-14

185 downloads per month
Used in resymo-agent

Apache-2.0

26KB
601 lines

Home Assistant Agent

crates.io docs.rs GitHub release (latest SemVer) CI

This crates helps in creating devices for Home Assistant MQTT integration.

[!IMPORTANT]
This is an early experiment.

ToDos

These are just some high-level notes:

  • More type-safety: A switch needs a command topic, a binary sensor must send binary data
  • Device topics must be more flexible, the command base is not a requirement
  • Higher level abstractions for creating/managing sensors/devices

Dependencies

~5–16MB
~214K SLoC