Professional Documents
Culture Documents
MQTT Smart House
MQTT Smart House
All this data retrieved from the wemos devices automate lighting control in house based on the
needs to centralized. It can be used with programs like ambient light. Furthermore, implementing a cloud
MQTT Explorer, but it is not a practical way to do this. solution will allow you to access data from
In this scope on the second raspberry pi board will be everywhere, not only your personal network
installed openHAB, short for open automation bus. A system like this will evolve with the further
OpenHAB is opensource home automation platform development of technologies like ESP8266, openHAB
with the ability to integrate devices from different
platform and MQTT. For openHAB there is already a
developers and vendors like LG, Philips or Samsung
version 3 in development.
and it also support the MQTT protocol, although this
was made available with version 2 of openHAB [10].
OpenHAB work by linking things that are represented VII. REFERENCES
by physical objects with items that represents the
[1] MQTT protocol [Online]: http://mqtt.org/faq
functionality of the thing. In our case the thing is
[2] Perry Lea, "Internet of Things for Architects", Packt
represented by the wemos devices that are linked to Publishing, 2018
items represented by the temperature or humidity [3] MQTT v3.1.1 Oasis standard [Online]:
readings or the relay status. http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-
In our case openHAB is used to display v3.1.1.html
temperature and humidity, in Celsius degrees and [4] MQTT pub/sub architecture [Online]:
percentages, from the two rooms, bedroom and living https://1sheeld.com/mqtt-protocol/
[5] Andy Stanford-Clark and Hong Linh Truong,
room and to control a power switch from the living "MQTT For Sensor Networks (MQTT-SN) Protocol
room with a toggle button, represented in fig. 8. Specification", IBM, November 14, 2013
[6] John C. Hastings, David M. Laverty, "Modernizing
VI. VI. CONCLUSION AND FUTURE WORK wide-area grid communications for distributed
energy resource applications using MQTT publish-
subscribe protocol", IEEE Power & Energy Society
In our setup we presented a simple MQTT General Meeting, 16-20 July 2017
implementation example in a smart home environment [7] Marco Pau et al., "A cloud-based smart metering
using ESP8266 based development boards, wemos d1 infrastructure for distribution grid services and
mini, and openHAB platform. The ESP8266 offers the automation", Sustainable Energy, Grids and
Networks, Volume 15, September 2018, Pages 14-
ability to control devices like sensors or relay shields 25
via wireless internet network. This means that devices [8] Abouzar Estebsari, Edoardo Patti, Luca Barbierato,
can be used anywhere on our premises as long they are "Fault Detection, Isolation and Restoration Test
in the Wi-Fi router coverage area. The configuration Platform Based on Smart Grid Architecture Model
Using Internet-of-Things Approaches", 18th IEEE
used can be extended by adding sensor for AC voltage International Conference on Environment and
and current measurements for all the power sockets Electrical Engineering (EEEIC), June 2018
where the daily used appliances are plugged in. In [9] Andrew Minteer, "Analytics for the Internet of
addition, there can be added automation controls for Things (IoT)", Packt Publishing, 2017
[10] OpenHAB documentation [Online]:
powering on the air conditioning system when the https://www.openhab.org/docs/
temperature exceeds a certain setpoint value or to