I have a remote site running it’s own independent Hassio, and the remote site is connected through VPN. Ive found several articles about possibility to connect two brokers through bridging but I can’t get it to work running my local broker as Hassio add-on (the remote broker also run as a Hassio add-on).
Could anybody assist me in getting this up and running?
The simple configuration found from steves-internet-guide should be
connection bridge-01
address 192.168.xx.xx:1883
topic # out 0
topic # in 0
Are you using the mosquitto add-on, or mosquitto as a separate install ? The procedure above is for the add-on, if you just run mosquitto, add these line to /etc/mosquitto/mosquitto.conf.
I do see all sensors etc show up on my local Hassio and I can controll ligts, switches etc.
But, there is an issue which I do not understand and hope you could elaborate;
I use a TTS service through the app Ariela.
I can do an MQTT Publish from my local hassio like this;
topic: ariela/tts/android_arielam30_tts/tts
payload: 'Hi, this is a test'
…and it works perfect.
If I send the same MQTT Publish from my remote, there is no message spoken.
I can see in MQTT Explorer at the local end that I receive the publication, but there is no sound.
What am I missing?
I can add as a note that what I see when I do the publish locally is the 100% same as I see when I do the MQTT Publish from the remote site, except - No TTS spoken…
Could you skip the VPN an connect thru internet too? I’m trying to connect to a rabbitMQ but get socket error what ever I do. Does anyone have something what can help me?
/Reik
The answer by @francisp worked for me with a small change.
I’m using the VSCode plugin for HASSIO and the location of the mosquitto.conf wasn’t quite the same (well it might be on the relevant container but not from VSCode’s point of view). Instead from VSCode I told it to open a folder /root/ which is the folder above the normal config folder that is open by default in the VSCode plugin. Then I added a share/mosquitto sub-folder and placed the mosquitto.conf file in there.