I’m having problems on MQTT2 binding with my OH2 and raspberry.
I have installed the MQTT broker and succesfully connected to it with the Bridge (in things file). Also, created items but when I try to publish a messages with MQTT.fx, I’m not getting any info on OH2 logs. However, via ssh and “mosquitto_sub”-command I can see the messages.
I would really appreciate if somebody would help me.
Some of my logs:
[me.event.ThingUpdatedEvent] - Thing ‘mqtt:broker:myUnsecureBroker’ has been updated.
[hingStatusInfoChangedEvent] - ‘mqtt:broker:myUnsecureBroker’ changed from OFFLINE to ONLINE
[.ItemChannelLinkAddedEvent] - Link ‘testMqttString-mqtt:topic:myUnsecureBroker:mything:alarmpanel’ has been added.
[.ItemChannelLinkAddedEvent] - Link ‘Kitchen_Light-mqtt:topic:myUnsecureBroker:mything:lamp’ has been added.
When I try to publish a messages with MQTT.fx I cannot see the messages in the log. I have tried to use following topics:
/myUnsecureBroker/mything/alarmpanel/state/
/myUnsecureBroker/mything/alarmpanel/set/
/myUnsecureBroker/mything/alarmpanel/
Just asking b/c I was comparing what’s above to other mqtt 2.x config post on the forum and noticed a difference. I haven’t started moving all my mqtt items over to 2.x yet but shouldn’t be much longer before I take the plunge.
Thanks and hopefully you succeed moving items to mqtt 2.x, maybe you can help me more then =) I will try to look around the other posts of mqtt 2.x related subjects.
Maybe the best workaround would be if somebody would post a simple working mqtt 2.x config files (.things and .items) for one item and tell in which topic should be published.
GOT IT WORKING! Just had to reboot the raspberry! =D And of course publish to the topic vincent suggested alarmpanel/state …so many hours just wasted.
Anyway, many thanks for helping me.
Next time I reboot the raspberry before asking help=)