Hey all, I’m just messing with MQTT and having a bit of trouble (been searching the forums like mad and trying everything I can).
I have this in the logs:
[org.openhab.io.transport.mqtt ] - ServiceEvent REGISTERED - {org.openhab.io.transport.mqtt.MqttService, org.osgi.service.cm.ManagedService}={service.pid=org.openhab.mqtt, component.name=MQTT Connection Service, component.id=1, service.id=279, service.bundleid=164, service.scope=bundle} - org.openhab.io.transport.mqtt [org.openhab.io.transport.mqtt ] - BundleEvent STARTING - org.openhab.io.transport.mqtt [org.openhab.io.transport.mqtt ] - BundleEvent STARTED - org.openhab.io.transport.mqtt [penhab.io.transport.mqtt.MqttService] - Starting MQTT Service... [t.mqtt.internal.MqttBrokerConnection] - Creating new client for 'tcp://localhost:1883' using id '***' and file store '/opt/openhab/userdata/tmp/mosquitto' [org.openhab.binding.mqtt ] - BundleEvent STARTING - org.openhab.binding.mqtt [.binding.mqtt.internal.MqttActivator] - MQTT binding has been started. [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=167, service.id=292, service.bundleid=163, service.scope=bundle} - org.openhab.binding.mqtt [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=168, service.id=294, service.bundleid=163, service.scope=bundle} - org.openhab.binding.mqtt [ng.mqtt.internal.MqttEventBusBinding] - MQTT: Activating event bus binding. [ng.mqtt.internal.MqttEventBusBinding] - Initializing MQTT Event Bus Binding [ng.mqtt.internal.MqttEventBusBinding] - Setting up Event Bus State Publisher for topic home [org.openhab.binding.mqtt ] - ServiceEvent REGISTERED - {org.osgi.service.event.EventHandler}={event.topics=openhab/*, component.name=org.openhab.binding.mqtt.MqttItemBinding, component.id=169, service.id=295, service.bundleid=163, service.scope=bundle} - org.openhab.binding.mqtt [ng.mqtt.internal.MqttEventBusBinding] - Setting up Event Bus State Subscriber for topic home [org.openhab.binding.mqtt ] - BundleEvent STARTED - org.openhab.binding.mqtt [ng.mqtt.internal.MqttEventBusBinding] - MQTT Event Bus Binding initialization completed. [binding.mqtt.internal.MqttItemConfig] - Loaded MQTT config for item 'test' : 0 subscribers, 1 publishers
I don’t know where it’s getting the topic for ‘home’ from as I haven’t got it set anywhere (although when testing I did).
Here’s my mqtt.conf (mqtt-eventbus.cfg is all commented out):
mosquitto.url=tcp://localhost:1883
And this is one of the many items I’ve tried:
String test {mqtt=">[mosquitto:openhab/notification/info:state:*:default]"}
Basically all I’m after is to be able to publish from another client (MQTT.fx on OSX) and see an item update and visa versa, when an item updates the subscription on my other client will update.
Any help would be much appreciated, I’ve gone round in circles a bit here, did have updates coming through in the log, but no longer do.
Thanks
Christian