Full metadata
Title
Rule-Based Home Automation
Description
Apple’s HomeKit framework centralizes control of smart home devices and allows users to create home automations based on predefined rules. For example, a user can add a rule to turn off all the lights in their house whenever they leave. Currently, these rules must be added through a graphical user interface provided by Apple or a third-party app on iOS. This thesis describes how a text-based language provides users with a more expressive means of creating complex home automations and successfully implements such a language. Rules created using this text-based format are parsed and interpreted into rules that can be added directly into HomeKit. This thesis also explores how security features should be implemented with this text-based approach. Since automations are run by the system without user interaction, it is important to consider how the system itself can provide functionality to address the unintended consequences that may result from running an automation. This is especially important for the text-based approach since its increase in expressiveness makes it easier for a user to make a mistake in programming that leads to a security concern. The proposed method for preventing unintended side effects is using a simulation to run every automation prior to actually running the automation on real-world devices. This approach allows users to code some conditions that must be satisfied in order for the automation to run on devices in the home. This thesis describes the creation of such a program that successfully simulates every device in the home. There were limitations, however, with Apple's HomeKit framework, which made it impractical to match the state of simulated devices to real devices in the home. Without being able to match the current state of the home to the current state of the simulation, this method cannot satisfy the goal of ensuring that certain adverse effects will not occur as a result of automations. Other smart home control platforms that provide more extensibility could be used to create this simulation-based security approach. Perhaps as Apple continues to open up their HomeKit platform to developers, this approach may be feasible within Apple's ecosystem at some point in the future.
Date Created
2020-05
Contributors
- Sharp, Trevor Ryan (Co-author)
- Sharp, Trevor (Co-author)
- Bazzi, Rida (Thesis director)
- Doupe, Adam (Committee member)
- Economics Program in CLAS (Contributor)
- Department of Management and Entrepreneurship (Contributor)
- Computer Science and Engineering Program (Contributor)
- Barrett, The Honors College (Contributor)
Topical Subject
Resource Type
Extent
34 pages
Language
eng
Copyright Statement
In Copyright
Primary Member of
Series
Academic Year 2019-2020
Handle
https://hdl.handle.net/2286/R.I.56665
Level of coding
minimal
Cataloging Standards
System Created
- 2020-04-28 07:06:04
System Modified
- 2021-08-11 04:09:57
- 3 years 3 months ago
Additional Formats