OpenHub2 MQTT binding config

A project log for Multi Zone Wireless Thermostat

Replace the bimetallic thermostat with a few microcontroller based thermostats to control the combi boiler.

Jose Maria Rodriguez SaezJose Maria Rodriguez Saez 03/04/2017 at 18:170 Comments

I finally found why the MQTT binding was not working properly with random behaviour of boiler switch and temperature setpoint.

Apparently Openhab keeps a the MQTT configuration in the internal database despite you change the config file, this confuses the mqtt client and makes it disconnect constantly.

In this forum I found the solution:

Connect to the Karaf Console (ssh openhab@localhost -p 8101 with password: habopen) to check if previous configs has been stored stored in the OH2 "internal database" by using:

config:edit org.openhab.mqtt


You can start clean by configuring your mqtt.cfg and mqtt-eventbus.cfg and clearing out whatever is stored already by:

config:delete org.openhab.mqtt and then restart OH2 to reload the .cfg files