Home automation
has gained a lot of popularity nowadays as it enables people to live a smart life.
With MQTT broker 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 MQTT broker with the OpenHab.
MQTT broker integration with openHAB
OpenHAB : Installation
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
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.
Let us add MQTT Broker using Things tab.
Add things by clicking the + icon present at the bottom.
Now select MQTT Broker as Thing type from the list.
The configuration need to be set correctly to make MQTT Broker & OpenHAB communication.
Click show advanced.
Provide IP or host name of MQTT broker 127.0.0.1
By default port will be set as 1883. In case if TLS is enabled in the
broker.conf file,
you need to change the port here.
Now enter username and password which is provided in the security tab of MQTT broker UI.
Once done click submit. If your configurations are set correctly the toggle button will show Online.
You can view the
OpenHAB device connected to the MQTT Broker in Devices tab. You can now connect your home devices in the
devices tab of
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 MQTT broker to control your home devices.
Download endlessly free MQTT Broker to get started with your Home automation set up.
Try our MQTT Broker for FREE and experience seamless connectivity.
Cookie Consent
We utilize Cookies to enhance your experience. Your acceptance implies our policy agreement. Your data is
securely handled, and you can learn more about our commitment to data safety in our comprehensive Privacy Policy.