I appreciate the help. I believe I’ve set up the connection to Cloud MQTT based on your input but I don’t get a sense from the log that anything is happening.
This is my mqtt.cfg setup:
NikMQTT.url=tcp://m11.cloudmqtt.com:12355
NikMQTT.clientId=openhab2
NikMQTT.user=user (user is changed here to represent what mine is)
NikMQTT.pwd=password (password changed here)
Below is the log. I waited 4 minutes and then shut it down just to see if there might be log messages buffered and not written.
I have one test item configured but I see no indiction that anything happens with it. (And I’m not sure exactly where to see this in the OpenHAB UI since it’s a bit confusing what can be done in PaperUI, BasicUI, and HABPanel. (keep in mind this it my first attempt to use OpenHAB)
2018-04-18 08:00:23.032 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-04-18 08:00:24.475 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-04-18 08:00:24.507 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-04-18 08:00:24.570 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-04-18 08:00:24.738 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2018-04-18 08:00:24.739 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection ‘nikmqtt’
2018-04-18 08:00:24.741 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:broker
2018-04-18 08:00:24.742 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:topic
2018-04-18 08:00:24.743 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:message
2018-04-18 08:04:16.634 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2018-04-18 08:04:36.955 [INFO ] [penhab.io.transport.mqtt.MqttService] - Stopping broker connection ‘nikmqtt’
2018-04-18 08:04:36.990 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2018-04-18 08:04:37.035 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 66159b0e-5578-4c8d-8ea5-a2393558a4f3, base URL = http://localhost:8080)
2018-04-18 08:04:37.249 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2018-04-18 08:04:37.254 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2018-04-18 08:04:37.259 [INFO ] [er.internal.HomeBuilderDashboardTile] - Stopped Home Builder
2018-04-18 08:04:37.266 [INFO ] [.dashboard.internal.DashboardService] - Stopped dashboard
This is however early indications in the log that I’m connecting CloudMQTT (or am I not interpreting the log correctly).
2018-04-17 17:52:58.298 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection ‘nikmqtt’
2018-04-17 17:52:58.302 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:broker
2018-04-17 17:52:58.303 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:topic
2018-04-17 17:52:58.303 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:message
2018-04-17 19:48:28.898 [ERROR] [o.client.mqttv3.internal.ClientState] - openhab2: Timed out as no write activity, keepAlive=60,000 lastOutboundActivity=1,524,006,178,515 lastInboundActivity=1,524,006,178,565 time=1,524,012,508,888 lastPing=1,524,006,178,515
2018-04-17 19:48:32.187 [ERROR] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to broker was lost
org.eclipse.paho.client.mqttv3.MqttException: Timed out while waiting to write messages to the server
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:31) [208:org.openhab.io.transport.mqtt:1.11.0]
at org.eclipse.paho.client.mqttv3.internal.ClientState.checkForActivity(ClientState.java:672) [208:org.openhab.io.transport.mqtt:1.11.0]
at org.eclipse.paho.client.mqttv3.internal.ClientComms.checkForActivity(ClientComms.java:732) [208:org.openhab.io.transport.mqtt:1.11.0]
at org.eclipse.paho.client.mqttv3.internal.ClientComms.checkForActivity(ClientComms.java:718) [208:org.openhab.io.transport.mqtt:1.11.0]
at org.eclipse.paho.client.mqttv3.TimerPingSender$PingTask.run(TimerPingSender.java:77) [208:org.openhab.io.transport.mqtt:1.11.0]
at java.util.TimerThread.mainLoop(Timer.java:555) [?:?]
at java.util.TimerThread.run(Timer.java:505) [?:?]
2018-04-17 19:48:32.553 [ERROR] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to ‘nikmqtt’ was lost: Timed out while waiting to write messages to the server : ReasonCode 32002 : Cause : Unknown
2018-04-17 19:48:32.553 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restore connection to broker ‘nikmqtt’
2018-04-17 19:48:42.560 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection ‘nikmqtt’