Configuration
All bridges use the same top-level shape:
yaml
mqtt:
host: mqtt.example.net
clientId: wled-mqtt-bridge
instances:
- id: unique-instance-name
enabled: true
topic: home/example
# device-specific fieldsmqttconfigures the single shared broker connection.mqtt.clientIdmay be empty; the bridge generates a UUID for the running process.- HTTP settings are environment variables:
HOSTdefaults to0.0.0.0,PORTdefaults to3000, andCORS_ORIGINdefaults to*. Dotenv loads.envfrom the working directory; Docker Compose environment values take precedence. - Every
instances[].idandinstances[].topicmust be unique.
WLED MQTT Bridge example
yaml
mqtt:
host: mqtt.example.net
clientId: wled-mqtt-bridge
username: mqtt-user
password: change-me
instances:
- id: desk
topic: home/wled/desk
host: 192.168.1.30
pingInterval: 15000
pongTimeout: 5000
reconnectInterval: 15000
- id: kitchen
topic: home/wled/kitchen
host: 192.168.1.31Do not commit passwords, API usernames, or generated *.auth.json files.