SlideShare a Scribd company logo
TELKOMNIKA, Vol.17, No.6, December 2019, pp.3126~3136
ISSN: 1693-6930, accredited First Grade by Kemenristekdikti, Decree No: 21/E/KPT/2018
DOI: 10.12928/TELKOMNIKA.v17i6.11722 ◼ 3126
Received November 9, 2018; Revised May 30, 2019; Accepted July 2, 2019
Implementation smart home using
internet of things
Afrizal Mayub1
, Fahmizal*2
, Ma’ruf Shidiq3
,
Unan Yusmaniar Oktiawati4
, Nur Rohman Rosyid5
1
Graduate School of Science Education, University of Bengkulu
2,3,4,5
Department of Electrical Engineering and Informatics, Vocational College, Universitas Gadjah Mada
*
Corresponding author, e-mail: fahmizal@ugm.ac.id
Abstract
Development in technology of information today provides various facilities to support human
activity. One technology that facilitates human is the use of automated systems, the application of smart
home system makes it easier for users to control household electronic devices. This study addresses one
of the smart home solutions with automation systems. The system is built using ESP8266 and Raspberry Pi
devices, by utilizing MQTT, REST and Laravel framework protocols. With Arduino, Python and PHP
programming, household devices can be controlled both automatically and manually. Control system can be
done by using web, chatbot, and physically. The communication used utilizes wireless network. With
the designed system, the users can control the device, gain information and get warning. The information
provided by the system is obtained from open data on the internet and from the sensor installed on
the device.
Keywords: Internet of Things, MQTT, REST, smart home
Copyright © 2019 Universitas Ahmad Dahlan. All rights reserved.
1. Introduction
Modern life today demands higher mobility, everything is designed to make human life
becomes easier. Technology does not escape into one of the major problems that developed
during this period. It can be seen from the development of internet network that has boomed in
the past decade, from the data resulted from Cisco prediction, it was found that in the period of
2012 to 2017 the use of internet usage has grown by 13 times higher compared to the previous
years of use [1-4].
Internet today is not only used to access emails and articles, but also can be used as a
means of remote electronic controller both at work and at home, which is commonly known as
smart home. Remote control system allows one to control household electronic devices anywhere
and anytime by using any computer or mobile phone contained a web browser application that
can open a web which is used to control electronic devices in home such as lights, fan, air
conditioner (AC) and garage [5-7].
Internet of Things (IoT) is a paradigm of the latest communications which is envisioned
as a future, this technology adds everyday devices with a microcontroller, the device allows
sender-receiver digital communication and is connected to a communication protocol that allows
each device to connect with other devices [8]. The concept of IoT aims to make the internet more
depth and breadth in its use. Furthermore, the ease of interaction between devices such as home
appliances, surveillance cameras, vehicles and other equipment’s is presented in Figure 1. This
paradigm can find a variety of applications in many different scientific domains, such as smart
homes, industrial automation, automation in the medical field, intelligent energy management and
intelligent network that are applied to the vehicle, traffic and many more.
A smart home system besides can be controlled remotely, it also can provide information
about the actual conditions in the home, one of them is the weather information and security
information. So that residents can easily monitor the condition of the house through the developed
interface. In addition, a smart home system can also interact with other data sources, such as
interacts with weather prediction system, so that residents can consider the activities to be carried
out [9-12]. This paper aims to understand the basics of using message queuing telemetrytransport
(MQTT) protocol as a means of communication between the remote device with the server, to
TELKOMNIKA ISSN: 1693-6930 ◼
Implementation smart home using internet of things (Afrizal Mayub)
3127
desig a platform that consists of hardware and software as the foundation in the manufacture of
Internet of Things (IoT) device, and to implement the results of the designed platform as the basis
for making the smart home.
2. Research Method
2.1. Smart Home Architectures
Home is a building that cannot be separated from human life because home is a primary
necessity. To be able to function physiologically, a home must be equipped with various facilities
required, such as electricity, water, lighting and others [13]. Along with the developments that LED
to the digital era, nowadays there are a lot of research trying to make a home becomes easier to
control. The term smart home has widely stated by researchers and activists in automation field.
But to make a house into a smart home, it is needed a system to handle this.
Smart home control system (SCS) is a system to manage and to control a home in order
to improve the safety and comfort of home owners by improving the system of environmental
protection, energy savings, simplifying the setting of both digital devices and mechanical devices
becomes easier [14].
Figure 1. Smart devices on smart home illustration
2.2. MQTT dan REST Protocols
Message Queuing Telemetry Transport (MQTT) Protocol is a protocol that runs at over
TCP/IP stack and has a data packet size with small low overhead (minimum 2 bytes) that has an
impact on the consumption of the power supply that is also quite small [15]. This protocol is
the type of data-agnostic protocol which means that it can transmit any data such as binary data,
text even XML or JSON and this protocol applies publish/subscribe model as shown in Figure 2,
where the model is different from most protocol that typically uses client-server model. By default,
MQTT protocol runs on TCP/IP port 1883, the protocol is widely used in communication Machine
to Machine (M2M) and IoT. This is because MQTT is appropriate to be used on devices that have
limited capabilities in terms of bandwidth and data transmission as well as is limited to
the reliability of data transmission [16]. MQTT is a message-based protocol with the address of a
message specifically mentioned as a Topic.
Representational State Transfer (REST) is an architecture of communication method that
used HTTP protocol for data changing and this method is often applied in application
development. The goal is to make a system that has a good performance, quick and easy to be
developed (scale), particularly in the exchange and communication of data. REST is also one of
the mechanisms of integration that has been very dominant to be used on the internet, REST has
four essential components in it such as URL Design, HTTP Verbs, HTTP Response Code, Format
Response [17, 18]. In Figure 2 it is explained that a REST server will handle the data exchange
process between REST client with the database.
◼ ISSN: 1693-6930
TELKOMNIKA Vol. 17, No. 6, December 2019: 3126-3136
3128
Figure 2. MQTT and REST Architecture
2.3. Overview of the Smart Home System
Smart home control systems work by connecting electronic devices in the house with a
control device which has been designed to connect to the Internet network, either wired or
wireless. These electronic devices will be controlled by the state of data transmitted over MQTT
protocol, the data is obtained from the user's command or triggered based on data from other
systems, such as weather prediction system. In addition to taking orders in the form of specific
states, the electronic device on the smart home system can also transmit data to other devices,
so that data such as temperature, humidity and security conditions, can be monitored remotely
via the web. The following is the design of smart home system as a whole which is presented in
Figure 3 (a).
Smart home control system design is done by utilizing m-Platform. Some of the features
that will be covered in this study include lighting control, air conditioning control, garage door
control, all of which can be remotely controlled either manually or automatically. Prototyping
house is done using CAD software and has a size of 1:30 of the size of the original house. House
design used as prototypes in this study has two floors, with a total of three rooms on the first floor
and four rooms on the second floor, where the design of a prototype of this house is shown in
Figure 3 (b).
Installation of Light Emitting Diode (LED) lights in each room as many as 2-6 items is
used as a substitute for AC lighting installations simulation in the home. The use of home
prototypes with a ratio of 1:30 is meant to be able to simulate the use of m-Node as a replacement
of the manual switch, because the majority of the electrical installation in the house puts the light
switch of a room located in one place, so that to implement the system of these prototypes in real
homes, users should only replace the switch part into m-node device, as shown in Figure 4.
The use of m-Node in addition to be used to control lights, can also be used to control other
household appliances, such as water pumps, plants watering, fan and other equipment’s. Thus,
only by using an m-Node, the household appliances of conventional equipment can be turned into
connected to the Internet and can be controlled remotely. In the garage, in addition to control
lights, m-Node is also used to control a servo motor which then can be used to open and close
the garage door remotely and automatically. In Figure 5 (a) it can be seen that for installation on
the first floor, it needs four pieces of m-Node from ESP8266.
TELKOMNIKA ISSN: 1693-6930 ◼
Implementation smart home using internet of things (Afrizal Mayub)
3129
(a)
Garage
Room 3
Room 1
Room 2
(b)
Figure 3. (a) Design of a smart home system (b) House prototype design
Figure 4. Illustration of using m-Node as a switch
m-node configuration on the second floor does not use ESP8266, but it uses
the Raspberry Pi, the use of Raspberry Pi is intended to try to implement m-Node system on
multiple devices. By using the Raspberry Pi, the installation of wiring the lights on the second floor
will be like in Figure 5 (b), where all the cable light will lead to specific location, such configuration
is appropriate to be applied to new buildings, because the design of cable installation can be set
up from the beginning, so it will not interfere with an existing electrical installation.
User
Broker
node
= m-Node
Skala 1 : 30
◼ ISSN: 1693-6930
TELKOMNIKA Vol. 17, No. 6, December 2019: 3126-3136
3130
Raspberry Pi has several advantages compared with ESP8266, among others, can be
connected with some kind of connectivity, such as Wi-Fi, ethernet and Bluetooth. In addition,
the Raspberry Pi is also equipped with an output that can be used as an interface, such as HDMI
and Audio Jack, so in this study, the audio output will be used to give warnings and information
such as weather conditions, as well as congestion. This information data will be obtained from
several providers of information on the Internet through Application Programming Interface (API),
the use of API will allow any person to obtain data and to integrate it on the device that is being
developed, so that there will be more integrated devices in the future. The examples of data
obtained freely from weather data provider among others are information about temperature,
humidity, pressure, wind speed, cloud conditions, visibility and other information. The data is used
as reference of the system developed in this study.
(a)
(b)
Figure 5. (a) Installation of m-Node installation on the first floor
(b) m-Node installation design on the second floor
3. m-Platform Design
3.1. Overview of the m-Platform
m-Platform is a platform that consists of integrated software and hardware used to
facilitate IoT project. m-Platform consists of several parts: m-Node, m-Broker, m-Dashboard and
m-Gateway. The entire section of the m-Platform is connected to one another into a single
integrated system. The topology of m-Platform shown in Figure 6 (a).
3.2. m-Node
Any device that can connect to the Internet, ranging from censorship of the simplest to
the complex cloud servers are the parts of the IoT in which the phrase 'Things' refers to objects
Floor 1
ESP8266 ESP8266 ESP8266 ESP8266
Room 1 Room 2 Room 3 Garage
(3 Lamps) (4 Lamps) (5 Lamps) (4 Lamps)
Raspberry Pi SpeakerFloor 2
Room 1 Room 2 Room 4Room 3
TELKOMNIKA ISSN: 1693-6930 ◼
Implementation smart home using internet of things (Afrizal Mayub)
3131
that vary widely such as lamps, IP cameras, thermostats, alarm clock and others [19]. All
electronic equipment’s in the world can be a component of the IoT if it has internet connectivity,
therefore in this study it will be made an m-node device as additional device that integrate
electronics with the internet. On Figure 6 (b) indicated that the m-Node device requires the ability
to bridge both the data transmission from the electronic device to the internet and vice versa.
Therefore, there is a lot of choice in developing m-Node, among others ESP8266, Raspberry Pi
and Arduino. All three devices are examples of some of the electronic platform that can be used
as m-Node, but in this study, the discussion will be more focused on the use of ESP8266 and
Raspberry Pi [20], this is because both of these devices have had the ability to connect to
the internet by using Wi-Fi and ethernet. In use, each m-Node will have each 'NodeID' and
'NodeKey' as identity. NodeID and NodeKey are obtained from the website of 'nodemanager' in
which they will be unique.
(a)
(b)
Figure 6. (a) m-Platform topology (b) m-Node topology
3.3. m-Broker
Currently the development of IoT is very rapid, ranging from household appliances,
enterprises to industrial equipment. To handle the IoT devices that are increasing in number, it
needed a messaging intermediary (broker) who is able to handle the amount of communication
among IoT devices [21]. A broker serves to bridge the data transmission between the connected
devices. In this research, will use the MQTT protocol as a broker. As shown in Figure 7 (a), a data
will be transmitted through a broker to mark it as a topic [22]. There are several open-source
projects that handle the development of MQTT Broker, one of which is mosquitto. The use of
mosquitto in this research because mosquito is easy to install and have already implementing
MQTT protocols version 3.1.1 [23].
3.4. m-Gateway
The development of IoT in the future will combine the real world with the virtual world,
where the interaction between devices will make human life better. However, to make virtual
objects can interact with users, it certainly does not like the communication made by the device
to other devices, moreover, it is necessary for a solution where the development of this interaction
can be done easily by all devices or by users [24]. This research will try to combine two protocol
m-Node
Internet
Electronic Devices
◼ ISSN: 1693-6930
TELKOMNIKA Vol. 17, No. 6, December 2019: 3126-3136
3132
in order to deal with the existing problems, the MQTT protocol will handle communication between
devices, while the REST protocol will handle communications between the user and the device.
Figure 7 (b) explained that both protocols will be set to use on Data Layer, where basically all
the data either received or requested on each protocol will be stored in the same database.
(a) (b)
Figure 7. (a) Example of a scheme for using m-Broker (b) m-Gateway architecture
3.5. m-Dashboard
To be able to control or view data from IoT devices, it is necessary to have an interface
system that can facilitate a user to manage the device in large quantities. There are many types
of interfaces that can be used, but there is a very popular interface due to its ease of access,
namely web interface, this interface can be easily accessed from all types of electronic devices
such as computers, laptops, mobile phones even smart televisions can also access it. In this
study, will use a web interface with a programming language of PHP (PHP Hypertext
Preprocessor) and JavaScript, while for the base data that used, it will combine MySQL with
Mongoo [25]. M-Dashboard Design will be made moreover users can customize to their individual
needs, so users can adjust their Dashboard more freely, one example of the target results from
the m-Dashboard can be seen in Figure 8. The use of m-Dashboard can also facilitate researchers
to monitor the condition of the device, the interaction data both from and to the m-Dashboard is
derived from m-Gateway, with communication media by using REST protocol.
Figure 8. Example of m-Dashboard
DB
TELKOMNIKA ISSN: 1693-6930 ◼
Implementation smart home using internet of things (Afrizal Mayub)
3133
4. Testing and Discussion
4.1. Communication of MQTT
This study uses MQTT protocol as the communication protocol between devices, MQTT
works by using the topic as a hierarchy of data transmission where each topic is a reference of
the data transmitted. For example, a device wants to transmit data of temperature sensors,
moreover, the topic example that that can be used is "device/1/sensor/temp" after a device
transmits data on this topic, then the other device can take the data by subscribing to the same
topic. Therefore, a topic should be regulated so as not to overlap one another. The composition
of the topic used in this study are 28 topics, such as can be seen in Table 1.
Table 1. Topic Division of MQTT
Floor Room Item Topic Message
1st floor
Living room
lamp 1 room/1/lamp/1/state 0 = OFF; 1 = ON
lamp 2 room/1/lamp/2/state 0 = OFF; 1 = ON
lamp 3 room/1/lamp/3/state 0 = OFF; 1 = ON
lamp 4 room/1/lamp/4/state 0 = OFF; 1 = ON
door room/1/door/lock 0 = LOCK; 1 = OPEN
door detection room/1/door/state 0 = LOCK; 1 = OPEN
Room 2
lamp 1 room/2/lamp/1/state 0 = OFF; 1 = ON
lamp 2 room/2/lamp/2/state 0 = OFF; 1 = ON
lamp 3 room/2/lamp/3/state 0 = OFF; 1 = ON
lamp 4 room/2/lamp/4/state 0 = OFF; 1 = ON
lamp 5 room/2/lamp/5/state 0 = OFF; 1 = ON
Garage
lamp 1 room/3/lamp/1/state 0 = OFF; 1 = ON
lamp 2 room/3/lamp/2/state 0 = OFF; 1 = ON
lamp 3 room/3/lamp/3/state 0 = OFF; 1 = ON
lamp 4 room/3/lamp/4/state 0 = OFF; 1 = ON
door room/3/door/1/lock 0 = CLOSE, 1 = OPEN
2nd Floor
Room 4
lamp 1 room/4/lamp/1/state 0 = OFF; 1 = ON
lamp 2 room/4/lamp/2/state 0 = OFF; 1 = ON
lamp 3 room/4/lamp/3/state 0 = OFF; 1 = ON
lamp 4 room/4/lamp/4/state 0 = OFF; 1 = ON
Room 5
lamp 1 room/5/lamp/1/state 0 = OFF; 1 = ON
lamp 2 room/5/lamp/2/state 0 = OFF; 1 = ON
lamp 3 room/5/lamp/3/state 0 = OFF; 1 = ON
lamp 4 room/5/lamp/4 0 = OFF; 1 = ON
Room 6
lamp 1 room/6/lamp/1 0 = OFF; 1 = ON
lamp 2 room/6/lamp/2 0 = OFF; 1 = ON
lamp 3 room/6/lamp/3 0 = OFF; 1 = ON
lamp 4 room/6/lamp/4 0 = OFF; 1 = ON
air conditioning room/6/AC/state 0 = OFF; 1 = ON
AC temp room/6/AC/temp input Temp (Default = 20)
Outdoor Garden lamp out/1/lamp/state 0 = OFF; 1 = ON
4.1. Use Case Scenario
Users will be able to control the home electronic devices via a button on the device or
through the Internet. Users can turn on or turn off the lights, control air conditioning temperature,
open the garage door and other electronic devices that are connected to the m-Node. Users can
access the interface from either system control page from the network or the Internet network. In
addition to control, users can also obtain information from the m-Node, such as temperature, light
intensity, door security conditions and others. The interface used in the form of web and chatbot.
In general, the illustration of the use case scenario in this study is illustrated in Figure 9 (a).
In addition to working on the orders of users, this smart home system can also work
automatically, in accordance with the rules set by the user, there are some automated systems
that are used in this study, these systems are used to improve the comfort and the safety of users.
The security system applied in the form of a forced door and window opening detection, this
detection uses sensors that have been installed on the door or window, which if the condition of
the door is supposed to be locked but is detected open, the system will automatically sound an
alarm and notify users, and provide brief reports to security forces around the house, in general,
this system is illustrated in Figure 9 (b).
When the afternoon and morning arrived, the automatic system for the garden lights will
function. This system will turn on the garden lights if the time shows at 17.30 and will turn it off at
05.00. The data time is obtained from the server on the internet. But apart by time, to turn
◼ ISSN: 1693-6930
TELKOMNIKA Vol. 17, No. 6, December 2019: 3126-3136
3134
the lights are also based on data from the intensity of the light coming from the light sensor, these
sensors can provide information about the intensity of light at a time and the user can set
the minimum mark to turn lights on and off the garden light, in general, this automated system
illustrated in Figure 10 (a).
The smart home system can also arrange for all of the devices currently on the conditions
is set out when users come from outside of a home or when the user leaves home. This system
is referred to as home/away mode, or a mode that determines the presence of users. Users can
set this mode through the web or through chatbot, therefore the users no longer need to turn on
or turn off the electronic devices. In general, this system is illustrated in Figure 10 (b).
(a) (b)
Figure 9. (a) Use case diagram (b) Door security detection flow
(a) (b)
Figure 10. (a) Automation of garden lights (b) Home away mode
There are several features on the website that are used as smart home controllers,
features designed to make it easier for users to control household devices at home. This website
display can be viewed in Figure 11. There are some columns that divide each home device based
on function and room. The web, which is designed to be opened through a computer or laptop
device, can also be opened via mobile devices such as Android and iPhone, this is because
Controlling Lamp, AC, Door
and Garage
Get Information from
home
Start
Door
Lock?
Is
Door
Open?
End
Activate
Alarm
Notice User
Yes
Yes
No
No
Start
Lux < Set
Lux
Time
=
Set TimeOn
End
Yes
Yes
No
No
Turn On
Lamp
Time
=
Set TimeOff
No
Turn Off
Lamp
Yes
Start
Home
Mode
Away
Mode
End
Turn Off AC
and Lamp
Open Garage
Yes
Yes
No No
Turn On AC and
Lamp
Lock Garage
TELKOMNIKA ISSN: 1693-6930 ◼
Implementation smart home using internet of things (Afrizal Mayub)
3135
the web display is designed responsively and mobile-friendly moreover the web display can adjust
the screen size of the accessing device. The miniature results of prototypes design of a smart
home are presented in Figure 12 and video [26] displays the test results of smart home design
using m-Platform.
Figure 11. Web appearance when opened on a mobile device
Figure 12. The results of a prototype design of a house as a miniature smart house
5. Conclusion
This paper has described the designing process of the smart home using m-Platform by
using the features of the website which can be accessed using a computer or laptop and can also
be opened via mobile devices such as Android and iPhone. This study uses MQTT protocol as
the communication protocol between devices, MQTT works by using the topic as a hierarchy of
data transmission where each topic is a reference of the data transmitted. Furthermore,
m-Platform is planned as an open-source project that can be studied, modified, improved and
disseminated. Therefore, everyone who wants to create the IoT project can easily create
prototypes for the project they want to make. In addition, by making m-Platform as an open-source
project, it is expected that more people will contribute to the m-Platform development process,
moreover, the development of IoT in Indonesia can be done more easily because there are
already platforms that have handled the core part of technical development tools to be made.
◼ ISSN: 1693-6930
TELKOMNIKA Vol. 17, No. 6, December 2019: 3126-3136
3136
References
[1] X An, G Kunzmann. Understanding mobile Internet usage behaviour. 2014 IFIP Netw. Conf. IFIP Netw.
2014; January.
[2] Khan, Rafiullah, Sarmad Ullah Khan, Rifaqat Zaheer, Shahid Khan. Future internet: the internet of
things architecture, possible applications and key challenges. In 2012 10th
international conference on
frontiers of information technology, IEEE. 2012; 257-260.
[3] Da Xu, Li, Wu He, Shancang Li. Internet of things in industries: A survey. IEEE Transactions on
industrial informatics. 2014; 10(4): 2233-2243.
[4] Yaqoob I, Ahmed E, Hashem IAT, Ahmed AIA, Gani A, Imran M, Guizani M. Internet of things
architecture: Recent advances, taxonomy, requirements, and open challenges. IEEE wireless
communications. 2017; 24(3): 10-16.
[5] Munadi, Rendy, Arief Rakhman, Doan Perdana. Smart Garage Implementation and Design Using
Whatsapp Communication Media. TELKOMNIKA Telecommunication Computing Electronics and
Control. 2018; 16(3): 1107-1113.
[6] Sawidin, Sukandar, Deitje Sofie Pongoh, Ali Akbar Sreven Ramschie. Design of Smart Home Control
System Based on Android. In 2018 International Conference on Applied Science and Technology
(iCAST), IEEE. 2018: 165-170.
[7] Li, Baoan, Jianjun Yu. Research and application on the smart home based on component technologies
and Internet of Things. Procedia Engineering. 2011; 15: 2087-2092.
[8] Zanella, N. Bui, a Castellani, L. Vangelista, M. Zorzi. Internet of Things for Smart Cities. IEEE Internet
Things Journal. 2014; 1(1): 22–32.
[9] M Naglič, A Souvent. Concept of Smart Home and Smart Grids integration. IYCE 2013-4th
Int. Youth
Conf. Energy. 2013; 1-5.
[10] Lee, Meonghun, Jeonghwan Hwang, Hyun Yoe. Agricultural production system based on IoT. In 2013
IEEE 16th
International Conference on Computational Science and Engineering, IEEE. 2013: 833-837.
[11] Xiaojun C, Xianpeng L, Peng X. IoT-based air pollution monitoring and forecasting system. In 2015
International Conference on Computer and Computational Sciences (ICCCS). IEEE. 2015: 257-260.
[12] Kodali, Ravi Kishore, Archana Sahu. An IoT based weather information prototype using WeMos.
In 2016 2nd
International Conference on Contemporary Computing and Informatics (IC3I), IEEE. 2016;
612-616.
[13] Hao, Jack Jianxiu, Guillermo Ortiz, Heath Stallings, John P Valdez, Wei Xia, Joseph M Geiger. Smart
home device management. U.S. Patent 8,375,118. 2013; (February 12).
[14] Z. Min. Design of multi-channel wireless remote switch control system for smarthome control system.
2013 3rd
Int. Conf. Consum. Electron. Commun. Networks, CECNet 2013-Proc. 2013; 274–277.
[15] Naik, Nitin. Choice of effective messaging protocols for IoT systems: MQTT, CoAP, AMQP and HTTP.
In 2017 IEEE international systems engineering symposium (ISSE), IEEE. 2017; 1-7.
[16] M Bani Yassein, MQ Shatnawi, S Aljwarneh, R Al-Hatmi. Internet of Things: Survey and open issues
of MQTT Protocol. 2017.
[17] SM Sohan, F Maurer, C Anslow, MP Robillard. A Study of the Effectiveness of Usage Examples in
REST API Documentation. 2017: 53–61.
[18] Ferreira, Hiro Gabriel Cerqueira, Edna Dias Canedo, Rafael Timóteo de Sousa. IoT architecture to
enable intercommunication through REST API and UPnP using IP, ZigBee and arduino. In 2013 IEEE
9th
international conference on wireless and mobile computing, networking and communications
(WiMob), IEEE. 2013: 53-60.
[19] M Ammar, G Russello, B Crispo. Internet of Things: A survey on the security of IoT frameworks. J. Inf.
Secur. Appl. 2018; 38: 8–27.
[20] V Vujović, M Maksimović. Raspberry Pi as a Sensor Web node for home automation. Comput. Electr.
Eng. 2015; 44: 153–171.
[21] P Jutadhamakorn, T Pillavas, V Visoottiviseth, R Takano, J Haga, D Kobayashi. A Scalable and
Low-Cost MQTT Broker Clustering System. 2017.
[22] Rizzardi S, Sicari D, Miorandi A. Coen-Porisini, AUPS: An Open Source AUthenticated
Publish/Subscribe system for the Internet of Things. Inf. Syst. 2016; 62: 29–41.
[23] Soni, Dipa, Ashwin Makwana. A survey on MQTT: a protocol of internet of things (IoT). In International
Conference on Telecommunication, Power Analysis and Computing Techniques (ICTPACT-2017).
2017.
[24] SM Sohan, F Maurer, C Anslow, MP Robillard. A Study of the Effectiveness of Usage Examples in
REST API Documentation. 2017: 53–61.
[25] Teixeira, Pedro. Professional Node. js: Building Javascript based scalable software. John Wiley &
Sons. 2012.
[26] Video implementation results of this paper [Online]. Available on:
https://www.youtube.com/watch?v=H624MiBg2HY&t=29s

More Related Content

PDF
A1104010105
PDF
An improved electricity efficiency method based on microcontroller and IoT wi...
PDF
Design and Implementation of a Contactless Smart House Network System
PDF
Ethernet based home appliances control
PDF
Low cost energy-efficient smart monitoring system using open-source microcont...
PDF
Performance Evaluation of Smart Home System using Internet of Things
PDF
[IJET V2I3P5] Authors: Jamuna H G, Shobha Hugar
PDF
Sms based wireless appliances control
A1104010105
An improved electricity efficiency method based on microcontroller and IoT wi...
Design and Implementation of a Contactless Smart House Network System
Ethernet based home appliances control
Low cost energy-efficient smart monitoring system using open-source microcont...
Performance Evaluation of Smart Home System using Internet of Things
[IJET V2I3P5] Authors: Jamuna H G, Shobha Hugar
Sms based wireless appliances control

What's hot (18)

PDF
An insight into internet sector in Iraq
PDF
IRJET- Wifi based Smart Electric Meter using IoT
PDF
Fpga implementation of wireless data logger system
PDF
International journal of engineering issues vol 2015 - no 2 - paper2
PDF
Energy Meters using Internet of Things Platform
PDF
Ijret20120103031 head line mismatch
PDF
Real-time monitoring of the prototype design of electric system by the ubido...
PDF
NAIVE APPROACH FOR MEMORY MANAGEMENT IN SMART HOME GATEWAYS
PDF
Smart automatic petrol pump system based on internet of things
PDF
Maintain load balancing in wireless sensor networks using virtual grid based ...
PDF
Wireless Data Acquisition System Using ARM Cortex M-3
PDF
Implementation of embedded bluetooth data broadcast system
PDF
IRJET- GSM based Home Automation
PDF
The soap based mechanism for home environment using web services
PDF
Smart Garage Implementation and Design Using Whatsapp Communication Media
PDF
Design and implementation smart home alarm system with zigbee transceiver
PDF
UDP Pervasive Protocol Implementation for Smart Home Environment on MyRIO usi...
PDF
Low-cost wireless mesh communications based on openWRT and voice over interne...
An insight into internet sector in Iraq
IRJET- Wifi based Smart Electric Meter using IoT
Fpga implementation of wireless data logger system
International journal of engineering issues vol 2015 - no 2 - paper2
Energy Meters using Internet of Things Platform
Ijret20120103031 head line mismatch
Real-time monitoring of the prototype design of electric system by the ubido...
NAIVE APPROACH FOR MEMORY MANAGEMENT IN SMART HOME GATEWAYS
Smart automatic petrol pump system based on internet of things
Maintain load balancing in wireless sensor networks using virtual grid based ...
Wireless Data Acquisition System Using ARM Cortex M-3
Implementation of embedded bluetooth data broadcast system
IRJET- GSM based Home Automation
The soap based mechanism for home environment using web services
Smart Garage Implementation and Design Using Whatsapp Communication Media
Design and implementation smart home alarm system with zigbee transceiver
UDP Pervasive Protocol Implementation for Smart Home Environment on MyRIO usi...
Low-cost wireless mesh communications based on openWRT and voice over interne...
Ad

Similar to Implementation smart home using internet of things (20)

PDF
The design of a smart home controller based on ADALINE
PDF
IoT-based intelligent irrigation management and monitoring system using arduino
PDF
30 9137 e implementation of cloud connected smart plug (edit lafi)
PDF
Design and implementation of internet of things-based electrical monitoring s...
PDF
Hybrid NarrowBand-internet of things protocol for real time data optimization
PDF
Implementation of an Efficient Smart Home System using MQTT
PDF
Power consumption analysis on an IoT network based on wemos: a case study
PDF
Design and implementation of a smart home system with two levels of security ...
PDF
UBIQUITOUS SMART HOME SYSTEM USING ANDROID APPLICATION
PDF
IRJET - IoT based Smart City and Air Quality Monitor
PDF
IRJET-The Internet of Things Applications for Challenges and Related Future T...
PDF
IRJET - Energy Efficient Approach for Data Aggregation in IoT
PDF
Low-cost real-time internet of things-based monitoring system for power grid ...
PDF
Ethernet based home appliances control
PDF
Green House Automation using IoT
PDF
Evaluations of Internet of Things-based personal smart farming system for res...
PDF
Iot Based Society Automation Using GTBS Protocol
PDF
Data Communication in Internet of Things: Vision, Challenges and Future Direc...
PDF
Resource placement strategy optimization for smart grid application using 5G...
PDF
IRJET- A Review on: Smart and Advanced Living Technology (SALT)
The design of a smart home controller based on ADALINE
IoT-based intelligent irrigation management and monitoring system using arduino
30 9137 e implementation of cloud connected smart plug (edit lafi)
Design and implementation of internet of things-based electrical monitoring s...
Hybrid NarrowBand-internet of things protocol for real time data optimization
Implementation of an Efficient Smart Home System using MQTT
Power consumption analysis on an IoT network based on wemos: a case study
Design and implementation of a smart home system with two levels of security ...
UBIQUITOUS SMART HOME SYSTEM USING ANDROID APPLICATION
IRJET - IoT based Smart City and Air Quality Monitor
IRJET-The Internet of Things Applications for Challenges and Related Future T...
IRJET - Energy Efficient Approach for Data Aggregation in IoT
Low-cost real-time internet of things-based monitoring system for power grid ...
Ethernet based home appliances control
Green House Automation using IoT
Evaluations of Internet of Things-based personal smart farming system for res...
Iot Based Society Automation Using GTBS Protocol
Data Communication in Internet of Things: Vision, Challenges and Future Direc...
Resource placement strategy optimization for smart grid application using 5G...
IRJET- A Review on: Smart and Advanced Living Technology (SALT)
Ad

More from TELKOMNIKA JOURNAL (20)

PDF
Earthquake magnitude prediction based on radon cloud data near Grindulu fault...
PDF
Implementation of ICMP flood detection and mitigation system based on softwar...
PDF
Indonesian continuous speech recognition optimization with convolution bidir...
PDF
Recognition and understanding of construction safety signs by final year engi...
PDF
The use of dolomite to overcome grounding resistance in acidic swamp land
PDF
Clustering of swamp land types against soil resistivity and grounding resistance
PDF
Hybrid methodology for parameter algebraic identification in spatial/time dom...
PDF
Integration of image processing with 6-degrees-of-freedom robotic arm for adv...
PDF
Deep learning approaches for accurate wood species recognition
PDF
Neuromarketing case study: recognition of sweet and sour taste in beverage pr...
PDF
Reversible data hiding with selective bits difference expansion and modulus f...
PDF
Website-based: smart goat farm monitoring cages
PDF
Novel internet of things-spectroscopy methods for targeted water pollutants i...
PDF
XGBoost optimization using hybrid Bayesian optimization and nested cross vali...
PDF
Convolutional neural network-based real-time drowsy driver detection for acci...
PDF
Addressing overfitting in comparative study for deep learningbased classifica...
PDF
Integrating artificial intelligence into accounting systems: a qualitative st...
PDF
Leveraging technology to improve tuberculosis patient adherence: a comprehens...
PDF
Adulterated beef detection with redundant gas sensor using optimized convolut...
PDF
A 6G THz MIMO antenna with high gain and wide bandwidth for high-speed wirele...
Earthquake magnitude prediction based on radon cloud data near Grindulu fault...
Implementation of ICMP flood detection and mitigation system based on softwar...
Indonesian continuous speech recognition optimization with convolution bidir...
Recognition and understanding of construction safety signs by final year engi...
The use of dolomite to overcome grounding resistance in acidic swamp land
Clustering of swamp land types against soil resistivity and grounding resistance
Hybrid methodology for parameter algebraic identification in spatial/time dom...
Integration of image processing with 6-degrees-of-freedom robotic arm for adv...
Deep learning approaches for accurate wood species recognition
Neuromarketing case study: recognition of sweet and sour taste in beverage pr...
Reversible data hiding with selective bits difference expansion and modulus f...
Website-based: smart goat farm monitoring cages
Novel internet of things-spectroscopy methods for targeted water pollutants i...
XGBoost optimization using hybrid Bayesian optimization and nested cross vali...
Convolutional neural network-based real-time drowsy driver detection for acci...
Addressing overfitting in comparative study for deep learningbased classifica...
Integrating artificial intelligence into accounting systems: a qualitative st...
Leveraging technology to improve tuberculosis patient adherence: a comprehens...
Adulterated beef detection with redundant gas sensor using optimized convolut...
A 6G THz MIMO antenna with high gain and wide bandwidth for high-speed wirele...

Recently uploaded (20)

PPTX
Construction Project Organization Group 2.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
additive manufacturing of ss316l using mig welding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
PPT on Performance Review to get promotions
DOCX
573137875-Attendance-Management-System-original
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Digital Logic Computer Design lecture notes
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPT
Project quality management in manufacturing
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Lecture Notes Electrical Wiring System Components
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Construction Project Organization Group 2.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
additive manufacturing of ss316l using mig welding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPT on Performance Review to get promotions
573137875-Attendance-Management-System-original
CYBER-CRIMES AND SECURITY A guide to understanding
Digital Logic Computer Design lecture notes
Operating System & Kernel Study Guide-1 - converted.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
Project quality management in manufacturing
UNIT-1 - COAL BASED THERMAL POWER PLANTS
OOP with Java - Java Introduction (Basics)
Internet of Things (IOT) - A guide to understanding
Lecture Notes Electrical Wiring System Components
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Embodied AI: Ushering in the Next Era of Intelligent Systems
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf

Implementation smart home using internet of things

  • 1. TELKOMNIKA, Vol.17, No.6, December 2019, pp.3126~3136 ISSN: 1693-6930, accredited First Grade by Kemenristekdikti, Decree No: 21/E/KPT/2018 DOI: 10.12928/TELKOMNIKA.v17i6.11722 ◼ 3126 Received November 9, 2018; Revised May 30, 2019; Accepted July 2, 2019 Implementation smart home using internet of things Afrizal Mayub1 , Fahmizal*2 , Ma’ruf Shidiq3 , Unan Yusmaniar Oktiawati4 , Nur Rohman Rosyid5 1 Graduate School of Science Education, University of Bengkulu 2,3,4,5 Department of Electrical Engineering and Informatics, Vocational College, Universitas Gadjah Mada * Corresponding author, e-mail: fahmizal@ugm.ac.id Abstract Development in technology of information today provides various facilities to support human activity. One technology that facilitates human is the use of automated systems, the application of smart home system makes it easier for users to control household electronic devices. This study addresses one of the smart home solutions with automation systems. The system is built using ESP8266 and Raspberry Pi devices, by utilizing MQTT, REST and Laravel framework protocols. With Arduino, Python and PHP programming, household devices can be controlled both automatically and manually. Control system can be done by using web, chatbot, and physically. The communication used utilizes wireless network. With the designed system, the users can control the device, gain information and get warning. The information provided by the system is obtained from open data on the internet and from the sensor installed on the device. Keywords: Internet of Things, MQTT, REST, smart home Copyright © 2019 Universitas Ahmad Dahlan. All rights reserved. 1. Introduction Modern life today demands higher mobility, everything is designed to make human life becomes easier. Technology does not escape into one of the major problems that developed during this period. It can be seen from the development of internet network that has boomed in the past decade, from the data resulted from Cisco prediction, it was found that in the period of 2012 to 2017 the use of internet usage has grown by 13 times higher compared to the previous years of use [1-4]. Internet today is not only used to access emails and articles, but also can be used as a means of remote electronic controller both at work and at home, which is commonly known as smart home. Remote control system allows one to control household electronic devices anywhere and anytime by using any computer or mobile phone contained a web browser application that can open a web which is used to control electronic devices in home such as lights, fan, air conditioner (AC) and garage [5-7]. Internet of Things (IoT) is a paradigm of the latest communications which is envisioned as a future, this technology adds everyday devices with a microcontroller, the device allows sender-receiver digital communication and is connected to a communication protocol that allows each device to connect with other devices [8]. The concept of IoT aims to make the internet more depth and breadth in its use. Furthermore, the ease of interaction between devices such as home appliances, surveillance cameras, vehicles and other equipment’s is presented in Figure 1. This paradigm can find a variety of applications in many different scientific domains, such as smart homes, industrial automation, automation in the medical field, intelligent energy management and intelligent network that are applied to the vehicle, traffic and many more. A smart home system besides can be controlled remotely, it also can provide information about the actual conditions in the home, one of them is the weather information and security information. So that residents can easily monitor the condition of the house through the developed interface. In addition, a smart home system can also interact with other data sources, such as interacts with weather prediction system, so that residents can consider the activities to be carried out [9-12]. This paper aims to understand the basics of using message queuing telemetrytransport (MQTT) protocol as a means of communication between the remote device with the server, to
  • 2. TELKOMNIKA ISSN: 1693-6930 ◼ Implementation smart home using internet of things (Afrizal Mayub) 3127 desig a platform that consists of hardware and software as the foundation in the manufacture of Internet of Things (IoT) device, and to implement the results of the designed platform as the basis for making the smart home. 2. Research Method 2.1. Smart Home Architectures Home is a building that cannot be separated from human life because home is a primary necessity. To be able to function physiologically, a home must be equipped with various facilities required, such as electricity, water, lighting and others [13]. Along with the developments that LED to the digital era, nowadays there are a lot of research trying to make a home becomes easier to control. The term smart home has widely stated by researchers and activists in automation field. But to make a house into a smart home, it is needed a system to handle this. Smart home control system (SCS) is a system to manage and to control a home in order to improve the safety and comfort of home owners by improving the system of environmental protection, energy savings, simplifying the setting of both digital devices and mechanical devices becomes easier [14]. Figure 1. Smart devices on smart home illustration 2.2. MQTT dan REST Protocols Message Queuing Telemetry Transport (MQTT) Protocol is a protocol that runs at over TCP/IP stack and has a data packet size with small low overhead (minimum 2 bytes) that has an impact on the consumption of the power supply that is also quite small [15]. This protocol is the type of data-agnostic protocol which means that it can transmit any data such as binary data, text even XML or JSON and this protocol applies publish/subscribe model as shown in Figure 2, where the model is different from most protocol that typically uses client-server model. By default, MQTT protocol runs on TCP/IP port 1883, the protocol is widely used in communication Machine to Machine (M2M) and IoT. This is because MQTT is appropriate to be used on devices that have limited capabilities in terms of bandwidth and data transmission as well as is limited to the reliability of data transmission [16]. MQTT is a message-based protocol with the address of a message specifically mentioned as a Topic. Representational State Transfer (REST) is an architecture of communication method that used HTTP protocol for data changing and this method is often applied in application development. The goal is to make a system that has a good performance, quick and easy to be developed (scale), particularly in the exchange and communication of data. REST is also one of the mechanisms of integration that has been very dominant to be used on the internet, REST has four essential components in it such as URL Design, HTTP Verbs, HTTP Response Code, Format Response [17, 18]. In Figure 2 it is explained that a REST server will handle the data exchange process between REST client with the database.
  • 3. ◼ ISSN: 1693-6930 TELKOMNIKA Vol. 17, No. 6, December 2019: 3126-3136 3128 Figure 2. MQTT and REST Architecture 2.3. Overview of the Smart Home System Smart home control systems work by connecting electronic devices in the house with a control device which has been designed to connect to the Internet network, either wired or wireless. These electronic devices will be controlled by the state of data transmitted over MQTT protocol, the data is obtained from the user's command or triggered based on data from other systems, such as weather prediction system. In addition to taking orders in the form of specific states, the electronic device on the smart home system can also transmit data to other devices, so that data such as temperature, humidity and security conditions, can be monitored remotely via the web. The following is the design of smart home system as a whole which is presented in Figure 3 (a). Smart home control system design is done by utilizing m-Platform. Some of the features that will be covered in this study include lighting control, air conditioning control, garage door control, all of which can be remotely controlled either manually or automatically. Prototyping house is done using CAD software and has a size of 1:30 of the size of the original house. House design used as prototypes in this study has two floors, with a total of three rooms on the first floor and four rooms on the second floor, where the design of a prototype of this house is shown in Figure 3 (b). Installation of Light Emitting Diode (LED) lights in each room as many as 2-6 items is used as a substitute for AC lighting installations simulation in the home. The use of home prototypes with a ratio of 1:30 is meant to be able to simulate the use of m-Node as a replacement of the manual switch, because the majority of the electrical installation in the house puts the light switch of a room located in one place, so that to implement the system of these prototypes in real homes, users should only replace the switch part into m-node device, as shown in Figure 4. The use of m-Node in addition to be used to control lights, can also be used to control other household appliances, such as water pumps, plants watering, fan and other equipment’s. Thus, only by using an m-Node, the household appliances of conventional equipment can be turned into connected to the Internet and can be controlled remotely. In the garage, in addition to control lights, m-Node is also used to control a servo motor which then can be used to open and close the garage door remotely and automatically. In Figure 5 (a) it can be seen that for installation on the first floor, it needs four pieces of m-Node from ESP8266.
  • 4. TELKOMNIKA ISSN: 1693-6930 ◼ Implementation smart home using internet of things (Afrizal Mayub) 3129 (a) Garage Room 3 Room 1 Room 2 (b) Figure 3. (a) Design of a smart home system (b) House prototype design Figure 4. Illustration of using m-Node as a switch m-node configuration on the second floor does not use ESP8266, but it uses the Raspberry Pi, the use of Raspberry Pi is intended to try to implement m-Node system on multiple devices. By using the Raspberry Pi, the installation of wiring the lights on the second floor will be like in Figure 5 (b), where all the cable light will lead to specific location, such configuration is appropriate to be applied to new buildings, because the design of cable installation can be set up from the beginning, so it will not interfere with an existing electrical installation. User Broker node = m-Node Skala 1 : 30
  • 5. ◼ ISSN: 1693-6930 TELKOMNIKA Vol. 17, No. 6, December 2019: 3126-3136 3130 Raspberry Pi has several advantages compared with ESP8266, among others, can be connected with some kind of connectivity, such as Wi-Fi, ethernet and Bluetooth. In addition, the Raspberry Pi is also equipped with an output that can be used as an interface, such as HDMI and Audio Jack, so in this study, the audio output will be used to give warnings and information such as weather conditions, as well as congestion. This information data will be obtained from several providers of information on the Internet through Application Programming Interface (API), the use of API will allow any person to obtain data and to integrate it on the device that is being developed, so that there will be more integrated devices in the future. The examples of data obtained freely from weather data provider among others are information about temperature, humidity, pressure, wind speed, cloud conditions, visibility and other information. The data is used as reference of the system developed in this study. (a) (b) Figure 5. (a) Installation of m-Node installation on the first floor (b) m-Node installation design on the second floor 3. m-Platform Design 3.1. Overview of the m-Platform m-Platform is a platform that consists of integrated software and hardware used to facilitate IoT project. m-Platform consists of several parts: m-Node, m-Broker, m-Dashboard and m-Gateway. The entire section of the m-Platform is connected to one another into a single integrated system. The topology of m-Platform shown in Figure 6 (a). 3.2. m-Node Any device that can connect to the Internet, ranging from censorship of the simplest to the complex cloud servers are the parts of the IoT in which the phrase 'Things' refers to objects Floor 1 ESP8266 ESP8266 ESP8266 ESP8266 Room 1 Room 2 Room 3 Garage (3 Lamps) (4 Lamps) (5 Lamps) (4 Lamps) Raspberry Pi SpeakerFloor 2 Room 1 Room 2 Room 4Room 3
  • 6. TELKOMNIKA ISSN: 1693-6930 ◼ Implementation smart home using internet of things (Afrizal Mayub) 3131 that vary widely such as lamps, IP cameras, thermostats, alarm clock and others [19]. All electronic equipment’s in the world can be a component of the IoT if it has internet connectivity, therefore in this study it will be made an m-node device as additional device that integrate electronics with the internet. On Figure 6 (b) indicated that the m-Node device requires the ability to bridge both the data transmission from the electronic device to the internet and vice versa. Therefore, there is a lot of choice in developing m-Node, among others ESP8266, Raspberry Pi and Arduino. All three devices are examples of some of the electronic platform that can be used as m-Node, but in this study, the discussion will be more focused on the use of ESP8266 and Raspberry Pi [20], this is because both of these devices have had the ability to connect to the internet by using Wi-Fi and ethernet. In use, each m-Node will have each 'NodeID' and 'NodeKey' as identity. NodeID and NodeKey are obtained from the website of 'nodemanager' in which they will be unique. (a) (b) Figure 6. (a) m-Platform topology (b) m-Node topology 3.3. m-Broker Currently the development of IoT is very rapid, ranging from household appliances, enterprises to industrial equipment. To handle the IoT devices that are increasing in number, it needed a messaging intermediary (broker) who is able to handle the amount of communication among IoT devices [21]. A broker serves to bridge the data transmission between the connected devices. In this research, will use the MQTT protocol as a broker. As shown in Figure 7 (a), a data will be transmitted through a broker to mark it as a topic [22]. There are several open-source projects that handle the development of MQTT Broker, one of which is mosquitto. The use of mosquitto in this research because mosquito is easy to install and have already implementing MQTT protocols version 3.1.1 [23]. 3.4. m-Gateway The development of IoT in the future will combine the real world with the virtual world, where the interaction between devices will make human life better. However, to make virtual objects can interact with users, it certainly does not like the communication made by the device to other devices, moreover, it is necessary for a solution where the development of this interaction can be done easily by all devices or by users [24]. This research will try to combine two protocol m-Node Internet Electronic Devices
  • 7. ◼ ISSN: 1693-6930 TELKOMNIKA Vol. 17, No. 6, December 2019: 3126-3136 3132 in order to deal with the existing problems, the MQTT protocol will handle communication between devices, while the REST protocol will handle communications between the user and the device. Figure 7 (b) explained that both protocols will be set to use on Data Layer, where basically all the data either received or requested on each protocol will be stored in the same database. (a) (b) Figure 7. (a) Example of a scheme for using m-Broker (b) m-Gateway architecture 3.5. m-Dashboard To be able to control or view data from IoT devices, it is necessary to have an interface system that can facilitate a user to manage the device in large quantities. There are many types of interfaces that can be used, but there is a very popular interface due to its ease of access, namely web interface, this interface can be easily accessed from all types of electronic devices such as computers, laptops, mobile phones even smart televisions can also access it. In this study, will use a web interface with a programming language of PHP (PHP Hypertext Preprocessor) and JavaScript, while for the base data that used, it will combine MySQL with Mongoo [25]. M-Dashboard Design will be made moreover users can customize to their individual needs, so users can adjust their Dashboard more freely, one example of the target results from the m-Dashboard can be seen in Figure 8. The use of m-Dashboard can also facilitate researchers to monitor the condition of the device, the interaction data both from and to the m-Dashboard is derived from m-Gateway, with communication media by using REST protocol. Figure 8. Example of m-Dashboard DB
  • 8. TELKOMNIKA ISSN: 1693-6930 ◼ Implementation smart home using internet of things (Afrizal Mayub) 3133 4. Testing and Discussion 4.1. Communication of MQTT This study uses MQTT protocol as the communication protocol between devices, MQTT works by using the topic as a hierarchy of data transmission where each topic is a reference of the data transmitted. For example, a device wants to transmit data of temperature sensors, moreover, the topic example that that can be used is "device/1/sensor/temp" after a device transmits data on this topic, then the other device can take the data by subscribing to the same topic. Therefore, a topic should be regulated so as not to overlap one another. The composition of the topic used in this study are 28 topics, such as can be seen in Table 1. Table 1. Topic Division of MQTT Floor Room Item Topic Message 1st floor Living room lamp 1 room/1/lamp/1/state 0 = OFF; 1 = ON lamp 2 room/1/lamp/2/state 0 = OFF; 1 = ON lamp 3 room/1/lamp/3/state 0 = OFF; 1 = ON lamp 4 room/1/lamp/4/state 0 = OFF; 1 = ON door room/1/door/lock 0 = LOCK; 1 = OPEN door detection room/1/door/state 0 = LOCK; 1 = OPEN Room 2 lamp 1 room/2/lamp/1/state 0 = OFF; 1 = ON lamp 2 room/2/lamp/2/state 0 = OFF; 1 = ON lamp 3 room/2/lamp/3/state 0 = OFF; 1 = ON lamp 4 room/2/lamp/4/state 0 = OFF; 1 = ON lamp 5 room/2/lamp/5/state 0 = OFF; 1 = ON Garage lamp 1 room/3/lamp/1/state 0 = OFF; 1 = ON lamp 2 room/3/lamp/2/state 0 = OFF; 1 = ON lamp 3 room/3/lamp/3/state 0 = OFF; 1 = ON lamp 4 room/3/lamp/4/state 0 = OFF; 1 = ON door room/3/door/1/lock 0 = CLOSE, 1 = OPEN 2nd Floor Room 4 lamp 1 room/4/lamp/1/state 0 = OFF; 1 = ON lamp 2 room/4/lamp/2/state 0 = OFF; 1 = ON lamp 3 room/4/lamp/3/state 0 = OFF; 1 = ON lamp 4 room/4/lamp/4/state 0 = OFF; 1 = ON Room 5 lamp 1 room/5/lamp/1/state 0 = OFF; 1 = ON lamp 2 room/5/lamp/2/state 0 = OFF; 1 = ON lamp 3 room/5/lamp/3/state 0 = OFF; 1 = ON lamp 4 room/5/lamp/4 0 = OFF; 1 = ON Room 6 lamp 1 room/6/lamp/1 0 = OFF; 1 = ON lamp 2 room/6/lamp/2 0 = OFF; 1 = ON lamp 3 room/6/lamp/3 0 = OFF; 1 = ON lamp 4 room/6/lamp/4 0 = OFF; 1 = ON air conditioning room/6/AC/state 0 = OFF; 1 = ON AC temp room/6/AC/temp input Temp (Default = 20) Outdoor Garden lamp out/1/lamp/state 0 = OFF; 1 = ON 4.1. Use Case Scenario Users will be able to control the home electronic devices via a button on the device or through the Internet. Users can turn on or turn off the lights, control air conditioning temperature, open the garage door and other electronic devices that are connected to the m-Node. Users can access the interface from either system control page from the network or the Internet network. In addition to control, users can also obtain information from the m-Node, such as temperature, light intensity, door security conditions and others. The interface used in the form of web and chatbot. In general, the illustration of the use case scenario in this study is illustrated in Figure 9 (a). In addition to working on the orders of users, this smart home system can also work automatically, in accordance with the rules set by the user, there are some automated systems that are used in this study, these systems are used to improve the comfort and the safety of users. The security system applied in the form of a forced door and window opening detection, this detection uses sensors that have been installed on the door or window, which if the condition of the door is supposed to be locked but is detected open, the system will automatically sound an alarm and notify users, and provide brief reports to security forces around the house, in general, this system is illustrated in Figure 9 (b). When the afternoon and morning arrived, the automatic system for the garden lights will function. This system will turn on the garden lights if the time shows at 17.30 and will turn it off at 05.00. The data time is obtained from the server on the internet. But apart by time, to turn
  • 9. ◼ ISSN: 1693-6930 TELKOMNIKA Vol. 17, No. 6, December 2019: 3126-3136 3134 the lights are also based on data from the intensity of the light coming from the light sensor, these sensors can provide information about the intensity of light at a time and the user can set the minimum mark to turn lights on and off the garden light, in general, this automated system illustrated in Figure 10 (a). The smart home system can also arrange for all of the devices currently on the conditions is set out when users come from outside of a home or when the user leaves home. This system is referred to as home/away mode, or a mode that determines the presence of users. Users can set this mode through the web or through chatbot, therefore the users no longer need to turn on or turn off the electronic devices. In general, this system is illustrated in Figure 10 (b). (a) (b) Figure 9. (a) Use case diagram (b) Door security detection flow (a) (b) Figure 10. (a) Automation of garden lights (b) Home away mode There are several features on the website that are used as smart home controllers, features designed to make it easier for users to control household devices at home. This website display can be viewed in Figure 11. There are some columns that divide each home device based on function and room. The web, which is designed to be opened through a computer or laptop device, can also be opened via mobile devices such as Android and iPhone, this is because Controlling Lamp, AC, Door and Garage Get Information from home Start Door Lock? Is Door Open? End Activate Alarm Notice User Yes Yes No No Start Lux < Set Lux Time = Set TimeOn End Yes Yes No No Turn On Lamp Time = Set TimeOff No Turn Off Lamp Yes Start Home Mode Away Mode End Turn Off AC and Lamp Open Garage Yes Yes No No Turn On AC and Lamp Lock Garage
  • 10. TELKOMNIKA ISSN: 1693-6930 ◼ Implementation smart home using internet of things (Afrizal Mayub) 3135 the web display is designed responsively and mobile-friendly moreover the web display can adjust the screen size of the accessing device. The miniature results of prototypes design of a smart home are presented in Figure 12 and video [26] displays the test results of smart home design using m-Platform. Figure 11. Web appearance when opened on a mobile device Figure 12. The results of a prototype design of a house as a miniature smart house 5. Conclusion This paper has described the designing process of the smart home using m-Platform by using the features of the website which can be accessed using a computer or laptop and can also be opened via mobile devices such as Android and iPhone. This study uses MQTT protocol as the communication protocol between devices, MQTT works by using the topic as a hierarchy of data transmission where each topic is a reference of the data transmitted. Furthermore, m-Platform is planned as an open-source project that can be studied, modified, improved and disseminated. Therefore, everyone who wants to create the IoT project can easily create prototypes for the project they want to make. In addition, by making m-Platform as an open-source project, it is expected that more people will contribute to the m-Platform development process, moreover, the development of IoT in Indonesia can be done more easily because there are already platforms that have handled the core part of technical development tools to be made.
  • 11. ◼ ISSN: 1693-6930 TELKOMNIKA Vol. 17, No. 6, December 2019: 3126-3136 3136 References [1] X An, G Kunzmann. Understanding mobile Internet usage behaviour. 2014 IFIP Netw. Conf. IFIP Netw. 2014; January. [2] Khan, Rafiullah, Sarmad Ullah Khan, Rifaqat Zaheer, Shahid Khan. Future internet: the internet of things architecture, possible applications and key challenges. In 2012 10th international conference on frontiers of information technology, IEEE. 2012; 257-260. [3] Da Xu, Li, Wu He, Shancang Li. Internet of things in industries: A survey. IEEE Transactions on industrial informatics. 2014; 10(4): 2233-2243. [4] Yaqoob I, Ahmed E, Hashem IAT, Ahmed AIA, Gani A, Imran M, Guizani M. Internet of things architecture: Recent advances, taxonomy, requirements, and open challenges. IEEE wireless communications. 2017; 24(3): 10-16. [5] Munadi, Rendy, Arief Rakhman, Doan Perdana. Smart Garage Implementation and Design Using Whatsapp Communication Media. TELKOMNIKA Telecommunication Computing Electronics and Control. 2018; 16(3): 1107-1113. [6] Sawidin, Sukandar, Deitje Sofie Pongoh, Ali Akbar Sreven Ramschie. Design of Smart Home Control System Based on Android. In 2018 International Conference on Applied Science and Technology (iCAST), IEEE. 2018: 165-170. [7] Li, Baoan, Jianjun Yu. Research and application on the smart home based on component technologies and Internet of Things. Procedia Engineering. 2011; 15: 2087-2092. [8] Zanella, N. Bui, a Castellani, L. Vangelista, M. Zorzi. Internet of Things for Smart Cities. IEEE Internet Things Journal. 2014; 1(1): 22–32. [9] M Naglič, A Souvent. Concept of Smart Home and Smart Grids integration. IYCE 2013-4th Int. Youth Conf. Energy. 2013; 1-5. [10] Lee, Meonghun, Jeonghwan Hwang, Hyun Yoe. Agricultural production system based on IoT. In 2013 IEEE 16th International Conference on Computational Science and Engineering, IEEE. 2013: 833-837. [11] Xiaojun C, Xianpeng L, Peng X. IoT-based air pollution monitoring and forecasting system. In 2015 International Conference on Computer and Computational Sciences (ICCCS). IEEE. 2015: 257-260. [12] Kodali, Ravi Kishore, Archana Sahu. An IoT based weather information prototype using WeMos. In 2016 2nd International Conference on Contemporary Computing and Informatics (IC3I), IEEE. 2016; 612-616. [13] Hao, Jack Jianxiu, Guillermo Ortiz, Heath Stallings, John P Valdez, Wei Xia, Joseph M Geiger. Smart home device management. U.S. Patent 8,375,118. 2013; (February 12). [14] Z. Min. Design of multi-channel wireless remote switch control system for smarthome control system. 2013 3rd Int. Conf. Consum. Electron. Commun. Networks, CECNet 2013-Proc. 2013; 274–277. [15] Naik, Nitin. Choice of effective messaging protocols for IoT systems: MQTT, CoAP, AMQP and HTTP. In 2017 IEEE international systems engineering symposium (ISSE), IEEE. 2017; 1-7. [16] M Bani Yassein, MQ Shatnawi, S Aljwarneh, R Al-Hatmi. Internet of Things: Survey and open issues of MQTT Protocol. 2017. [17] SM Sohan, F Maurer, C Anslow, MP Robillard. A Study of the Effectiveness of Usage Examples in REST API Documentation. 2017: 53–61. [18] Ferreira, Hiro Gabriel Cerqueira, Edna Dias Canedo, Rafael Timóteo de Sousa. IoT architecture to enable intercommunication through REST API and UPnP using IP, ZigBee and arduino. In 2013 IEEE 9th international conference on wireless and mobile computing, networking and communications (WiMob), IEEE. 2013: 53-60. [19] M Ammar, G Russello, B Crispo. Internet of Things: A survey on the security of IoT frameworks. J. Inf. Secur. Appl. 2018; 38: 8–27. [20] V Vujović, M Maksimović. Raspberry Pi as a Sensor Web node for home automation. Comput. Electr. Eng. 2015; 44: 153–171. [21] P Jutadhamakorn, T Pillavas, V Visoottiviseth, R Takano, J Haga, D Kobayashi. A Scalable and Low-Cost MQTT Broker Clustering System. 2017. [22] Rizzardi S, Sicari D, Miorandi A. Coen-Porisini, AUPS: An Open Source AUthenticated Publish/Subscribe system for the Internet of Things. Inf. Syst. 2016; 62: 29–41. [23] Soni, Dipa, Ashwin Makwana. A survey on MQTT: a protocol of internet of things (IoT). In International Conference on Telecommunication, Power Analysis and Computing Techniques (ICTPACT-2017). 2017. [24] SM Sohan, F Maurer, C Anslow, MP Robillard. A Study of the Effectiveness of Usage Examples in REST API Documentation. 2017: 53–61. [25] Teixeira, Pedro. Professional Node. js: Building Javascript based scalable software. John Wiley & Sons. 2012. [26] Video implementation results of this paper [Online]. Available on: https://www.youtube.com/watch?v=H624MiBg2HY&t=29s