WARNING: Eclipse Mosquitto version 2 and higher has some changes. Check here after watching this video on fix: • "Fix" for Eclipse Mosquitto MQTT vers... or new video on installing it: • Eclipse MQTT 2.x in Docker + user cre...
NOTE: Command to download Docker image was updated and new version is in the description and a link to default MQTT configuration file.
In 4th episode of Home Assistant series we will install Mosquitto also called MQTT in Docker on Synology.
I wish to thank Tecom Trade (http://tecomtrade.hr/), local Synology partner for borrowing me this device to film this series.
Terminal Emulator - PuTTY
--------------------
For connecting via SSH, you will need terminal application, and I use for this Putty. Download link is:
https://www.chiark.greenend.org.uk/~s...
00:00 Intro
00:30 Connect visa SSH to terminal server
01:00 Create folders
01:34 Download, create and run MQTT container
05:16 Verify MQTT is running
06:30 Configure MQTT in Home Assistant
09:00 Restart Home Assistant to activate configuration
09:50 Check to see if integration is active
Command to download MQTT image:
--------------------
sudo docker run --name="mqtt" --restart=always --net=host -tid -p 1883:1883 -p 9001:9001 -v /volume1/docker/mqtt/config:/mosquitto/config:ro -v /volume1/docker/mqtt/log:/mosquitto/log -v /volume1/docker/mqtt/data/:/mosquitto/data/ eclipse-mosquitto
You may need to provide default doncifugration file for MQTT.
Download it from here:
https://github.com/eclipse/mosquitto/...
This file needs to be copied to MQTT configuration folder:
/docker/mqtt/config
Also, fix permissions to with:
sudo chown 1883:1883 /volume1/docker/mqtt -R
In Home Assistant configuration.yaml you have to add following lines:
mqtt:
broker: !secret mqtt_url
port: !secret mqtt_port
client_id: home-assistant
discovery: true
discovery_prefix: homeassistant
And in secrets.yaml add following:
mqtt_url: {your.synology.ip.address}
mqtt_port: 1883
Save everything, verify configuration and restart Home Assistant.
Please, give me a thumb up if you liked this video, subscribe if you still haven't and I'll see you next time!
Have fun!
BeardedTinker
🧡 If you would like to support me and this channel, you can JOIN and become channel member!
https://www.youtube.com/BeardedTinker...
✅Twitter: @BeardedTinker
✅Discord: / discord
#HomeAssistant #docker #synology #mqtt