I know this is going to be yet another noob reaching out for help thread… But I have spent over 24hrs trying everything to get MQTT working in openhab.
So to confirm the situation, all running on a Raspberry Pi (Whizzy)
Openhab installed and running ok
Mosquitto installed and running ok (two terminal SUB/PUB messages working.
Copied “org.openhab.io.transport.mqtt-1.7.0.jar” into “addons” folder.
Checked /tmp/broker/ folder and there are additional folders for the clientid
But i just cant get openhab to publish a MQTT message.
I have tried a restart of the mosquitto service whilst tailing the log file and can see openhab detecting the lost connection and then reconnecting ok.
With logging on DEBUG i get this on the start up
2015-10-10 09:13:54.708 [DEBUG] [.io.transport.mqtt.MqttService] - Starting MQTT Service…
2015-10-10 09:13:54.804 [INFO ] [.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2015-10-10 09:13:54.818 [INFO ] [o.i.t.m.i.MqttBrokerConnection] - Starting MQTT broker connection ‘broker’
2015-10-10 09:13:54.878 [DEBUG] [o.i.t.m.i.MqttBrokerConnection] - Creating new client for ‘tcp://localhost:1883’ using id ‘openHab’ and file store ‘/tmp/broker’
But now im stuck!
Any help would be much appreciated… (very much appreciated!!)