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 untilstopresolves.stage_restorestages a backup, aszigbee-bridge restoredoes.config::Configis the configuration file;Config::from_tomlparses one with every check the binary applies.exposesmaps standard clusters to state fields and Home Assistant discovery messages.bridgeis the topic scheme and request handling.
The MQTT API and configuration reference document the behavior.