I have the latest HA OS installed on a rpi4 where i am running the Mosquitto MQTT broker.
I want HA Mqtt broker to connect (bridge) to another broker running on my lan (Victron GX) .
Have added the file /etc/mosquitto.conf and /share/mosquitto/mosquitto.config Both i have added the following.
connection Victron
address 192.168.8.144:1883
topic N/c0847dc9a396/# in
topic R/c0847dc9a396/# out
The reason that i added it to /etc/mosquitto.conf is that the Mosquitto logs on my HA refers to it
See below
[15:52:09] INFO: Setup mosquitto configuration
[15:52:09] WARNING: SSL not enabled - No valid certs found!
[15:52:10] INFO: No local user available
[15:52:10] INFO: Initialize Hass.io Add-on services
[15:52:10] INFO: Initialize Home Assistant discovery
[15:52:10] INFO: Start Mosquitto daemon
1611586330: mosquitto version 1.6.3 starting
1611586330: Config loaded from /etc/mosquitto.conf.
1611586330: Loading plugin: /usr/share/mosquitto/auth-plug.so
1611586330: |-- *** auth-plug: startup
1611586330: ├── Username/password checking enabled.
1611586330: ├── TLS-PSK checking enabled.
1611586330: └── Extended authentication not enabled.
1611586330: Opening ipv4 listen socket on port 1883.
1611586330: Opening ipv6 listen socket on port 1883.
1611586330: Opening websockets listen socket on port 1884.
1611586330: Warning: Mosquitto should not be run as root/administrator.
1611586333: New connection from 172.30.32.1 on port 1883.
[INFO] found MQTTUser on Home Assistant
1611586334: New client connected from 172.30.32.1 as 4obtSPzwUveD5rpPGVJgKj (p2, c1, k60, u’MQTTUser’)
The problem is that it doesnt create a bridge to my other mqtt broker. It seems like it igonores the mosquitto.conf files