Mosquitto: MQTT Broker for Home Devices

Run Mosquitto as the MQTT broker for your home network, and the devices on it get one place to publish sensor readings, switch states and commands, with Home Assistant or a script listening on the other end. It speaks MQTT 5.0 and 3.1.1, adds TLS and per-topic access control once you configure them, and keeps retained messages, which survive a restart with persistence on. It is one lightweight daemon with one text config file, released under the EPL-2.0 or EDL-1.0 licence.

Pros and cons

Pros

  • Light enough for a single-board computer1
  • MQTT 5.0 and 3.1.12
  • TLS and per-topic ACLs (once configured)3
  • WebSockets and bridging4

Cons

  • Retained messages are lost on a restart until persistence is on5
  • Clients are disconnected above 2 MB by default6

Mosquitto requirements

The key facts for Mosquitto.

Requirement
Mosquitto
PriceFree
LicenceCustom
Web UINo
Docker Containers1 (app only)
Architecturex86 + ARM
Tech stackC
DockerYes
Linux packageYes
WindowsYes
macOSYes

Common questions

Similar apps to Mosquitto

Tags

Updated