Just install mqtt1 again and everything is back
And yes OH2 is a different product compared to OH1. It required more steps if you do it by text. The idea is that you just donāt to it by textual configuration anymore. HomeAssistant is not easier in this regard, they have ācomponentsā and āentitiesā which is like our Things and (auto linked) Items.
Hi David,
thanks for your suggestion but what do you mean for mqtt1? I mean that I do not choose the version when I install mqtt by the config tool. As you understand, Iām a beginner.
I expected you are a long time user, because you mentioned OH1.8 (which is quite dusty). Since OH2.4 there is a new MQTT binding. If you have used mqtt before, you were using mqtt1. That required a config file, the new approach donāt. mqtt1 was automatically uninstalled with OH2.4.
Please also understand that this forum is about openHAB itself mostly. It is expected that you read up on MQTT yourself and to understand what a broker does, what an mqtt topic is and so on.
Hello, Iām not a GUI-open-minded guy, and I like text based configuration. Once you understand the scripts, it is easier and faster to edit than click, click & more clicks. So my question is: in future OH versions do we still have the text configuration option?
I recommend reading Directions for openHAB 3. And I mean the entire 80 min read time thread. Everything, every argument is covered in there.
Hello David,
I am following your tutorial. I have installed the MQTT embedded Broker and then the MQTT binding. As you could see attached I have MQTT broker online but when I create a channel it appears under systemBroker. Is that normal?
Hey!
You did everything correct so far, except the last step with adding channels. The broker thing is really only to configure the broker (and for trigger channels, but that might confuse you atm). You will need to add a āGeneric MQTT Thingā and add channels there.
Cheers, David
Thanks for your quick reply. I want to use MQTT between openhab and my āthe Home Remoteā (http://thehomeremote.com/) UI design so that I could extend features on both side.
As a first step to better understand how mqtt works I am trying to create a virtual mqtt āswitchā and a virtual mqtt ālampā in openHab. I thought that the MQTT Binding was meant for that?
If not should I just create by hand these two MQTT in a .thing file or is there a way to create them in Paper UI?
Thatās an interesting project of yours.
Regarding MQTT: Itās for the other way round actually. You have mqtt topics on your broker and the binding allows you bind those topics to Things->Channels->Items.
If you are looking for exporting Things and Channels to MQTT: Thatās what an IO Service is for in openHAB. Unfortunately I havenāt written that part. I revamped the Hue Emulation IO service instead recentenly.
Is there a step by step tutorial of Video you could refer me to to understand better how to use MQTT in openhab?
I donāt use .thing and .item files. I think itās a pest tbh and there are long community arguments topics and posts about technical aspects, the syntax and all that jazz and a little civil war even that I accidentally started here when I proposed to remove those files completely.
Thatās why I canāt help you in this regard, and it is dead simple with Paper UI, I guess you do not need any help on that. And if so, my blog post (openHAB Blog Website) about that topic might help
iāve made a video tutorial how to install and setup new OpenHAB MQTT binding, maybe itāll help you, russian language video, but i hope you understand without words))
Hi David,
I followed the tutorial on installing the Embedded brokerā¦ I got the MQTT Broker in my Inbox and added it, but nothing can connect to it. When I look at the āthingā i see āOffline - Configuration Errorā . I didnāt change anything (as far as iām aware!) i just added the thing from my inbox.
Iām running OH on Synology NAS. Any suggestions on what iām doing wrong? Thank you!!
The embedded broker is no longer supported and this topic is a bit old.
I would recommend you uninstall the embedded broker, remove the thing and install mosquitto broker and mqtt binding in PaperUI under binding section.
OK. Iām a bit confusedā¦
Iāve removed the thing.
Under Add-ons>Misc I see āMQTT Broker Moquetteā installed. (This was the one i always had installed, sorry, thought that was the embedded broker?).
Under Config>Services>MQTT I see " MQTT Embedded Broker (org.eclipse.smarthome.mqttembeddedbroker)" and only the option to āConfigureā, nothing to remove this? Do i need to remove that as well?
Cheers!
Yes that is the embedded broker.
After you remove the binding this should disappear automagically.
BTW how did you install OH and what are you running it on?
Iām running on Synology NAS, I just installed via the Synology GUI and click to install the app. This is the issue for me, not sure how to install another MQTT broker on my NAS.
Iāve never used Synology so excuse any dumb questions.
Do you have a command line? If so does sudo openhabian-config open the confg tool?