Build your IOT Application in a Day

Build your IOT Application in a Day

IoT Application development is required today at all levels. People with very low coding knowledge needs to build what is needed for them. MQTTRoute helps customers will be able to embed their ML & AI algorithms and create their own application. MQTTRoute helps you host and manage your application easily. This just leaves your development challenge for your IOT Server application. MQTT Broker comes with a default user interface, however visualization needs to be built for specific vertical. We recently run an internal hackathon at Bevywise to build applications over our framework. Interestingly, we were able to build an IOT application in a day. The application built was a Industrial Furnace monitoring. This blog portrays the hacks used to build the application.

IoT Application for Industrial Temperature Monitoring

Monitoring and control of temperature of the furnaces is crucial with respect to its usage in the industries as it directly affects the quality of the product that is being created. We created a simulated device similar to a monitoring edge device which pushes data to the MQTT Broker. The goals set for the application were:

  • live graph of the incoming temperature
  • Historical hourly average of the temperature
  • Alarm when the temperature exceeds a range
  • Alarm when current temperature exceeds the previous hour average

Live Temperature View

 

MQTT Broker is programmed in a way that it pushes the incoming device data to the user interface using the web socket. You will be able to add your own code to create live graphs. In this hackathon, plotly is used by the developer. The data on temperature of the furnace collected is presented as a line graph in the dashboard. This is done by configuring custom_ui_server.py file. 

reference code for line graph

xaxis: {
type: ‘date’,
range: [olderTime, futureTime]
}
};
Plotly.relayout (graph_id, minuteView);
Plotly.extendTraces (graph_id, update, d)

Historical data Analysis

 

The historical graph on hourly average data can be created by the Data Crunching process. The schedule module is used to automate the creation of hourly average data. Custom implementation for the average of data developed in a separate method and configured in the schedule to be called every 60 minutes in  custom_scheduler.py file.

 

def schedule_conf( ):
schedules={}
schedules={
‘STATUS’ : ‘DISABLE’,
‘SCHEDULES’ : [
{‘OnceIn’ : 1,‘methodtocall’ : oneminschedule },
{‘OnceIn’ : 5,‘methodtocall’ : fiveminschedule } ] }
return schedules

After processing the data, the data is pushed to the user interface through the web socket. The bar graph is created using plotly to display the crunched data

 

reference code for bar graph

x: [ data1 [i] [‘time1’] ]
y: [ data1 [i] [‘value’] ]
Plotly.newPlot ( ‘history’, data123,layout, {displayModeBar:false, responsive:true},
{scrollZoom: true} );

 

We believe you will be able to add your own algorithm similar to the above.

 

Generate Event Alarms

 

The variation in the temperature can be noted and displayed in a widgets. For a certain range of temperature values the data will be shown in varied colors to alarm for a temperature variations. Here, the data will be shown as red colored text if the temperature is above 500 degree Celsius (default value) and blue colored text if the temperature is below 500 degree Celsius. The default temperature range set can be changed according to your need. You can add your own widgets and notifications to the user interface by customizing custom_ui_server.py file. To schedule your alarms use  custom_scheduler.py.

 

 

reference code for text_widget

if ( key == “message-integer” || key == “message-float” || key == “message-string” ) {
var message = data1 [key] [‘message’][0] ;
document.getElementById(id).innerHTML = message + String.fromCharCode(176)+unit+ ;
}

Alerts for the Shop floor operators

The comparison of incoming data with the previous hourly average data is done. Alerts can be created based on the compared data. If the temperature exceeds the hourly average temperature then the data blinks by creating an alert. This can be done by adding event based triggers using the scheduling module. Add your own algorithm to create alerts in custom_scheduler.py.

 

reference code for alarm_widget

if ( p_avg < data3 [‘msg’] [‘message’] [0] ){
document.getElementById (“alert”).innerHTML=data3 [‘msg’] [‘message’] [0] + “ALERT!” + “Temperature High”;
}

 

Dashboard for IOT Application in a day

 

All the widgets created by the developer was put on a separate page, as it can be used as a dashboard to be projected/displayed onto to a bigger screen. This has been done as a custom URL inside the custom_ui_server.py similar to the following code snippet.

  

Add your URL here

def custom_urls():
urllist={
“AUTHENTICATION”:’DISABLE’,
“urls”:[{“/extend/Dashboard”:dashboard}]
}
return urllist

The hackathon IoT Application built in a day is available on GitHub for trying it out. Download the MQTT Broker now to start building your application today.

download now

Completely Managed Hosted MQTT Broker with Mobile Application

Completely Managed Hosted MQTT Broker with Mobile Application

Run Powerful IoT Application without complex set up, deployment & Configuration 

Hurrah! CrystalMQ, the new renovated Hosted MQTT Broker is here at last!

And Yes, we have fine-tuned our hosted MQTT Broker to bring the highest level of performance and effectiveness than before. Bevywise MQTT Broker always proves its ability to fit IoT implementation of any organization in a easy, reliable & scalable way. But one thing we have noticed is an increasing demand for hosted infrastructure. Today we are excited to announce the launch of improved version of our Hosted MQTT Broker, CrystalMQ.

No Expertise Needed

The new MQTT server hosting provides a completely managed service that can smoothly scale to meet the demands of large IoT applications and provides the reliability business-critical systems require. It allows developers or other business organizations to fully focus on building IoT applications rather than spending time on sticky server set up & management. No external expertise needed to deploy and manage MQTT Broker as we will provide a completed hosted set up and you can just build your application over it or can simply connect & retrieve your requires device data.

Dedicated Server Instances

CrystalMQ provides a dedicated server to run a separate VM instances which is exclusively true-blue to each tenant. As the server is dedicated specifically to the one single customer, it avoids provoking performance & security issues with other customers. MQTT server hosting provides total isolation, control and security for any of your complex IoT / IIoT applications. 

No Security Compromise

We know that security is the biggest IoT challenge and it is of critical importance for all IoT applications. We have a great liability for security & privacy of our customers’ data as a solution vendor. Hence, we have industry’s best practices of guaranteeing data with options to enable SSL / TLS for secure M2M communication. Also, Bevywise MQTT Broker ensures encrypted data transfer at each point with a common auth key and token for all devices or for a particular group of devices or unique keys and token for each device.

Control Devices on your Android

The more convenient & quicker way to manage & monitor your MQTT devices is here. The new hosted broker comes up with the MQTT Broker app which makes it easy to manage & control your MQTT / IoT applications using android smart phone from anywhere. Also, it enables users to customize the UI & to create multiple dashboards with pre-configured widgets from the app itself. 

We guarantee 99.99% availability that is server will be up and running 24 x 7 to collect data from your MQTT / IoT devices.

CrystalMQ provides 3 day trial period for FREE. When you start your subscription on CrystalMQ, the FREE trial of 3 days will get started, which lets you try the complete features of hosted MQTT broker for FREE. Once the FREE trial ends, your chosen subscription plan will automatically get activated unless you cancel the subscription in trial period.

Try signing up with new hosted MQTT Broker version to get started with the FREE trial.

Kindly reach support if you have any queries.

Smart IoT Implementation with Raspberry Pi MQTT Broker for DIY users

Smart IoT Implementation with Raspberry Pi MQTT Broker for DIY users

Have you got the next big idea of smart IoT implementation but not clear about how and where to start?

Everything you need to get started with your IoT implementation is here. We have made a recent update on MQTT Broker version 3.3. The new version comes with Mobile app support which makes the MQTT Broker more scalable for any IoT implementation. With the new update any budding developers or early adopters who are intended to take advantage of smart automation can make a successful smart IoT implementation faster & easier. This article provides a detailed view on how to perform an effective IoT implementation with Raspberry pi MQTT Broker.

An Exclusive FREE Raspberry Pi MQTT Broker

Every IoT implementation or application development needs a specific components combined together to achieve your specific target successfully.

In that case, any smart IoT implementation needs 4 basic components

  • IoT devices (sensors or actuators)

  • IoT middleware (MQTT Broker)

  • Automation Platform or HUB (Home Assistant or OpenHAB) If required

  • Smart Phone APP

And that is why we developed an exclusive MQTT Broker package which acts as a middleware to communicate between your MOTT enabled devices along with the mobile application, home automation platform integration & more…

We want to ensure that this package should be feasible to develop any sort of smart IoT implementations and people could get their things ready in their budget. And we make this MQTT Broker package specifically available in raspbian OS for FREE, as the Raspberry Pi can be an inexpensive and powerful one suits for all your IoT implementations. This could really be an excellent solution/benefit for those who aren’t comfortable with the premium licensing of most commercial solutions / platforms in the market.

Get your IoT devices ready

The selection of your IoT / edge devices or sensors depends on your implementation. To give you an idea, let us consider a smart home implementation. You need a light sensor, temperature sensor, door sensor & more. This varies upon your needs. With our FREE MQTT Broker package you can connect upto 10 MQTT enabled devices or sensors.

Set up the MQTT Broker on Raspberry pi

Start setting up the raspberry pi by using the below steps.

Step 1: Install Raspbian OS in your Raspberry Pi (choose the one which best suits your need)

Step 2: Get the SD Card and the Card Reader

  • Get a minimum 8GB class 10 SD card with a card reader. Insert that card into the card reader and plug that to the USB port.

Step 3: Check the Drive in Which the SD Card Is Mounted

  • Go to my computer or My PC and find the drive name where the SD card is mounted.

Step 4: Format the SD Card

  • Open SD Card Formatter and select the drive you noticed in the previous step.
  • Click on format and don’t alter any other options.
  • When the formatting is completed, click on OK.

Step 5: Write the OS on the SD Card

  • Open win32diskimager.
  • Browse the .img file of Raspbian OS that was extracted from the downloaded file.
  • Click ‘on open’ and then click ‘on Write’. If any warnings pop up then ignore them by clicking OK. It will only take a few minutes.

Step 6: Eject the SD Card

Now your OS is installed on your Raspberry Pi.

Installing MQTT Broker in the Raspberry Pi


1. Before installing the MQTT broker to our Raspberry Pi, we need to update the operating system.
All we need to do to update the system is to run the following two commands in the terminal

sudo apt update
sudo apt full-upgrade

2. Once the system has finished updating, we can now install the MQTT Broker software.

Download our exclusive Raspberry pi MQTT Broker from the below link and it might get downloaded in a zip format.

download now


Unzip the broker file and then open terminal and run the broker

During the installation process, the package manager will automatically configure the Broker to start on boot.

3. At this point, you will now have the  MQTT broker up and running on your device.

You can verify that it is installed and running by using the command below.

sudo systemctl status broker

This command will return the status of the “broker” service.

You should see the text “active (running)” if the service has started up properly.

By default broker will start running at http://localhost:8080 or http://<your IP>:8080. The default credentials to login to the dashboard is

  • Username – admin
  • Passsword – admin

Now start connecting your IoT devices / sensors from the UI itself.

In order to connect your devices more securely, enable authentication inside broker.conf folder. The default location of conf will be Bevywise/MQTTRoute/conf. 

[AUTHENTICATION]

AUTHENTICATION_ENABLED = YES

# YES || NO

Save your changes and rerun the MQTT Broker. Now you will be able to see the security tab on the default dashboard.

The authentication keys present there can be used to connect your IoT devices. You can also generate a new one to connect.

You can view the status of your device once you get your devices connected & data published by it on the dashboard. You can create your own dashboard with pre-built widgets to visualize the data published. To know more on Dashboard usage and other MQTT Broker feature & how to control your connected devices, visit MQTT Broker help.

Integration with Automation Platform

This part is especially for home users who are intended to develop their home automation system. Building your automation system completely from scratch will be a little bit unrealistic for DIY users. That is why there are number of home automation platforms / frameworks available in the market that can get your home automation devices up and running in no time.

The two of the most used open source home automation platforms includes

  • Home Assistant

  • Open HAB

As I said before, home automation platform can provide everything you need to develop your home automation system. You may ask, what is need of MQTT Broker here??…We have got you covered. Remember that your IoT devices / sensors are MQTT enabled and the initial step to get started with the Home automation platform is to complete MQTT integration with it. Ergo, you need an MQTT Broker for MQTT integration with automation platform. 

That being so, Bevywise MQTT Broker supports integration with both Home Assistant & Open HAB.

Once you are ready with the MQTT Broker on Raspberry pi set up, starts integrating with Home Assistant / Open HAB.

Check out the integration steps below.

Home Assistant Integration

The first step is to complete the Home Assistant installation procedure.

You can check the installation steps here

https://www.home-assistant.io/installation/raspberrypi/

Make sure you download the right package for Raspbian OS.

Once your installation steps are done, you can go ahead with the integration part.

  • Navigate to the http://homeassistant.local:8123/

  • Start creating your home assistant account & set up your configurations.

  • Make sure you enable authentication in broker.conf file. The default location of conf will be Bevywise/MQTTRoute/conf

  • Now navigate to the Home Assistant UI & click integrations tab.

  • Click “Add integration” button.

  • Select MQTT from the list.

  • You will view the screen asking for the broker details

  • Enter broker IP or host name as 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 MQTTRoute UI.

  • Once done click submit. If your configurations are set correctly you will receive a success message. You can view the home assistant device connected to the MQTT Broker in Devices tab & list of message published.

    For complete details about MQTT Broker integration with Home Assistant refer this blog.

mqtt-broker-dashboard

OpenHAB Integration

Let us start with the OpenHAB installation procedure.

You can check the installation steps here

https://www.openhab.org/download/

Once done navigate to the https://localhost:8443

Sign up to create a new OpenHAB account

Make sure you enable authentication in broker.conf file. The default location of conf will be Bevywise/MQTTRoute/conf

Once you finish your set up. Let us move on to Add-ons which is presented under the settings tab.

  • Click Bindings under Add-ons

  • Select MQTT-binding in the given list.

  • Your MQTT-binding set up is completed now.

  • 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 MQTTRoute 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 MQTTRoute 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.

Now you can start controlling your home devices.

For complete details about MQTT Broker integration with OpenHAB refer this blog.

Mobile App Support

Your smart IoT implementation is not fully completed unless you control your devices right from your phone.

Smart phones play an important role in all IoT implementations. In any smart implementation, a smartphone app is used to perform several functions – onboarding devices, monitoring sensors, turning actuators on/off, creating rules – both when within the local network, or outside it.

Ergo, we have introduced MQTT Broker app recently for managing your MQTT devices along with the MQTT Broker.

Here are the simple steps to start monitoring devices right from your phone which are connected to the MQTT Broker. 

  • Download Android App from play store and connect to your MQTTRoute server URL. Example : http://localhost:8080 or http://<your IP>:8080 if MQTTRoute runs in local network. In case you have deployed MQTT Broker in any cloud platform, use the instance URL (http://<domain name>.com)

  • Make sure you have connected your devices to the MQTTRoute already. If not connect by using steps mentioned in “Installing MQTT Broker in the Raspberry Pi” section.

  • You can now start creating dashboard & widgets to visualize & monitor devices on the go right from your android phone.

Get MQTT Broker App now on play store

MQTT Broker app on Google play

MQTT Broker App Dashboard
Home-control-dashboard
Temperature and Light Control
Custom Dashboard

You could get your smart IoT implementation completely done with Raspberry Pi MQTT Broker. Hope we have covered everything you need to develop smart IoT implementation with Raspberry pi MQTT Broker.

In case you have any queries on your implementation feel FREE to contact support. We have all ears to hear your need.

**Note : The FREE license is bound by terms and conditions. Please read the agreement carefully before downloading the package.

MQTTRoute 3.3 released – Control Devices on your Android Phone

MQTTRoute 3.3 released – Control Devices on your Android Phone

We dwell in a fast moving environment where speed is crucial in every little thing we implement. This makes us set our heart on any technology which bring us aid to speed on whatever we do. That’s where mobile apps come in which enables people to control & manage everything at fingertips much faster & easier.

This makes us to think over an idea on providing mobile app support to monitor MQTT devices connected to the MQTTRoute. And Yes!! Today we are much excited to tell you that we have just launched our new MQTTRoute mobile app for MQTT users currently available on android with MQTTRoute 3.3. Continue reading to find out how it helps you!

Why MQTT Broker App?

MQTTRoute is a MQTT based finely crafted MQTT Broker developed to provide fast & reliable M2M communication to and from connected devices. MQTT Broker App works in conjunction with the MQTTRoute enabling you to run it on your android smart phone. Running MQTTRoute alone can provide you a powerful way to collect, monitor and visualize your data. But, when it comes to quickly accessing data, MQTTRoute with mobile app is the perfect choice. This makes it more appealing for the on the go users. With the new MQTTRoute app we provide you with the much more convenient & quicker way to manage & monitor your MQTT devices connected to the MQTTRoute.

mqtt-broker-app-dashboard

We make it simple!

As we discussed earlier, In today’s technology world, mobile devices and the mobile applications that unlock their value—are the most popular way for people and businesses to acquire data from their internet connected devices. Businesses building IoT systems or utilizing MQTT / IoT implementation in order to stay relevant, responsive and successful, need to develop mobile applications to meet their customers demand. Yet mobile application development might seem daunting and it is not everyone’s cup of tea to spend much time developing mobile applications. Fortunately with MQTTRoute, it comes up with the MQTT Broker app which makes it easy to manage & control your MQTT / IoT applications and you no need to build it by your own.

Also, we make it more simple for you to customize your UI & to create multiple dashboards with pre-configured widgets from the app itself. This is because, we don’t want to restrict you to just view your MQTT data and we want to make you to present & visualize it in a way you need. This makes your IoT application, user and mobile friendly enabling to access & monitor MQTT devices anywhere.

Mobile App currently supports android and we are working to make it available soon in IOS.

MQTTBroker App widget

Feel free to write to support for a complete Demo. 

Try now for FREE by downloading MQTTRoute version 3.3.

download now

Get the Mobile App now on Google play store.

MQTT Broker app in Google play
MQTTRoute integration with openHAB

MQTTRoute integration with openHAB

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.

MQTTRoute 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

Now download & install Java 11

Check your current java version by opening a command line

java -version

Then Set up variants by Downloading and extract a platform independent zip archive: macOS, Windows, Linux.

Now install the downloaded packages using the below link

https://www.openhab.org/docs/installation/openhabian.html

Installation in Raspberry pi

For installing OpenHAB on Raspberry Pi, first, download the appropriate OpenHabian Disk Image for your Raspberry Pi. Here I have choosen Raspberry pi 3.

Go to https://etcher.io/ and install Etcher on your computer.

Once installation is done, open Etcher 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.

OpenHAB : Configuration

First & foremost sign up with the new account.

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.

  • Click Bindings under Add-ons
  • Select MQTT-binding in the given list.

Your MQTT-binding set up is completed now.

open-hab

OpenHAB : MQTTRoute Integration

Complete your download & installation step of MQTTRoute.

https://www.bevywise.com/mqtt-broker/help.html#installation

You can check the link 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.

  • 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 MQTTRoute 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 MQTTRoute 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.

Add-ons
mqtt-binding
thing-type
open-hab-success

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 MQTT Broker now for FREE 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.

The new Forever FREE Raspberry PI MQTT Broker is available to execute all your smart IoT implementations. Tap to know more.

MQTTRoute Integration with Home Assistant

MQTTRoute Integration with Home Assistant

The technological world is moving faster with its most popular innovations and home automation is one such innovation which everyone loved or liked to have. Home automation systems enable us to automate our smart home devices present at home.  With MQTTRoute integrated into the home automation platform you can easily develop your own home automation system. There are numerous open source automation platforms available in the market. And among them, Home Assistant have stood out as the most familiar choice. Here is a step by step tutorial on how to integrate MQTTRoute with the home assistant.

MQTTRoute integration with home assistant

Home Assistant : Installation

Installation can be done in four different methods

  • Home assistant operating system
  • Home assistant container
  • Home assistant supervised
  • Home assistant core

You can select any method based on your convenience.

Select your preferred operating system from the below mentioned list

https://www.home-assistant.io/installation/

In Raspberry Pi :

The first step is to install Hass.io to start running Home Assistant in Raspberry pi.

https://home-assistant.io/hassio/installation/

Navigate to the above link & choose the appropriate image. Here I have choosen Raspberry pi 3.

Go to https://etcher.io/ and install Etcher on your computer.

Once installation is done, open Etcher select the hassio 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.

Now access Home Assistant user interface in browser using homeassistant:8123 or http://your-pi-ip-address:8123. Replace your-pi-ip-address with your Raspberry PI IP.

In Linux

Let us see how to set up home assistant in linux with docker.

You have to update the linux first

sudo apt-get update

sudo apt-get upgrade

Now install docker using the below commands

Before docker installation it is necessary to install some additional packages

sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

Now, to ensure validity of the download, add a GPG key or docker to our system

 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –

To set up stable repository

 echo \
  “deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Now install docker engine

sudo apt-get install docker-ce docker-ce-cli containerd.io

Now run hello world command to test the successful installation of docker

 sudo docker run hello-world

On successful installation, you will receive the below message

Hello from Docker! This message shows that your installation appears to be working correctly.

Install Hass.io & Home assistant

Hass.io is an own operating of home assistant.

Before installation you need to add some additional packages

 sudo apt-get install apparmor-utils avahi-daemon dbus jq network-manager socat

 Now change the terminal to root

 sudo su

 And then add the below command to install Hassio & home assistant.

sudo curl -sL “https://raw.githubusercontent.com/Kanga-Who/home-assistant/master/supervised-installer.sh” | bash -s

The installation of Home assistant has completed. By default home assistant runs on port 8123. You can navigate to http://homeassistant.local:8123/ or use your IP to reach home assistant portal.

Let us continue with the onboarding

Home assistant : Onboarding

This is to configure the home assistant.

For more details you can navigate to

https://www.home-assistant.io/getting-started/onboarding/

Create your account with a home assistant.

Set up your configurations.

home-assistant

Home Assistant : MQTTRoute Integration

Click the configuration tab present at the left side of the Home Assistant UI.

The integrations page in the configurations panel shows you all your configured integrations. When each integration is done setting up, it will ask you to put the new devices in areas. Areas allow you to organize all the devices in your home.

Now let us see how to integrate MQTTRoute with a home assistant.

Download the latest version of MQTTRoute from the below link.

https://www.bevywise.com/mqtt-broker/download.html

Once done set up & install MQTTRoute

https://www.bevywise.com/mqtt-broker/help.html#installation

You can check the link 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 home assistant UI. Navigate to the integrations tab.

Click “Add integration” button.

Select MQTT from the list.

You will view the screen asking for the broker details

home-assistant-mqtt-integration

Enter broker IP or host name as 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 MQTTRoute UI.

MQTT Broker Security details

Once done click submit. If your configurations are set correctly you will receive a success message.

home-assistant-integration-success

You can view the home assistant device connected to the MQTT Broker in Devices tab & list of message published. You can now connect your home devices in the devices tab of Home assistant UI.

mqtt-broker-dashboard
home-assistant-dashboard

Hope this article provide you a detailed view on home assistant integration with MQTT Broker. Try setting up with the home automation platforms by yourself & integrating MQTTRoute to control your home devices.

Download MQTT Broker now for FREE 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.

The new Forever FREE Raspberry PI MQTT Broker is available to execute all your smart IoT implementations. Tap to know more.