MQTT bridge for BondHome API. See http://docs-local.appbond.com
This program does two things:
- Relay commands received via MQTT to the Bond Bridge API
- Update MQTT topics with device status (subscribed via BPUP1)
On startup, the bondhome-mqtt
program gets a list of all devices connected
to the Bond Home Bridge and sets up the following MQTT topics for each device:
bondhome/devices/<device id>/<action>
for triggering actions
bondhome/devices/<device id>/state
for publishing device state
go run main.go -broker tcp://<host>:<port> -bridge <ip> -token <token>
-broker
the address of the MQTT broker, in the formtcp://<host>:<port>
-bridge
the IP address of the Bond bridge-token
the Bond API token, see 2 for instructions on getting the correct value-logtostderr
enables additional logging output (by default, only warnings and errors will be logged)-v=N
enables verbose logging at levelN
A pre-built Docker image is available: docker pull docker pull ghcr.io/ssmall/bondhome-mqtt:v1.0.0