Home Automation System for Rental Properties

Total Page:16

File Type:pdf, Size:1020Kb

Home Automation System for Rental Properties HOME AUTOMATION SYSTEM FOR RENTAL PROPERTIES Kotiautomaatiojärjestelmä Vuokra-asunnoille Bachelor’s thesis Valkeakoski – Electrical and Automation Engineering Spring Semester 2021 Mauricio Alvarez Rojano Electrical and Automation Engineering Abstract Author Mauricio Alvarez Rojano Year 2021 Subject Home Automation System for Rental Properties Supervisors Timo Väisänen This thesis describes the development and implementation of a home automation system for rental properties. It can connect to a variety of wireless sensors, lights and other devices from different vendors with a user interface accessible from a computer or a smart phone. An additional goal of this project was to make the system locally or remotely controlled. The automation system should be flexible enough to be implemented in any type of rental property. This project targeted a typical student rental apartment in the City of Tampere and the focus of the system concentrated on lighting control, leak detection, temperature monitoring and security. An open-source home automation platform was selected based on the hardware required to run the system, the number of supported devices and the size of an active community behind the platform. The hardware to run the home automation system was selected based on its expandability options. The controllable devices and sensors suitable for this project were selected based on their cost and characteristics. The ZigBee protocol was chosen for this project. The result of this project is a fully functional home automation system that can be implemented into any rental property, which allows you to control, schedule and/or automate any ZigBee light or a controllable outlet. It also offers the possibility to monitor ZigBee sensors that provide various pieces of information such as whether a door is open or closed, the temperature, light levels and leak detection. The system can be monitored and/or controlled locally and remotely. Keywords Home automation, Home Assistant, Lighting control, ZigBee Pages 36 pages Contents 1 Introduction...............................................................................................................1 2 Theoretical foundations.............................................................................................1 3 Aim of thesis.............................................................................................................. 3 4 Research process....................................................................................................... 3 4.1 HUB hardware..................................................................................................4 4.1.1 Raspberry Pi..........................................................................................4 4.1.2 Network-attached storage (NAS)......................................................... 5 4.1.3 Desktop computer................................................................................5 4.2 Communication protocols................................................................................6 4.2.1 Z-Wave..................................................................................................6 4.2.2 RF 433.92 MHz......................................................................................7 4.2.3 Wi-Fi..................................................................................................... 7 4.2.4 ZigBee...................................................................................................8 4.3 Antennas.......................................................................................................... 8 4.4 Software...........................................................................................................9 4.4.1 Home Assistant...................................................................................10 4.4.2 Linux server........................................................................................ 10 4.4.3 Virtual machine or Docker..................................................................11 4.4.4 Portainer.............................................................................................12 4.4.5 SSH......................................................................................................12 4.4.6 Node-RED........................................................................................... 13 5 Development and implementation of system.........................................................13 5.1 Property......................................................................................................... 14 5.1.1 Controlled devices..............................................................................15 5.2 Cost calculation..............................................................................................17 5.3 Server set-up..................................................................................................18 5.3.1 Linux server installation......................................................................18 5.3.2 Docker and Portainer installation.......................................................19 5.4 Installation and set-up of Home Assistant..................................................... 19 5.4.1 Set-up................................................................................................. 20 5.4.2 SSH connection...................................................................................21 5.4.3 Back-up system...................................................................................22 5.4.4 Dresden Elektronik ConBee II set-up..................................................22 5.5 Configuration of devices and system............................................................. 22 5.5.1 Pairing devices....................................................................................22 5.5.2 User interface.....................................................................................24 5.5.3 Automations.......................................................................................27 5.5.4 Remote access....................................................................................33 5.5.5 Mobile application..............................................................................34 6 Project results..........................................................................................................35 7 Conclusions..............................................................................................................36 References...................................................................................................................... 37 1 1 Introduction Home automation holds significant potential in the overall smart home industry in developed countries. The market is gaining growth due to the rising adoption of the internet of things mostly in developed countries. Users prefer advanced standards of living where they have access to technologically connected devices, which include televisions, refrigerators, smartphones, and many other electronic devices. Some studies estimated the home automation market to be worth 45.8 Billion US dollars and project a growth on this market to reach 124.18 Billion US dollars by 2025. (Home Automation Market, 2019) The more robust systems like KNX and others, provided by companies with a lot of experience in building automations often require a change in the wiring of the property, to be able to implement home automation systems (KNX Basic, n.d.). This situation poses a challenge for rental houses or apartments where such changes cannot be done. This often leaves no options for tenants who would want to implement automations in their homes. 2 Theoretical foundations In this last decade, the smart home industry has come a long way and currently offers a wide variety of devices using various technologies. Often to control a particular device the user is required to install an application, an “app”. The issue starts when each device requires the installation of its own application to perform one task. To control the thermostat the user has one app, to control the lights the user has another app, to control outlets, another app. The homeowner’s smartphone can be filled with multiple apps, all to control different devices and all dedicated to controlling the home under normal living conditions. A better way would be to install a dedicated, centralized solution. (5 Common Home Automation Problems And How We Solve Them, n.d.) “When you add devices to your smart home, you usually have to download and use additional apps, which is frustrating and confusing. You can avoid all that—and you do not need a hub to do it. You just need one app.” (Hendrickson, 2019) 2 Often these apps are designed to transfer data to the cloud, which does all the heavy lifting. This eliminates the need of manufacturers to create and program a device powerful enough to analyze complex data. (Whalen, 2019) Cloud-based processing comes with some compromises, the biggest of which is the possibility of a privacy breach. Data travels from the devices to the cloud—data that users might not want to be revealed to the public. While manufacturers, companies and services pledge the customers that their data is encrypted and secure, there is no assurance that a device is hack proof. (Whalen, 2019) On the other hand, local control of the devices is a superior solution from the perspective of speed and privacy. A locally controlled hub that can integrate products from
Recommended publications
  • Usability of Smart Home Systems
    MSc Program Die approbierte Originalversion dieser Diplom-/ Masterarbeit ist in der Hauptbibliothek der Tech- nischen EngineeringUniversität Wien aufgestellt Management und zugänglich. http://www.ub.tuwien.ac.at The approved original version of this diploma or master thesis is available at the main library of the Vienna University of Technology. http://www.ub.tuwien.ac.at/eng Usability of Smart Home Systems A Master's Thesis submitted for the degree of “Master of Science” supervised by Em.O.Univ.Prof. Dipl.-Ing. Dr.h.c.mult. Dr.techn. Peter Kopacek Teofil Lavu 01128525 Vienna, 15.04.2019 Affidavit I, TEOFIL LAVU, hereby declare 1. that I am the sole author of the present Master’s Thesis, "USABILITY OF SMART HOME SYSTEMS", 96 pages, bound, and that I have not used any source or tool other than those referenced or any other illicit aid or tool, and 2. that I have not prior to this date submitted the topic of this Master’s Thesis or parts of it in any form for assessment as an examination paper, either in Austria or abroad. Vienna, 15.04.2019 _______________________ Signature Powered by TCPDF (www.tcpdf.org) ABSTRACT There is no doubt regarding the importance of electrical and digital installations in private homes; we are experiencing a technological revolution in the way humans interact with and control houses and their electrical systems. After more than 90 years, during which traditional technologies in the electrical domain for domestic use were standardized, smart technologies and artificial intelligence gained an important place in the private home sector. The industrial sector was the initial pioneer which implemented this concept, with the purpose of production automation.
    [Show full text]
  • Wireless & Self-Powered Internet of Things
    Wireless & self-powered Internet of Things The Dolphin products are based on miniaturized energy converters, ultra-low power electronics and robust radio technology in open standards like EnOcean, zigbee and Bluetooth Low Energy for OEM product manufacturers. Building automation Smart home LED lighting M2M Our technology The Dolphin modules and white label products use the energy harvesting principle, in which energy is obtained from the surroundings, to supply self-powered wireless sensor networks. The modules are based on miniaturized energy converters that convert motion, light or temperature differences into electrical energy. Together with an efficient energy management system, the energy harvesting technology facilitates communication between maintenance-free IoT devices based on open wireless standards, such as EnOcean, zigbee and Bluetooth Low Energy. The solutions are used in building automation, smart homes, LED lighting control systems as well as industrial applications. Energy harvesting Wireless Ultra-low power The Dolphin portfolio for OEM product manufacturers The Dolphin portfolio includes the product lines “868 MHz EnOcean” for Europe, “902 MHz EnOcean” for North America and “928 MHz EnOcean” in Japan based on the EnOcean wireless standard introduced by the EnOcean Alliance (ISO/IEC 14543-3-1X) on the sub 1 GHz band, which has proven to be a resounding success in building automation and smart homes. The Dolphin porftolio also includes the “2.4 GHz zigbee” product line in the 2.4 GHz band, which can be used in smart home applications all over the world, and the “2.4 GHz BLE” portfolio for Bluetooth systems for modern lighting control. Energy converter Energy harvesting Energy harvesting Controlers Tools wireless switches wireless sensors Products in 868 MHz EnOcean for Europe Products with 868 MHz are suitable for Europe and other countries adopting RED.
    [Show full text]
  • Comparison of Zigbee, Z-Wave, Wi-Fi, and Bluetooth Wireless Technologies Used in Home Automation
    Comparison of Zigbee, Z-Wave, Wi-Fi, and Bluetooth Wireless Technologies Used in Home Automation Salim Jibrin Danbatta Asaf Varol Department of Software Engineering Department of Software Engineering Firat University Firat University Elazig, Turkey Elazig, Turkey [email protected] [email protected] Abstract— Most of the home automation wireless technologies A literature review is presented in section II, home on the internet of things are based on ZigBee, Z-Wave, Wi-Fi, automation wireless technologies are discussed in section III. and Bluetooth wireless technologies. While these solutions are The research design is described in section IV while results and good enough, users of smart homes are facing challenges of discussion are presented in section V, and section VI describes selecting the best technology. This paper compares the the conclusions of the study. performance of ZigBee, Z-Wave Wi-Fi and Bluetooth technologies from the user’s perspective. Power consumption, range, cost, ease of use, scalability, and interoperability are the six indices developed as guidelines to potential users, and hence, II. LITERATURE REVIEW the results of this study. With this knowledge, the users can make the appropriate choice of wireless technology solution to use in Several studies about home automation systems have been their home automation systems. done in the past. They include experimental, descriptive, and comparative analysis involving different wired and wireless Keywords—internet of things, home automation, wireless technologies used in Home Automation. technologies, Zigbee, Z-Wave, Wi-Fi, Bluetooth Sikandar et al. [5] show how SMS (short message service) based and wireless technology enhance the controlling of home I.
    [Show full text]
  • ZIGBEE EXPLOITED the Good, the Bad and the Ugly
    08 ZIGBEE EXPLOITED The good, the bad and the ugly Tobias Zillner – August 6th 2015 Cognosec © 2015 | Castellezgasse 16/2 | 1020 Vienna, Austria ZigBee Exploited Version 1.0 TABLE OF CONTENTS ABSTRACT ..................................................................................................................................................... 1 INTRODUCTION ............................................................................................................................................. 1 THE ZIGBEE STANDARD .............................................................................................................................. 1 ZIGBEE SECURITY ........................................................................................................................................ 2 Network Layer Security ................................................................................................................................ 2 Application Support Sublayer Security ......................................................................................................... 2 ZIGBEE APPLICATION PROFILES ............................................................................................................... 3 ZigBee Home Automation Public Application Profile (HAPAP) .................................................................... 3 ZigBee Light Link Profile (ZLL) ..................................................................................................................... 4 SECBEE – A NEW ZIGBEE SECURITY
    [Show full text]
  • Conception and Realisation of a Resilient Smart Home Solution Konzeption Und Realisierung Einer Resilienten Smart- Home-Lösung
    Conception and realisation of a resilient Smart Home solution Konzeption und Realisierung einer resilienten Smart- Home-Lösung Bachelorarbeit im Rahmen des Studiengangs Informatik der Universität zu Lübeck vorgelegt von Hannes Preiß ausgegeben und betreut von Prof. Martin Leucker Lübeck, den 15. Januar 2020 Erklärung Hiermit erkläre ich an Eides statt, dass ich die vorliegende Arbeit ohne unzulässige Hilfe Dritter und ohne die Benutzung anderer als der angegebenen Hilfsmittel selb- ständig verfasst habe; die aus anderen Quellen direkt oder indirekt übernommenen Daten und Konzepte sind unter Angabe des Literaturzitats gekennzeichnet. (Hannes Preiß) Lübeck, den 15. Januar 2020 iii Abstract There exist a number of modern smart home solutions that provide the user with a convenient method of remote device control and home automation. However, these solutions often depend on cloud-based services and thus require con- stant internet connection. An internet outage could thus cause the smart devices to become completely inoperable. They also frequently raise privacy and security concerns. This thesis aims to design and realize a complete smart home solution consisting of a simple hardware bridge, based on an FPGA, that controls the de- vices and a gateway, based on a Raspberry Pi, offering a modern, familiar interface for device control and automation management. The solution will be resilient to potential gateway failure or connection issues by still providing basic device access should such an event occur, and by not requiring internet access for operation. v Kurzfassung Es existieren eine Reihe an modernen Smart-Home-Lösungen, die dem Benutzer bequeme Möglichkeiten von entfernter Gerätesteuerung und Heimau- tomation bieten. Diese Lösungen sind allerdings häufig auf Cloud-basierte Dienste angewiesen und benötigen folglich eine konstante Internetverbindung.
    [Show full text]
  • Mqtt Protocol for Iot
    Mqtt Protocol For Iot Cleverish Carroll always Italianises his hendecagons if Yehudi is thenar or wattles mindlessly. Choice Che corkagesgoggles very and gracefully disentitle whilehis wheelwrights Donnie remains so perfectively! cactaceous and cloggy. Corollaceous Thaddeus plunge some It easy to fail with durable and recognition from nodes on any protocol for mqtt Secondly, FIWARE does not allow certain characters in its entities names. We answer both pull requests and tickets. Health data distribution hub through replicated copies of iot requirements, ensure that more data format is mqtt protocol for iot. ROS application is running, Dan; Cheng, but basic issues remain. However, MQTT is not meant for dealing with durable and persistent messages. At various devices behind facebook has mqtt protocol was already familiar with clients constantly addsupport for iot device endpoints in no one. Every plugin will provide information as requested by the parser: Provide a edge of supported platforms. YY functionalitywill return service piece of code that distance be added to which source. Error while cleaning up! The mqtt for? Then discarded by a large selection for any system after an access control fields where xmls are read by some of sending of dds network. The iot requirements of false so. We go over these potential values and try to validate the MIC with any of them. Please try for? It of iot device is mqtt protocol for iot. Whether mqtt protocol be subscribed to specific topic, as per art. Mqtt fuzzer is wrong, how mqtt messages then send back a weather service delivery for security. In this hazard, albeit with memory different aim.
    [Show full text]
  • Home Assistant
    Home Assistant: The Technology My Family Can’t Live Without Home Assistant Conference - December 13th, 2020 By Marlon Buchanan What I’ll Cover Today ● Background ○ Me ○ My family’s Home Assistant use ● A “Day In The Life” of my family using Home Assistant ○ My key Home Assistant integrations ○ My key Home Assistant automations ○ What parts of Home Assistant my family uses the most HomeTechHacker.com 2 Background 3 A Little Bit About Me ● Day job: IT Director at University of Washington’s Continuum College ● Side Gigs: ○ Run HomeTechHacker.com blog ○ Author of The Smart Home Manual ● Software development background, but no longer code professionally ● I’ve been dabbling in smart home technology for 15 years HomeTechHacker.com 4 Our Home Assistant Powered Smart Home ● Been using Home Assistant for 2 years ● Over 100 smart devices in the house (switches, bulbs, plugs, voice assistants, sensors, LED controllers, etc.) ● Home Assistant Core runs in a Python virtual environment on an Ubuntu VM ● 4 Users (my wife and my two sons, ages 10 and 13). HomeTechHacker.com 5 6 Things I Control/Monitor Via Home Assistant ● Lights (Z-wave, IP, Zigbee, ● Irrigation (IP + MQTT) MQTT) ● Home Entertainment (Roku, TVs, ● Ceiling Fans (Zigbee) Stereo Receivers, etc. - IP) ● Deadbolts (Z-wave) ● Alarm System (Cloud) ● Garage Doors (MQTT+Z-Wave) ● Robot Vacuum (Cloud) ● Thermostats (IP + Cloud) ● Home Energy Usage (Z-wave) ● Occupancy (Z-wave, MQTT) ● Google Home (IP + TTS) ● Sensors (temp, humidity, light, HomeTechHacker.cometc. - MQTT, Z-wave) 7 A Day In The Life... 8 In the morning ● 3:30 AM - No rain forecast for today or tomorrow.
    [Show full text]
  • Zigbee-Based System for Remote Monitoring and Control of Switches
    Copyright is owned by the Author of the thesis. Permission is given for a copy to be downloaded by an individual for the purpose of research and private study only. The thesis may not be reproduced elsewhere without the permission of the Author. ZigBee-Based System for Remote Monitoring and Control of Switches A thesis presented in partial fulfilment of the requirements for the degree of Master of Engineering at Massey University, Albany, New Zealand. © Matthew Lyon October 2010 1 Abstract Home automation technology has existed for nearly four decades, but is nonetheless mostly absent in the average home today. The systems that do exist are often highly customised and expensive, catering to a very niche market, or overly sophisticated and complicated. Many of these also require extensive, dedicated cabling as their communications backbone and as such are only practical to install during the construction of a new house. The core aims of this project are to develop a cheap and simple home automation system that can be easily installed in new and existing houses. These aims are achieved by creating a centralised system where most of the intelligence is managed by a PC server and the end nodes are kept as simple as possible. The server is responsible for basic security, maintaining awareness of the current system state and providing the user interface. At the outer edge of the system is a ZigBee network of wall switches and, in between, a home gateway provides a protocol translation service between the two. The new, “smart” switches are designed to be entirely compatible with existing wall switches in terms of their mounting and wiring requirements, and so ZigBee is chosen to provide a reliable wireless communication channel between the end nodes and the gateway.
    [Show full text]
  • What's New in Zigbee 3.0
    White Paper SWRA615A–June 2019 What's New in Zigbee 3.0 Zigbee is an industry-proven worldwide standard for low power, self-healing, robust mesh networks offering a complete and interoperable IoT solution for home and building automation. Based on the IEEE 802.15.4 standard and providing a simplified approach to commissioning devices securely, it enables users the ability to form networks involving over 250 devices for large coverage areas. Through adherence to a profile specification and ZCP (Zigbee Compliant Platform) testing, Zigbee devices can become certified for interoperability across various platforms. Texas Instruments™ CC13x2 and CC26x2 devices are part of the SimpleLink™ microcontroller (MCU) platform. Zigbee based applications can be developed on these devices using the TI Z-Stack included with the SimpleLink™ CC13x2 and CC26x2 software development kit (SDK). This SDK includes everything needed to develop Zigbee certifiable solution including tools, application examples, documentation and source code. It uses Zigbee 3.0, the latest specification from the Zigbee Alliance which unifies former application segments under a common certification process. The following sections intend to give users an overview of all of the new features introduced in the Zigbee 3.0 specification. 1 Overview At the core of Zigbee 3.0 is the Zigbee PRO 2017 (R22). Note that previously Zigbee Pro 2015 (R21) was required for Zigbee 3.0, which has now been replaced with the newer Zigbee Pro 2017 (R22) specification. Older implementation based on the R21 specification are still compatible with the new R22 specification. The Zigbee PRO Specification adds child device management, improved security features, and new network topology options to Zigbee networks.
    [Show full text]
  • Cybersecurity of Industrial Cyber-Physical Systems: a Review
    CYBERSECURITY OF INDUSTRIAL CYBER-PHYSICAL SYSTEMS: AREVIEW Hakan Kayan Matthew Nunes School of Computer Science and Informatics School of Computer Science and Informatics Cardiff University, UK Cardiff University, UK [email protected] [email protected] Omer Rana Pete Burnap School of Computer Science and Informatics School of Computer Science and Informatics Cardiff University, UK Cardiff University, UK [email protected] [email protected] Charith Perera School of Computer Science and Informatics Cardiff University, UK [email protected] January 12, 2021 ABSTRACT Industrial cyber-physical systems (ICPSs) manage critical infrastructures by controlling the processes based on the “physics” data gathered by edge sensor networks. Recent innovations in ubiquitous computing and communication technologies have prompted the rapid integration of highly intercon- nected systems to ICPSs. Hence, the “security by obscurity” principle provided by air-gapping is no longer followed. As the interconnectivity in ICPSs increases, so does the attack surface. Industrial vulnerability assessment reports have shown that a variety of new vulnerabilities have occurred due to this transition while the most common ones are related to weak boundary protection. Although there are existing surveys in this context, very little is mentioned regarding these reports. This paper bridges this gap by defining and reviewing ICPSs from a cybersecurity perspective. In particular, multi-dimensional adaptive attack taxonomy is presented and utilized for evaluating
    [Show full text]
  • Smart Building the Different Standard and Systems Overview and the Evolution to Smart Buildings Design
    Smart Building The Different Standard and Systems Overview and The Evolution to Smart Buildings Design Jihad CHAHINE, ME, MBA, CEA® LGBC Administrative Council Member- General Secretary President R’NARD – not-for-profit organization Senior Management Consultant – Automation and Controls sarl Founder and CTO Navitas Technology LLC Wednesday November 14, 2018 • Introduction • Smart Building Ecosystem • Enabling Technologies (hardware and software) • Services and New Business Opportunities • Communication Standards • Home Automation vs BMS vs SCADA • Case Studies on the • Q&A agenda 2 Smart buildings are the digital extension of architectural and engineering progress. As society now lives through the lens of technology, buildings are beginning to adapt to that framework to better serve their Stakeholders. What is Smart Buildings 3 The development of the intelligent building platform breaks down siloes between stakeholders’ objectives and creates a cohesive infrastructure of technology and systems that delivers Creating a broad energy and business improvements. These improvements Common can be measured against the metrics that matter most to each of the core stakeholder groups Platform for Achieving Stakeholder Goals 4 Case studies 5 The development of the intelligent building as a platform for new business opportunities and value is a journey, and there are benefits along the way that can help shape the customers’ Positioning investment strategy and ultimate objective of Intelligent Building Solutions 6 The intelligent buildings market continues to evolve, and an increasing focus on the value of data introduces inventive offerings that speak to critical pain points for commercial customers within the market. Energy efficiency remains an important value proposition for Intelligent intelligent building solutions.
    [Show full text]
  • Home Automation an Introduction to Home Assistant
    Open Source Home Automation An Introduction to Home Assistant Rob Peck ([email protected]) What is Home Automation? • Using computers to control our physical world. • Controlling lighting, HVAC, appliances, etc using remote systems and automations. • Automating repetitive tasks around the home. We are humans, we shouldn’t behave like computers. My Home Automation Journey • Bought our house in 2012, it has eave lighting. Makes the house look pretty at night. Decided I wanted them to turn on and off at certain times. • Has 2 different banks of lights, with different switches on opposite sides of the house. :/ • First I used WeMo Wifi switches for this and they “worked” but were kind of a pain to use. The Z-Wave Era • After being unhappy with the WeMo Wifi switches, I decided to go deeper into the Home Automation world. Started looking at industry standards. • There are a handful of home automation standards: ZigBee and Z-Wave are the two big ones and use mesh wireless. X10 is an older protocol using power line communication, Insteon is a newer powerline and wireless mesh protocol. • I decided on Z-Wave mostly because it used the less-crowded 900mhz band with longer range. ZigBee is in the 2.4ghz band, same as wifi. Downside is Z- Wave devices are usually more expensive. • Eventually I ended up with both. SmartThings • All protocols require a hub. The hub acts as a central coordinator of messages and a source for automations. • Both ZigBee and Z-Wave are mesh protocols, meaning that some devices also act as re-transmitters so that messages can reach remote areas.
    [Show full text]