Mosquitto is the software that makes MQTT work in practice. Where MQTT is the protocol — the rules governing how messages are structured and delivered — Mosquitto is the broker: the always-running process that sits at the centre of your smart home network, receives every published message, and forwards it to every subscriber that asked for it. Without a broker, MQTT devices have nowhere to send their data. Mosquitto is by far the most common broker used with Home Assistant, and for good reason: it is free, open source, and fast enough to run comfortably on a Raspberry Pi alongside everything else.
Mosquitto is developed and maintained by the Eclipse Foundation under the Eclipse Public License. It implements the MQTT protocol at versions 3.1, 3.1.1, and 5.0. In a typical Home Assistant setup, Mosquitto runs as an add-on inside the Home Assistant OS supervisor — a containerised process that starts automatically on boot, listens on port 1883 for unencrypted connections (and optionally port 8883 for TLS), and manages all topic subscriptions in memory. The Home Assistant MQTT integration then connects to it as a client, just like any other device on the network.
Mosquitto’s configuration is handled through a single text file — mosquitto.conf — where you define listeners, authentication, persistence, and logging. In the Home Assistant add-on, this is exposed through the add-on’s configuration panel rather than the raw file. Two settings matter most for a home lab setup: persistence controls whether the broker saves subscription state and retained messages to disk across restarts, and allow_anonymous determines whether devices need a username and password to connect. For any setup that includes devices from outside the local network — or where the MQTT port is exposed — authentication should always be enabled. The add-on generates a password file automatically when you add users through the UI.
Pro Tip: Enable Logging to Debug Connection Problems
If a device isn’t appearing in Home Assistant, the fastest diagnostic is Mosquitto’s log. In the Home Assistant add-on, set the log level todebugtemporarily and watch the log tab while the device tries to connect. A rejected connection will show the exact reason — wrong credentials, mismatched protocol version, or a network issue — in under a second. Remember to set log level back towarningafterwards, or the log fills up fast on a busy network.
For users running the Tibber Pulse in local MQTT mode, or an AMS-to-MQTT bridge reading data from the HAN port, Mosquitto is the receiving end of every telegram. The bridge or Pulse connects to Mosquitto as a publisher, posting live power readings to topics like ams/meter/power. Home Assistant subscribes to those topics via the MQTT integration and surfaces the values as sensor entities — updated in real time, stored locally, with no cloud dependency anywhere in the chain. The entire pipeline from electricity meter to Home Assistant energy dashboard runs through Mosquitto.
⚡ Fun Fact: Mosquitto was first released in 2009 by Roger Light, originally as a personal project to run on a low-power plug computer. It was donated to the Eclipse Foundation in 2012. The name is a deliberate play on the MQTT abbreviation — a small, lightweight thing that still manages to make itself heard. Today it is one of the most widely deployed pieces of open-source infrastructure in the IoT world, running on everything from Raspberry Pis to industrial edge gateways.