[SOLVED] MQTT Brokers - Mosquitto vs Imbedded Broker

Tags: #<Tag:0x00007fc3e83f3d98> #<Tag:0x00007fc3e83f3ca8>

Newbie here running Openhab 2.4 on Raspberry PI. After reading thru hundreds of posts, I’m still trying to sort out the MQTT business and I’m confused on the following:

  • I installed Mosquitto from the Openhab-config menu - does that mean I don’t need to install another MQTT broker via the paper UI? Is that correct?
  • Is Mosquitto a replacement for the MQTT Broker shown in the Paper UI bindings screen, or supplemental?
  • What is the “embedded MQTT Broker” - a built-in broker that comes with Openhab 2.4? If installed, do I need Mosquitto?


Correct. You need one or the other, not both.


Yes, it’s a built in broker. If you use it you do not need Mosquitto.

This is true in general and especially true with MQTT, understanding how the technology works at a basic level is important to your success with using it with openHAB. I recommend reviewing https://www.hivemq.com/blog/mqtt-essentials-part-1-introducing-mqtt/ to get a basic understanding about how MQTT works. That will help you answer questions like these and help you understand what you need to do with openHAB to make it work.