Run Your own LOCAL MQTT broker to control your IoT devices in Home Assistant

preview_player
Показать описание
In this video I cover setting up an eclipse-mosquitto broker Docker container on a local virtual machine using portainer to do all the heavy lifting. I then integrate it into Home Assistant.

Links:

Join the channel:

If you would like to support me:

Products I reference in my videos (Contains affiliate links)

DISCLAIMER: Some of the links above take you to affiliate sites that may or may not pay a small commission to me. It doesn't increase the cost to you, but it does help support me in making these videos.

Snail Mail to Send Stuff:
Mostlychris
24165 IH-10 West
STE 217 #164
San Antonio, TX 78257

00:00 Intro
01:12 Why MQTT?
02:30 You Need Portainer
02:55 Create Volumes
04:36 Create the Container
05:41 Container Settings
07:38 Local Only Connections
08:33 Configuration File
09:30 Anonymous Access From any IP
13:03 Restrict Access via Credentials
15:50 Set Device for New Broker
17:17 Configure Home Assistant
18:50 Final Thoughts
Рекомендации по теме
Комментарии
Автор

SUBSCRIBED!!!

This video is exactly what I needed. (and I especially appreciated that it was no-nonsense, yet chock full of solid explanations, clear speech, large screens and the whole 9 yards)

timffoster
Автор

Fantastic! Thank you. I was able to move my MQTT from inside Home assistant to my portainer setup.

wbtlevi
Автор

You are my Hero, thank you! The first path, to select Volumes in Portainer was a great idea!

florianf
Автор

Chris, thanks for your videos, this one helped me get MQTT up and running, where a few other vids did not, looking forward to learning from
your other videos.

stevecarlisle
Автор

Your tutorial helped me finally install MQTT and integrate it with Home Assistant :D Subscribed!

magnusgreel
Автор

Hey @mostlychris, another VIM shortcut: If your cursor is at the top of the file in VIM, you can do "d G" (capital G) and it will delete from where the cursor is all the way to the bottom of the file. Conversely, if you're at the bottom of the file you can do "d gg" (2 lowercase g's) and it will delete from the cursor to the top of the file.

jt_simon
Автор

thank you! you've just got my subscription

Nowalon
Автор

Hi Chris. You have lots of great videos. I am looking at revamping my Home automation setup. Currently running HA in a proxmox VM and will be moving it HA blue device soon. I am also looking at setting up a separate MQTT broker rather then the add-on as I have now. I have so many hobbies and so many projects that keep me quite busy. Is there any reason that I should run MQTT broker in a container rather than in just a VM? Not looking forward at another learning hurdle for portainer/docker stuff if I do not need to at this time. Thanks. Yes I would like to see you make a video in regards what you need to do in HA when using an external MQTT broker as you mentioned in this video.

andymok
Автор

Hi and great video! Did you ever do the follow up video to build the mqtt entries?

camerontgore
Автор

tysm for this very straight forward and thorough explainantion!

mineapple
Автор

I have a pi setup with pihole and mqtt with battery backup. Makes it so much better standalone, no issues with rebooting pc's or dockers etc. Every couple of months (cough) when I remember pihole & pi get updated. Also really good if you want a couple of different home assistant builds etc production & test to connect to.Cheers

shaunwhiteley
Автор

+9000 to previous comments about clarity. Subscribed as well :)
are there any special considerations for setting up the broker with only SSL? I used the openssl tag for the image, and am able to connect to the broker using MQTT explorer as well as things like frigate. For some reason though HA doesn't like it and I think I tried every combo of the advanced setting. Thoughts?

DanyKhalife
Автор

Hi Chris... I followed your steps almost exactly and everything works... BUT... You kinda promised to show HOW now to set up steps in Home Assistant to integrate with this LAN-based MQTT broker. I'm not seeing it.. What should I look for? (I can send MQTT topics successfully via HA MQTT interface.. But, now we need to take the next step. THANKS!)

awardblvr
Автор

Thank you, the video helped me a lot, thumbs up.

eric
Автор

I'm good with the broker, I'd like more on interacting with device through HA - both acting on state changes in the MQTT topics, and controlling devices through MQTT.

SBinVancouver
Автор

Awsome video, helped a lot. Thanks man!

isosahir
Автор

Hi Chris! Great video! Any chance you could do a video on setting up mqtt to use tls?

techdad
Автор

I started from scratch, installing docker in a Proxmox LXC and then portainer. I then installed mosquitto s per the description in the vid. I couldn't get past the point where I have to get into the container's console. Turns out that the latest release of docker won't play nice with the current release of portainer and no containers within portainer (including the portainer container itself) have working console access. I'm to old and too impatient to try and nut this out, so I'm going to have to find another way to run mosquitto in a LXC container....

Qosmio
Автор

This tutorial was great! I know this video is about a year old as I watch it and am wondering about something. I have MQTT and Tasmota in home assistant and they both can see my new Tasmota/MQTT light switch. The home assistant forums seem to suggest that MQTT is "hard to maintain" and might be going away. Any truth to this? Which should I focus on to continue my integration journey?

revealingfactsall
Автор

absolute legend, you made me want to subscribe

lildarker