Configure MQTT Broker


i have installed Mosquitto and then i like to create a MQTT Broker.
As binding i have: binding-mqtt - 2.4.0
By saving i get the message “500 internal Server Error”
For “borker hostname” i use “localhost”
The log shows
[WARN ] [.MqttBrokerConnectionServiceInstance] - MqttBroker connection configuration faulty: host : You need to provide a hostname/IP!
Can anyone help me?

Hm. I know Paper UI is shit. But man, if you would have a read about how to use Paper UI in the introduction docs, you would have known to click on “Things” and not on “Services” to add an MQTT broker.

Now you have to clean up the mess, Paper UI can’t do that. Remove the “mqtt.config” file from your OH user directory while openHAB is not running.

1 Like

i think mqtt 2.4 does not hav a config

For distributors mqtt 2.4 still supports an “mqtt.cfg” file. And Paper UI tries to visualize this to you in the services screen. But unfortunately that part of Paper UI is heavily broken. If you have clicked on the “+” sign, your system is broken and there is no UI way to solve that except from what I have said above.

@David_Graeff: Can you tell me the excat path where i can find the file?

For me (Raspian) it actually was: