Hello,
My MQTT Connection worked a short time, but now i have following problem:
When i switch a Switch in Openhab, it seems not to send a MQTT message.
Here’s my item:
Switch bed {mqtt=">[broker:/max/light/bed:command:ON:1],>[broker:/max/light/bed:command:OFF:0]"}
org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server
at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:79) [209:org.openhab.io.transport.mqtt:1.12.0]
at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:650) [209:org.openhab.io.transport.mqtt:1.12.0]
at java.lang.Thread.run(Thread.java:748) [?:?]
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:?]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:?]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
at java.net.Socket.connect(Socket.java:589) ~[?:?]
at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:70) ~[?:?]
... 2 more
had that before, have to start the mosquitto manually.
Mosquitto started, but still no message in MQTT Lens (and devices also not switching)
Are you by any chance running the snapshot version of OH? I had the same problem a few days ago and spent about a day and a half messing around with it. I had to revert back to the stable version for things to start working again.
Mine was specifically w/ the eventbus, but I don’t have any other MQTT things going on w/ the instance I was testing this on. (It’s a detached garage that has it’s own OH for lights and such).