Just a thought… do all my subscribed topics have to start with ‘openhab’?
I mean, at the moment my topic is ‘flat/test’.
Should it be ‘openhab/flat/test’?
The reason I ask is that when I start mqttlens and subscribe to # (everything), I get a message posted to ‘openhab/flat/test’, and directly after a message posted to ‘flat/test’, even though there is no such topic. I know I could simply subscribe to the topic explicitly and wouldn’t get that posting, it just confused me why it is there.
Yes, that’s how I found out about MQTTlens, which I prefer, before that I was using MQTTfx.
However, since your question seems rhetorical, I just read it again, it doesn’t mention anything about topic prerequisites.
No idea. But I have just SSH’d into the server and it says 2.1.0 Release build. Whatever that means. The only reason I think it’s the latest version is because I did an apt-upgrade thingy a few days ago. All this Raspeberry Pi tomfoolery doesn’t exactly speak to my skill set.
Many apologies, when you asked ‘Did you even read the link above?’, I did not presume you actually meant ‘Did you even read the link above, and follow all the links on that page, and follow all the links on the pages the links had within those pages?’ As such I would like to change my answer.
No, I did not even read the link above.
What I actually did was read only the first link (above), and follow the step-by-step.
Having read section 5, as suggested, it is still ambiguous as to whether subscribed topics have to start with a particular prefix, since the only topic I have is ‘flat/test’ then ‘flat’ could be considered my top-level topic, and as such satisfies any future topics where ‘flat’ is also the top level topic, although there is a whole paragraph that states multiple topics with differing top level topics can be maintained on the same broker.
My question was more to inquire if openhab itself added ‘openhab’ as a top level prefix to its MQTT topics prior to publish or subscribe.
It is entirely possible that I have a remnant of an old topic I created during testing that still exists in some form, somewhere, and is getting reported during a wildcard subscribe.