How To Smart Home
A Step by Step Guide to Your Personal Internet of Things
A Key Concept Book by
Othmar Kyas
3rd Edition
All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system, without permission in writing from the publisher.
Copyright 2015 by KEY CONCEP PRESS
Published by Key Concept Press e.K., Wyk, Germany
www.keyconceptpress.com
Cover design: Joerg Nestle
ISBN 978-3-944980-06-5
Third Edition March 2015
Disclaimer
Every effort has been made to make this book as accurate as possible. However, there may be typographical and or content errors. Therefore, this book should serve only as a general guide and not as the ultimate source of subject information. This book contains information that might be dated and is intended only to educate and entertain. The author and publisher shall have no liability or responsibility to any person or entity regarding any loss or damage incurred, or alleged to have incurred, directly or indirectly, by the information contained in this book. References to websites in the book are provided for informational purposes only and do not constitute endorsement of any products or services provided by these websites. Further the provided links are subject to change, expire, or be redirected without any notice.
Bonus Material for Download
Bonus material for this book containing code and design templates can be downloaded from the book website http://www.howtosmarthome.com .
Notification on Updates and New Releases
If you want to be notified when an update to this book or a new release from Key Concept Press becomes available sign up here . Our mailing list is exclusively used to keep you and others informed about Key Concept Press. We do not share or sell your information to any third parties http://www.keyconceptpress.com/newsletter.html .
About the Author
Othmar Kyas is an internationally renowned expert in communication technology and strategic marketing. He is author of twelve books, which have been translated into five languages.
Table of Content
Disclaimer
Bonus Material for Download
Notification on Updates and New Releases
About the Author
Table of Content
1 Read Me
1.1 Who is this Book for?
1.2 What You Will NOT Find
1.3 Take no Risks
1.4 Formatting Rules
2 The Big Picture
2.1 The Potential for Energy Conservation
3 Key Concepts
3.1 Devices under Control
3.2 Sensors and Actuators
3.3 Control Networks
3.4 Controller
3.5 Remote Control Devices
3.6 Market Trends
3.7 Smart Homes for the Masses: Google, Apple, Samsung and more
3.8 Where do we go from here?
4 The Project
4.1 Overview
4.2 Equipment and Prerequisites
5 The Home Control Centre: Open Remote
5.1 OpenRemote Overview
5.2 OpenRemote Controller Installation
5.3 Installation under Mac OS X
5.4 Installation under Windows 7, 8 and Windows XP
5.5 OpenRemote Designer
5.6 The Hello World App
6 A Pretty Smart Sensor: Internet Weather
6.1 OpenRemote Control via HTTP: Retrieving Internet Weather Data
6.2 Designing the App Layout
7 Smartphone Based Presence Detection
7.1 Building a DHCP MAC Address Monitor Function
7.2 Creating a Shell Script for Presence Detection
7.3 Shell What?
7.4 The Presence Detection Script under OS X / Linux
7.5 Testing it Right - Best Practice for Script Writing
7.6 Building the Script
7.7 A Log File for Presence Detection
7.8 Testing the Script
7.9 The Presence Detection Script under Windows 7 & 8
7.10 Testing it Right - Best Practice for Script Writing
7.11 Building the Script
7.12 Log File for Presence Detection
7.13 Testing the Script
7.14 Controlling Presence Detection via Smartphone
8 Integration of Multimedia: iTunes Remote
8.1 Script Based iTunes Control in OS X
8.2 Script Based iTunes Control on Windows XP/7/8
8.3 Creating the iTunes Smartphone Remote
8.4 Talk to Me
8.4.1 Speech Output Under OS X
9 A Little AI: Drools Rules
9.1 Wake me up Early if it Rains: iAlarm
9.2 Controlling iAlarm via Smartphone
9.3 The iAlarm Rule Script
9.4 Coming Home
10 More iDevices
10.1 Denon / Marantz Audio System Control
10.2 Device Control Using Z-Wave
10.2.1 Z-Wave Network Setup
11 Industry Grade Home Infrastructure Control: KNX
11.1 What is KNX?
11.2 How does KNX Work?
11.3 The KNX Software Infrastructure: ETS
11.4 Which Operating Systems does ETS5 Support?
11.5 ETS5 on a Mac
11.6 Other KNX.org Software Tools
11.7 ETS5 Installation
11.8 Importing Vendor Catalogs
11.9 ETS5 Infrastructure Configuration
11.10 ETS5: Adding the Building Infrastructure
11.11 ETS5: Configuring the KNX Elements
11.12. ETS5: Connecting Infrastructure to Controls
12 KNX Control via OpenRemote Designer
12.1 Background Pictures for the Smartphone and Tablet App
12.2 Configure KNX Based Heating Mode Control
12.3 Smartphone Based Heating Control
12.4 Drools Based Heating Automation
13 Remote Smarthome Control
13.1 Configuring a Dynamic DNS Service
13.2 Configuring a VPN
14 Cold Start: Launch Automation
14.1 Windows Task Scheduler
14.2 OS X launchd
15 Troubleshooting and Testing
15.1 Preventive Maintenance
15.2 OpenRemote Heartbeat and Watchdog
16 we proudly present: Reporting
16.1 A Drools Reporting Rule
17 Appendix
17.1 OpenRemote Professional Designer
Bibliography
1 Read Me
1.1 Who is this Book for?
This book shows how to take home automation to the next level, using state of the art technologies such as tablets, smartphones, and the Internet in conjunction with the latest wireline and wireless home automation standards. It has been written for anyone who wants to use smartphone control to automate a building or a residential home. Expecting no specific know-how upfront, it is suited for both the technology loving hobbyist as well as the professional consultant. Technologies and platforms which are used in the projects described in the book are:
Wi-Fi / WLAN
Telnet, HTTP, TCP/IP
Z-Wave
ZigBee
KNX
Drools (an open source object oriented rule engine)
OpenRemote (an open source building automation platform)
Operating systems: Mac OS X / Linux / Windows
Parts of the projects integrate consumer electronics devices, such as audio equipment from Denon and Marantz. However, projects and instructions are designed so that that they can easily be adapted to other manufacturers. Be aware, however, that equipment which is more than two or three years old probably will lack the required interfaces for home automation integration at the level which is being covered in this book, such as built in WLAN, Bluetooth, Web server components, or "Wake-on-LAN" functionality.
After explaining the big picture and the key concepts of state of the art home automation, the book will walk you in a step-by-step manner through the implementation of several essential home automation and control projects. At the end of each project phase you should have a real, working solution on your desk, which can be further customized and expanded as desired. No programming skills are required as prerequisite. Scripts and configurations are explained line by line. Of course, if you have never written a short automation script or configured a DSL router, at some point your learning curve will be steeper than that of others. However, everything you learn will be open standard based, essential technologies, which you will be able to utilize in any other IT related project.
Next page