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

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

#5 in #home-assistant


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
~217K SLoC