#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

#1324 in Network programming

Download history 223/week @ 2024-02-23 26/week @ 2024-03-01 2/week @ 2024-03-08 305/week @ 2024-03-15 237/week @ 2024-03-22 59/week @ 2024-03-29 126/week @ 2024-04-05 8/week @ 2024-04-12

443 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
~216K SLoC