Skip to main content

Crate zwave_bridge

Crate zwave_bridge 

Source
Expand description

§zwave-bridge

The Z-Wave to MQTT bridge.

Runs a zwave_host::Controller on a serial port and mirrors the network onto an MQTT broker:

TopicDirectionPayload
<base>/bridge/stateout, retainedonline / offline (last will)
<base>/bridge/infoout, retainedcontroller identity
<base>/bridge/eventoutinclusion progress, key grant and PIN prompts
<base>/bridge/request/<action>inJSON arguments
<base>/bridge/response/<action>out{"ok": true, ...} or {"ok": false, "error": ...}
<base>/nodes/<id>out, retainedthe node record
<base>/nodes/<id>/statusout, retainedalive, awake, asleep, dead
<base>/nodes/<id>/<class>/<property>[/<endpoint>]out, retained{"value": .., "unit": .., "time": ..}
.../set on a writable valueinON, OFF, a number, or {"value": ..}

With Home Assistant discovery on, each value gets a config under <prefix>/<component>/<device>/<object>/config the first time it reports.

Part of zwave-bridge, maintained by Pulzar. See the user guide, the library guide and the API documentation.

License: MIT.

Modules§

config
The bridge’s configuration file (TOML).
discovery
Home Assistant MQTT discovery configs for values.

Functions§

load_or_create_keys
Loads keys.json from dir, creating it with fresh keys (mode 0600) on first start.
run
Runs the bridge on port until shutdown completes.