Hi,
during the installation von the new MQTT binding (2.5.6) I mad a typo loalhost instead of localhost
Now the broker tries to connect to loalhost and give error messages:
2020-06-29 15:02:31.721 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to ‘loalhost’. Next attempt in 60000ms
2020-06-29 14:52:31.650 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to ‘loalhost’ with clientid 23251d6f-540e-49fb-a62f-a6d94b0a2ce5
I am looking where this information is stored, but don’t find the config.file
Thanks for any hint
Georg
[SOLVED] - Post 8
Found MQTT config files: /var/lib/openhab2/config/org/eclipse/smarthome - deleted the config files (mqttbroker.config; mqttembeddedbroker.config).
Restarted openhab2 - now it is working.
The error seems to come from a different connection because the clientID does not match the one from your things file.
Which broker(s?) did you install?
I installed MOSQUITTO - thought this is the best alternative.
#Place your local configuration in /etc/mosquitto/conf.d/ #A full description of the configuration file is at
#/usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
No files in /etc/mosquitto/conf.d.
no file /var/run/mosquitto.pid available
Exactly what rossko57 said. Either restart the MQTT bundle in the Karaf console or restart openHAB itself to pick up the changes you made to your .things files. Changes are not always picked up automatically from .things files.
Solved:
Found MQTT config files: /var/lib/openhab2/config/org/eclipse/smarthome - deleted the config files (mqttbroker.config; mqttembeddedbroker.config).
Restarted openhab2 - now it is working.
Georg