Skip to content

zigbee-bridge (crate)

The bridge as a library: the same code as the binary, for programs that want to run it in-process or reuse its parts. API docs.

  • run(config, stop) opens the coordinator, starts, resumes or restores the network, connects to MQTT, and bridges until stop resolves.
  • stage_restore stages a backup, as zigbee-bridge restore does.
  • config::Config is the configuration file; Config::from_toml parses one with every check the binary applies.
  • exposes maps standard clusters to state fields and Home Assistant discovery messages.
  • bridge is the topic scheme and request handling.

The MQTT API and configuration reference document the behavior.