by Hema | Mar 19, 2021 | MQTT Broker | 0 comments
Home automation has gained a lot of popularity nowadays as it enables people to live a smart life. With MQTTRoute integrated into the home automation platform you can easily develop your own home automation system. OpenHAB is one such open source platform you can use to automate your home devices. Here is a step by step tutorial on how to integrate MQTTRoute with the OpenHab.
OpenHAB can be run on different versions of macOS and Windows and many different variants of Linux (Ubuntu, Raspbian, etc.).
Prerequisites : You need to get any of the JAVA platform installed mentioned below
Now download & install Java 11
Check your current java version by opening a command line
java -version
Then Set up variants by Downloading and extracting a platform-independent zip archive: macOS, Windows, Linux.
Now install the downloaded packages from this openhab installation page.
For installing OpenHAB on Raspberry Pi, first, download the appropriate OpenHabian Disk Image for your Raspberry Pi using the following link.
https://github.com/openhab/openhabian/releases?after=patchday-20200715
Here I have chosen Raspberry pi 3.
Go to Etcher page and install Etcher on your computer.
Once installation is done, open Etcher and select the openhabian disk image you have downloaded in the first step.
Choose the right SD card and click Flash. Before this, have your SD card formatted.
Insert the SD card on your pi & connect an Ethernet cable & power it up. To configure wi-fi, please check this post.
Once done, navigate either to the http://localhost:8080 or https://localhost:8443
It is better to use https://localhost:8443, as MQTTRoute UI also opens in the default port 8080.
Signing up with a new account is the first & foremost step.
Follow the steps mentioned by Open HAB. You can either finish up with the configurations or can be done it later.
Once you finish your set up. Let us move on to Add-ons which is present under the settings tab.
Your MQTT-binding set up is completed now.
Complete your download & installation step of MQTTRoute.
Check our Broker help documentation for step by step procedure for installation.
Once done, go to Bevywise/MQTTRoute/conf You need to enable authentication in broker.conf file.
[AUTHENTICATION]
AUTHENTICATION_ENABLED = YES
# YES || NO
Save your changes.
Now move to the openHAB UI.
Hope this article provide you a detailed view on openHAB integration with MQTT Broker. Try setting up with the home automation platforms by yourself & integrating MQTTRoute to control your home devices.
Download endlessly free MQTT Broker to get started with your Home automation set up.
The MQTT Broker version 3.3 is now available with mobile app to track your devices right from your android. Get the app now on Play Store.
Please take a moment to fill this form