Lesson 8 Internet Connected Smart Home Services And Monitoring

Chapter-12 L08: " " , Raj Kamal, 2017 1 Publs.: McGraw-Hill Education Internet Connected Smart Home Services And Monitoring • Smart home services • Home lighting control • Control and monitoring of appliances • Security and intrusion detection, • Video-surveillance, access control and security alerts • Wi-Fi • Control and monitoring deploying Internet and the remote cloud access

Chapter-12 L08: "Internet of Things " , Raj Kamal, 2017 2 Publs.: McGraw-Hill Education An architectural view • Cloud (named Magic) based IoT platform for smart home

Chapter-1L07: "Internet of Things " , Raj Kamal, Copyright © 2017 3 Publs.: McGraw-Hill Education Service Provide Infrastructure SMS eMail Billing Push Notifications IVR Server Server Server Log Handlers VPN Log Video Sign DB Magic DB Cloud, VPN and Video DB Certificate Network

Cloud Server Magic Video

UWB GPRS WiFi

Device Smart Home Control Unit Surveillance Camera Device Wired LAN Device Home Home System System ZigBee Network Home

System HHome System

An architectural view Abbreviations used • VPN: Virtual Private Network • DB: Database • IVR: Interactive Voice Response System, • UWB: Ultra Wideband

Chapter-1L07: "Internet of Things " , Raj Kamal, Copyright © 2017 5 Publs.: McGraw-Hill Education Smart-home Devices Development and Deployment using an Open-source Software • All smart home devices communicate using openHAB (Home Automation Bus) • Developer deploys Java and OSGi services • GUI clients designed and can be used as downloads from git. • IDE, guidelines, bindings for code development provided for openHAB

Chapter-12 L08: "Internet of Things " , Raj Kamal, 2017 6 Publs.: McGraw-Hill Education Item Protocol Automation User Interfaces Provider Bindings Logic (Add-On) (Add-On) (Add- (Add-On) REST Service (Core) On)

Repository (Core)

Libraries (Add-On) Base Library Core Log back Declarative Event Configuration Services Administration Administration Service HTTP OSGi Runtime

Fig. 12.7 Architectural layers in openHAB development environment OpenHAB Architecture

1. Core openHAB objects—REST service and repository; base library 2. openHAB add-on objects—Item provider, protocol bindings, automation logics, user interfaces and libraries 3. OSGi framework services—Configuration-administration, event-administration service, declarative services, log-back, Runtime and HTTP services

Chapter-12 L08: "Internet of Things " , Raj Kamal, 2017 8 Publs.: McGraw-Hill Education OpenHAB Architecture

4. OpenHAB deploys event administration service of OSGi with pub/sub mode. 5. A stateful repository for querying and for use by automation logics

Chapter-12 L08: "Internet of Things " , Raj Kamal, 2017 9 Publs.: McGraw-Hill Education OpenHAB Stateful Reprository

• Some functions stateless, does not depend on previous action(s) • Remaining actions stateful, dependent on previous chain of actions. • State of items in repository as per the • actions

Chapter-12 L08: "Internet of Things " , Raj Kamal, 2017 10 Publs.: McGraw-Hill Education Smart-home Using an Open-source Cloud Platform and Services • Accompanying Cloud platform my.openHAB • Provides communication between that with the cloud. • my.openHAB cloud connector also provides REST • Cloud based services, such as IFTTT

Chapter-12 L08: "Internet of Things " , Raj Kamal, 2017 11 Publs.: McGraw-Hill Education Smart-home Services an Open-source IFTTT

• The versions Android 4.1 onwards and iOS7onwards for IFTTT • Enables the services such smart home controls and automation using mobile phones or tablets

Chapter-12 L08: "Internet of Things " , Raj Kamal, 2017 12 Publs.: McGraw-Hill Education Design Steps 1. Abstraction 2. Reference Model 3. Identifying Requirements of Device and Gateway Domain 4. Identifying Requirements of Network Sub-domain

Chapter-12 L08: "Internet of Things " , Raj Kamal, 2017 13 Publs.: McGraw-Hill Education Reference Model

• Two domains and their high-level service capabilities in the surveillance system IoT architecture reference model (1) Device and gateway domain (2) Applications and network domain

Chapter-12 L08: "Internet of Things " , Raj Kamal, 2017 14 Publs.: McGraw-Hill Education Device and Gateway Domain Applications and Network Domain Remote Control of Internet connected Home Control of Home Devices Devices Smart User Interfaces my.openHAB.org Analytics Lights openHAB Protocol Event Message Applic- 1,…, j Routing Bindings ations/ Proxim- Services ity Item Provider Event Sensors Automation Processing Android 1,…, j Logic iOS Home Event

OSGi Intrusion e-Mail Events Frame- Messages Sensors Service HTTP

1,…, k Event work Social

IFTTT Messages Actions) Media Applia - intrusion Router data Files Set of Web nces 1, and (Trigger Applets services …, l Fig. 12.8 Data flow diagram and domain architecture reference model for the Home Automation lighting, appliances and intrusion monitoring services