Skip to main content

Module bridge

Module bridge 

Source
Expand description

The bridge: host events to MQTT, MQTT requests to the host.

Topics, under the base topic (default zigbee):

TopicRetainedWhat
bridge/stateyes{"state":"online"} / "offline" (last will)
bridge/infoyesversion, coordinator, network, join state
bridge/devicesyesevery device and its interview
bridge/eventnojoins, announces, leaves, removals, interviews
bridge/request/<name>norequests: 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>configurablethe device’s state: standard readings and linkquality
<device>/setno{"state":"ON"}, {"brightness":128}, {"color_temp":300}
<device>/reportnoevery attribute report, raw, by cluster and attribute name
<device>/actionnocluster 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 stop resolves or the coordinator fails.