No mqtt file

Hello,
I’ve installed mosquitto with the openhabian-config, and this was sucessful. I rebooted but there is no mqtt config file in the /service folder.

Suggestions?

The file should have been created. Go thru openhabian-config mosquitto install again with a reboot and see if the file is there.

install MQTT Binding

1 Like

Again done, no file.

Why?
I want to use Mosquitto and not the MQTT Binding?

BTW: Raspi 3b+, root and Openhabian on SSD (running)

Just to verify the file location is /etc/openhab2/services

If you cd to that location and type ls what files do you have?

addons.cfg
dashboard.cfg
readme.txt
runtime.cfg

The config file in the service folder will be created ONLY when the binding is installed
Because that is the binding configuration NOT the mosquitto config.

The mosquitto config itself is somewhere else in the etc/mosquitto folder
http://www.steves-internet-guide.com/mossquitto-conf-file/

That’s the way MQTT works.

client <---> broker <---> client

Clients send messages to the broker.
Clients subscribe for messages from the broker.

Mosquitto is the broker.

MQTT Binding is the client that allows OH to connect to the MQTT broker. You must have both.

1 Like