How-To Get Started with Mosquitto MQTT Broker on a Raspberry Pi


In this video, I’ll be covering how-to install, setup, and use Mosquitto MQTT broker on a Raspberry Pi. Mosquitto is an awesome open source MQTT broker that you can run on a device like a Raspberry Pi. It’s great because you don’t have to share you data to the cloud and can keep everything locally on your system. Plus, it’s free! MQTT is a great protocol for various DIY tech – like an Arduino, NodeMCU, or ESP8266 chip. If you have any questions, let me know! Happy to help with what I can!


— The Tech I Use —

—Favorite Parts—

Raspberry Pi 3 –
Case –
SD Card –
Power Supply –
Aeotec Z-Stick Gen 5 –
NodeMCU ESP8266 Chip –

—Shell Commands—

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install mosquitto
sudo apt-get install mosquitto-clients

sudo nano /etc/mosquitto/mosquitto.conf

allow_anonymous false
password_file /etc/mosquitto/pwfile
listener 1883

sudo mosquitto_passwd -c /etc/mosquitto/pwfile username

mosquitto_sub -d -u username -P password -t “dev/test”
mosquitto_pub -d -u username -P password -t “dev/test” -m “Hello world”


Mosquitto Configuration –
MQTT Home Assistant –
My Website –
Home Assistant –
HA Forum –
HA Chatroom –…
HA GitHub –


5 Open House Automation Tools

The Internet of Things is not only just a buzzword, it’s a speedily increasing reality.

With an ever-increasing number of devices provided to help you automate, protect, and monitor your home, it has never been simpler nor more tempting to try your hand at home automation. Whether you’re seeking to manage your HVAC(Heating Ventilating Air Conditioning) system from another location, combine a home theater, safeguard your home from robbery, fire, or other threats, lower your energy usage, or simply control a few lights, there are many devices available at your convenience.

While connected devices frequently contain private components, a good step one in bringing open source into your home automation system is to ensure the device which ties your devices together-and presents you with an interface to them (the “hub”)-is open source. Luckily for us, there are many different solutions out there, with alternatives to run on everything from your always-on personal PC to a Raspberry Pi.

Here are just a few of our preferred.


Calaos is designed as a full-stack home automation platform, with a server application, touchscreen interface, web application, native cellular applications for iOS and Android, and a preconfigured Linux OS to run underneath. English speaking readers should be advised that, while some English documentation is obtainable, some of the instructional material plus support discussion forums are largely in French.

Calaos is licensed under version 3 of the GPL and you can view its source on GitHub.


Domoticz is a home automation system with a fairly wide collection of supported devices, which range from weather stations to smoke detectors to remote controls, with a huge amount of extra 3rd party integrations documented on the project’s webpage. It is designed with an HTML5 frontend, making it accessible from both desktop browsers together with most recent handsets, and is featherweight, running on loads of low power systems similar to the Raspberry Pi.

Domoticz is written mainly in C/C++ under the GPLv3, and its source code can certainly be discovered on GitHub.

Home Assistant

Home Assistant is an free home automation platform, and is designed to be easily deployed on just about any machine that could run Python 3, from a Raspberry Pi to a NAS system, and additionally ships with a Docker container to make deploying on other systems really easy. It combines with a range of free and commercial products, which helps you to link, for example, IFTTT, weather information, or maybe your Amazon Echo device, to controls from locks to lights to even a command line notifier.

Home Assistant is released under an MIT license, and its source is offred from GitHub.


OpenHAB (short for Open Home Automation Bus) is one of many most recognized home automation tools amongst open source hobbyists, with a huge user community and a lot of supported devices and integrations. Written in Java, openHAB is light and portable across almost all major OS’s and also runs well on the Raspberry Pi. Supporting hundreds of devices, openHAB is designed to be device-agnostic while making it simpler for developers to add their own devices or plugins to the system. OpenHAB also ships iOS and Android applications for device control, together with a design tools so you’re able to build your own UI for your home system.

You can locate openHAB’s source on GitHub licensed under the Eclipse Public License.


OpenMotics is a home automation system with both software and hardware under open source licenses, designed at providing a thorough system for managing devices rather than sewing together a great many devices from different providers. Dissimilar to many of the other systems designed mainly for quick retrofitting, OpenMotics specializes in a hard wired solution. To get more detailed, see our full article from OpenMotics backend developer Frederick Ryckbosch.

The source for OpenMotics is licensed under the GPLv2 and is obtainable for download on GitHub.

These are not the only choices available, naturally. A wide range of home automation lovers decide on a diverse solution, or maybe tend to roll their unique. Many other potential choices to think of consist of LinuxMCE, PiDome, MisterHouse or smarthomatic. Other people decide on unique smart home devices without including them into a single wide-ranging system.

Leave a Comment

Your email address will not be published. Required fields are marked *