Expand description
The bridge: host events to MQTT, MQTT requests to the host.
Topics, under the base topic (default zigbee):
| Topic | Retained | What |
|---|---|---|
bridge/state | yes | {"state":"online"} / "offline" (last will) |
bridge/info | yes | version, coordinator, network, join state |
bridge/devices | yes | every device and its interview |
bridge/event | no | joins, announces, leaves, removals, interviews |
bridge/request/<name> | no | requests: permit_join, remove, rename, install_code, interview, backup, topology, scan_neighbors, energy_scan, change_channel, ota_check, ota_update |
bridge/response/<name> | no | {"status":"ok","data":...} or {"status":"error","error":...}, echoing transaction |
<device> | configurable | the device’s state: standard readings and linkquality |
<device>/set | no | {"state":"ON"}, {"brightness":128}, {"color_temp":300} |
<device>/report | no | every attribute report, raw, by cluster and attribute name |
<device>/action | no | cluster commands the device sends (buttons, alarms) |
<device> is the name a person gave it, or its IEEE address as
0x00124b0001020304. Keys never appear on MQTT.
Structs§
- Bridge
- Bridge state between events.
Constants§
- VERSION
- The bridge’s version.
Functions§
- run_
loop - Run the bridge until
stopresolves or the coordinator fails.