I have been running my OH connected to a RabbitMQ for a very long time. However, for a while now I can’t get OH2 to start/connect to the mqtt-bus.
If I separate log files for mqtt, and set TRACE level of logs, this is what shows up in my mqtt.log:
2017-10-31 22:05:13.472 [DEBUG] [org.openhab.binding.mqtt ] - BundleEvent STARTING - org.openhab.binding.mqtt
2017-10-31 22:05:13.474 [DEBUG] [.binding.mqtt.internal.MqttActivator] - MQTT binding has been started.
2017-10-31 22:05:13.487 [TRACE] [.internal.MqttGenericBindingProvider] - Starting to load MQTT config for item Power_Consumption_kWH
2017-10-31 22:05:13.498 [DEBUG] [binding.mqtt.internal.MqttItemConfig] - Loaded MQTT config for item 'Power_Consumption_kWH' : 1 subscribers, 0 publishers
2017-10-31 22:05:13.520 [TRACE] [.internal.MqttGenericBindingProvider] - Starting to load MQTT config for item Power_Consumption_WATT
2017-10-31 22:05:13.520 [DEBUG] [binding.mqtt.internal.MqttItemConfig] - Loaded MQTT config for item 'Power_Consumption_WATT' : 1 subscribers, 0 publishers
2017-10-31 22:05:13.521 [TRACE] [.internal.MqttGenericBindingProvider] - Starting to load MQTT config for item Sensor_Garage_Temp
2017-10-31 22:05:13.521 [DEBUG] [binding.mqtt.internal.MqttItemConfig] - Loaded MQTT config for item 'Sensor_Garage_Temp' : 1 subscribers, 0 publishers
2017-10-31 22:05:13.521 [DEBUG] [org.openhab.binding.mqtt ] - ServiceEvent REGISTERED - {org.openhab.model.item.binding.BindingConfigReader, org.openhab.binding.mqtt.MqttBindingProvider}={component.name=org.openhab.binding.mqtt.genericbindingprovider, component.id=247, service.id=377, service.bundleid=243, service.scope=bundle} - org.openhab.binding.mqtt
2017-10-31 22:05:13.529 [DEBUG] [ng.mqtt.internal.MqttEventBusBinding] - MQTT: Activating event bus binding.
2017-10-31 22:05:13.529 [DEBUG] [org.openhab.binding.mqtt ] - ServiceEvent REGISTERED - {org.osgi.service.event.EventHandler, org.osgi.service.cm.ManagedService}={event.topics=openhab/*, service.pid=org.openhab.mqtt-eventbus, component.name=org.openhab.binding.mqtt.eventbus, component.id=248, service.id=379, service.bundleid=243, service.scope=bundle} - org.openhab.binding.mqtt
2017-10-31 22:05:13.535 [DEBUG] [org.openhab.binding.mqtt ] - ServiceEvent REGISTERED - {org.osgi.service.event.EventHandler}={event.topics=openhab/*, component.name=org.openhab.binding.mqtt.MqttItemBinding, component.id=249, service.id=380, service.bundleid=243, service.scope=bundle} - org.openhab.binding.mqtt
2017-10-31 22:05:13.536 [DEBUG] [org.openhab.binding.mqtt ] - BundleEvent STARTED - org.openhab.binding.mqtt
However, I can’t see that it actually starts the eventbus and from what I see in RabbitMQ, there is no connection to the bus from OH2.
My mqtt.conf:
wimnellnet.url=tcp://192.168.0.21:1883
wimnellnet.clientId=openhabclient
wimnellnet.user=user
wimnellnet.pwd=password
My mqtt-eventbus.conf:
broker=wimnellnet
statePublishTopic=openhab2/out/${item}/state
commandPublishTopic=openhab2/out/${item}/command
I’ve tried to delete the config files using config:delete command in Karaf and then restart, but same problem. I realize that I’m doing something wrong here (or have some miss-configuration) but I can’t find the obvious. Anyone see the reason?
Best regards,
Patrik