Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal...
Transcript of Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal...
![Page 1: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/1.jpg)
Practical Computerized Home Automation
BRUCE MOMJIAN
Home automation is computer control of home devices, typicallyelectrical. Using inexpensive hardware and open source software,it is possible to programmatically control many devices in yourhome, providing ease and enjoyment for your family.Creative Commons Attribution License http://momjian.us/presentations
Last updated: January, 2016
1 / 72
![Page 2: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/2.jpg)
Outline
1. What is computerized automation?
2. Evaluating technologies
3. Sample deployment
4. Device programming basics
5. What is success?
6. Home automation applications
Practical Computerized Home Automation 2 / 72
![Page 3: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/3.jpg)
1. What Is Computerized Automation?Non-Programmatic Automation
◮ Timers
◮ Clapper
◮ Dawn/Dusk Sensors
◮ Motion Sensors
Practical Computerized Home Automation 3 / 72
![Page 4: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/4.jpg)
Programmatic Automation
◮ Device behavior can be combined
◮ No distance limitations
◮ Activity detection
◮ Fully programmable / scriptable
◮ Access to external data
Practical Computerized Home Automation 4 / 72
![Page 5: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/5.jpg)
2. Evaluating Technologies:Home Networks
◮ Wired telephone
◮ Cordless telephone (900MHz, 2.4GHz, 5.8 GHz, 1.9GHz)
◮ Wired local area network (Ethernet)
◮ Wireless local area network (802.11)
◮ Electrical
◮ New wireless networks
Practical Computerized Home Automation 5 / 72
![Page 6: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/6.jpg)
Home Network Choices
◮ Power Line Control (PLC)
◮ X10: signal transmitted at 60 Hz zero-crossings (120 kHz)◮ Universal Power Bus (UPB): out-of-band signal (4-40 kHz)
◮ Radio frequency (wireless)
◮ Z-Wave: 900 MHz◮ Zigbee: 900 MHz and 2.4GHz (IEEE standard 802.15.4)
◮ Hybrid
◮ Insteon: out-of-band PLC (131 kHz) and radio frequency(900MHz), plus X10 support
http://www.smarthome.com/INSTEON_comparison.html
http://www.sgiclearinghouse.org/Technologies?q=node/2126
Practical Computerized Home Automation 6 / 72
![Page 7: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/7.jpg)
Choosing a Home Network Technology
◮ Open source computer control◮ heyu supports X10◮ MisterHouse (Perl-based) supports all listed technologies
◮ Availability of devices◮ electrical plug control◮ wireless remotes◮ chimes◮ sensors◮ doors, locks◮ thermostats/HVAC◮ 220-volt control
◮ Signal reliability (X10 is the worst)◮ Technology longevity (X10’s future is uncertain)◮ Simplicity of device replacement◮ Cost◮ Subset of Internet of Things
Practical Computerized Home Automation 7 / 72
![Page 8: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/8.jpg)
3. Sample Deployment:X10: Electrical Signal Basics, 60 Hertz
Practical Computerized Home Automation 8 / 72
![Page 9: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/9.jpg)
Adding A Signal
http://www.pcguide.com/ref/power/ext/basicsACDC-c.html and followingPractical Computerized Home Automation 9 / 72
![Page 10: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/10.jpg)
Multiple Bits
Practical Computerized Home Automation 10 / 72
![Page 11: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/11.jpg)
Oscilloscope Showing Zero
Practical Computerized Home Automation 11 / 72
![Page 12: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/12.jpg)
Oscilloscope Showing One
Practical Computerized Home Automation 12 / 72
![Page 13: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/13.jpg)
The X10 Standard
X10 is an international and open industry standard forcommunication among electronic devices used for homeautomation.
◮ Designed in 1975 by Pico Electronics of Glenrothes,Scotland
◮ Uses a 120 kHz carrier transmitted as bursts during therelatively quiet zero crossings of the 60 Hz AC alternatingcurrent waveform
◮ One bit is transmitted per zero crossing
◮ 120 bits per second transmission rate
◮ 256 maximum device codes
◮ 16 house codes, A-P; 16 devices per house code, 1-16
http://en.wikipedia.org/wiki/X10_(industry_standard)
Practical Computerized Home Automation 13 / 72
![Page 14: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/14.jpg)
X10 Protocol
http://www.x10.com/support/technology1.htm and following
Practical Computerized Home Automation 14 / 72
![Page 15: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/15.jpg)
X10 Protocol
Practical Computerized Home Automation 15 / 72
![Page 16: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/16.jpg)
X10 Limitations
◮ Requires 0.75 seconds to transmit a command
◮ Poor propagation in split-phase electricity distribution
◮ Affected by line noise from other devices
◮ Affected by X10 signals from other buildings
Practical Computerized Home Automation 16 / 72
![Page 17: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/17.jpg)
The Split-Phase Electricity Distribution Problem
http://www.globalsecurity.org/military/library/policy/army/fm/5-424/chap3.htmPractical Computerized Home Automation 17 / 72
![Page 18: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/18.jpg)
Allowing Split-Phase Electricity DistributionPropagation, With Amplification
Practical Computerized Home Automation 18 / 72
![Page 19: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/19.jpg)
Phase Coupling
http://www.hometoys.com/htinews/jun97/articles/kingery/kingery3.htmPractical Computerized Home Automation 19 / 72
![Page 20: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/20.jpg)
Reducing Line Noise
I need to use this because my UPS dampens X10 signals. Youalso might want to block X10 signals from coming into yourhouse, or you can use unique house codes.Practical Computerized Home Automation 20 / 72
![Page 21: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/21.jpg)
Wall Switch
Practical Computerized Home Automation 21 / 72
![Page 22: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/22.jpg)
Flat Switch
Practical Computerized Home Automation 22 / 72
![Page 23: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/23.jpg)
Three-Way Switch
Three-way switches are difficult to install because the X10detection module must be on the power side of the switch, not theground side; seehttp://www.hometoys.com/htinews/dec97/articles/kingery/kingery6.ht
Practical Computerized Home Automation 23 / 72
![Page 24: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/24.jpg)
Wireless Wall Switch
Practical Computerized Home Automation 24 / 72
![Page 25: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/25.jpg)
Wireless Receiver
Practical Computerized Home Automation 25 / 72
![Page 26: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/26.jpg)
Wireless Remote
Practical Computerized Home Automation 26 / 72
![Page 27: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/27.jpg)
Wireless Remote
Practical Computerized Home Automation 27 / 72
![Page 28: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/28.jpg)
Lamp/Appliance Control
Practical Computerized Home Automation 28 / 72
![Page 29: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/29.jpg)
Pool
The pool pump runs longer when the weather is warmer. Theserver gets the outside air temperature from a weather web siteand turns the pool pump on and off at the proper times.Practical Computerized Home Automation 29 / 72
![Page 30: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/30.jpg)
Heyu
NAMEheyu - control program for the X10 CM11A serial interface
SYNOPSISheyu address unit-specifierheyu dateheyu eraseheyu function unit-specifier stateheyu infoheyu helpheyu monitorheyu preset unit-specifier preset-dimheyu reset [housecode]heyu setclockheyu status [unit-specifier]heyu stopheyu turn unit-specifier state [amount]heyu upload [check]heyu version
Practical Computerized Home Automation 30 / 72
![Page 31: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/31.jpg)
Computer/Power LineInterface
Practical Computerized Home Automation 31 / 72
![Page 32: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/32.jpg)
Monitoring
7/6 at 05:40:49 address unit 8 : housecode d (entrymotion_dusk)7/6 at 05:40:49 function Off : housecode d unit 8 (entrymotion_dusk)7/6 at 20:35:57 address unit 8 : housecode d (entrymotion_dusk)7/6 at 20:35:57 function On : housecode d unit 8 (entrymotion_dusk)7/6 at 22:05:46 address unit 3 : housecode f (catherine)7/6 at 22:05:46 function Off : housecode f unit 3 (catherine)7/5 at 23:18:20 address unit 13 : housecode i (remotebed2)7/5 at 23:18:21 function Off : housecode i unit 13 (remotebed2)
Practical Computerized Home Automation 32 / 72
![Page 33: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/33.jpg)
Auto-Response to Activity
x10 monitor | while read LINEdo
echo "$LINE" >>/var/log/x10case "$LINE" in
*" Off : "*"(remotebed)"*)x10off $(x10group 1 | egrep -v ’^entrytable$’);;
# is it dusk?*" On : "*"(entrymotion_dusk)"*)
if [ -f /u/x10/wait_for_dusk ]then rm /u/x10/wait_for_dusk
x10on 1echo "x10on masterbath laundry" | at now +45 minutes
fi;;
*" On : "*"(kitchen_chime"*")"*)say "We are ready to eat."daemon -cf sbplay bell.wav 50sleep 2;;
esacdone
Practical Computerized Home Automation 33 / 72
![Page 34: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/34.jpg)
4. Device Programming Basics:Software Control
ProgramInput Output
Practical Computerized Home Automation 34 / 72
![Page 35: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/35.jpg)
Inputs
◮ User commands
◮ Clock/Timer
◮ Dawn/Dusk sensors
◮ Wireless remotes
◮ Caller Id
◮ Telephone Dialing
◮ Web sites, e.g. outside temperature
Practical Computerized Home Automation 35 / 72
![Page 36: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/36.jpg)
Outputs
◮ Lights
◮ Motors
◮ Appliances, e.g. coffee maker
◮ Sounds
◮ Network broadcast messages
◮ Slideshow
Practical Computerized Home Automation 36 / 72
![Page 37: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/37.jpg)
Sample Application: Dusk
Practical Computerized Home Automation 37 / 72
![Page 38: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/38.jpg)
5. What Is Success?
◮ Adding home automation changes your family’s homeenvironment
◮ Start slow; make incremental changes
◮ Accept that some home automation tasks are impossible
◮ You have succeeded when a family member asks for a homeautomation addition
Smart-Home Gadgets Still a Hard Sell, Wall StreetJournal,http://on.wsj.com/1ligxO5
Practical Computerized Home Automation 38 / 72
![Page 39: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/39.jpg)
Challenges
◮ Change
◮ Reliable operation
◮ Device longevity
◮ Maintenance
◮ Cost, coordination server
◮ Security/privacy
Nest Thermostat Bug Leaves Users Cold, BBCNews,http://www.bbc.com/news/technology-35311447
Practical Computerized Home Automation 39 / 72
![Page 40: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/40.jpg)
6. Home Automation Applications:Telephone Interface
Practical Computerized Home Automation 40 / 72
![Page 41: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/41.jpg)
Telephone Logging
AT#CID=1
Wed Jul 8 21:34:00 EDT 2009 DATE = 0708Wed Jul 8 21:34:00 EDT 2009 TIME = 2134Wed Jul 8 21:34:00 EDT 2009 NMBR = 6107429657Wed Jul 8 21:34:00 EDT 2009 NAME = PENNSYLVANIA
Lookup phone number in contact directory.
Wed Jul 8 21:34:04 EDT 2009 Bruce andChristine Momjian from Bruce’s cell phone (610) 742-9657
Optionally sound X10 chime if phone call is from an importantphone number.
Practical Computerized Home Automation 41 / 72
![Page 42: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/42.jpg)
Telephone Dialing
Dial phone number from contact directory:
ATDT16107429657
Tue Apr 7 14:57:26 EDT 2009 16107429657 Bruce andChristine Momjian to Bruce’s cell phone
This can also be used to automatically dial recently received callsusing the log.
Practical Computerized Home Automation 42 / 72
![Page 43: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/43.jpg)
Telephone Notification
Caller ID
(via modem)daemon
Broadcast Message
Logfile
Numbers/Names from
Call Chime (optional)
Contact Directory
caller_id
Practical Computerized Home Automation 43 / 72
![Page 44: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/44.jpg)
Outgoing Calls
Numbers/Names from
Telephone Directory
User Command dial
scriptOutgoing Call
Practical Computerized Home Automation 44 / 72
![Page 45: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/45.jpg)
Home Application: First Floor
Interface
Office
Computer
Dining Room
KitchenBedroom
Garage
Living
Hallway
Entry
Family Room
Light
Chime
Dawn/Dusk Sensor
Computer/Power Line
Screen
Wireless Remote
Coffee Maker
Practical Computerized Home Automation 45 / 72
![Page 46: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/46.jpg)
Home Application: Second Floor
PlayBedroom Bedroom
Bedroom
Hallway
Bed
Room
Wireless Remote Chime
Light
Pool Pump (outside)
Practical Computerized Home Automation 46 / 72
![Page 47: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/47.jpg)
Heyu
X10 devices are controlled and monitored using the X10 CM11acomputer interface device and the open source heyu controlsoftware. For heyu information, see http://www.heyu.org/. Heyucan be customized by defining devices in ~/.x10config:
remotebed I 1 # downstairs remote alloffentrytable I 2bookcase I 3couch I 4tiffany I 5schoolroom I 6fireplace I 7laundry I 8wireless I 9 # wireless outlet, makes click noisemasterbed I 10...
Practical Computerized Home Automation 47 / 72
![Page 48: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/48.jpg)
Heyu Wrapper Script
Instead of:
$ heyu turn couch on
a script can be created:
$ x10on couch
The script can handle multiple devices:
$ x10on tiffany bookcase
and groups of devices can be defined:
$ x10off video
Practical Computerized Home Automation 48 / 72
![Page 49: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/49.jpg)
Simple Time-Based Activity
cronTime Output
Practical Computerized Home Automation 49 / 72
![Page 50: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/50.jpg)
Crontab Scheduler
0 7 * * * root x10on slideshow0 11 * * * root x10on decor0 12 * * * root touch /u/x10/wait_for_dusk0 14 * * * root x10on bathroom30 20 * * * root x10on boyscolor catherine# fade30 21 * * * root x10dim entrytable decor bathroom# off0 21 * * * root x10off bookcase0 23 * * * root frontlights off; x10off decor tiffany0 0 * * * root x10off ‘x10group 1 | egrep -v ’^entrytable$’‘0 0 * * * root touch /u/x10/wait_for_dawn59 0 * * * root x10dimoff_slow laundry59 1 * * * root ! is_tz_fallback && x10alloff
Practical Computerized Home Automation 50 / 72
![Page 51: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/51.jpg)
Dawn/Dusk Activity
Dawn/Dusk Sensor
(via X10)
x10monitor
daemon
Inside Lights On
Outside Lights On
+30 minutes
Practical Computerized Home Automation 51 / 72
![Page 52: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/52.jpg)
Acting on Events (Dusk)
x10 monitor | while read LINEdo
echo "$LINE" >>/var/log/x10case "$LINE" in
# is it dusk?*" On : "*"(entrymotion_dusk)"*)
if [ -f /u/x10/wait_for_dusk ]then rm /u/x10/wait_for_dusk
x10on 1echo "heyu turn masterbath on;
heyu turn laundry on" |at now +45 minutes
fi;;
Practical Computerized Home Automation 52 / 72
![Page 53: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/53.jpg)
X10 Already Supports Wireless Remotes
Practical Computerized Home Automation 53 / 72
![Page 54: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/54.jpg)
Coffee Maker
Practical Computerized Home Automation 54 / 72
![Page 55: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/55.jpg)
Coffee Maker Timer
(via X10)
Wireless Remote
+30 minutes
Coffee Maker Offx10monitor
*" On : "*"(coffeepot"*")"*)echo "heyu turn coffeepot off" | at now +15 minutes;;
Practical Computerized Home Automation 55 / 72
![Page 56: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/56.jpg)
Smartphone Coffee Control
Practical Computerized Home Automation 56 / 72
![Page 57: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/57.jpg)
Implementing Smartphone Coffee Control
1. Install an SSH client on the smartphone (VX Connectbot)
2. Setup an SSH key to avoid password prompting
3. Use post-log automation to issue the heyu shell command toturn on the coffee, and logout
Practical Computerized Home Automation 57 / 72
![Page 58: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/58.jpg)
Pool Pump
job scheduler(time varies with temperature)
Poolpump On
(via weather web site)
Outside Temperature
A script allows scheduled pump control with manual override.
Practical Computerized Home Automation 58 / 72
![Page 59: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/59.jpg)
Family Activity Screen
Picture Directory
Weather Website
PHP, Javascript,
scripts
Event Calendar Family Activity Screen
Screen is shown on a dummy display and also on laptopsthroughout the house. Source available athttp://code.google.com/p/infodisp.
Practical Computerized Home Automation 59 / 72
![Page 60: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/60.jpg)
Time to Eat
(via X10)
x10monitor
daemon
Wireless Remote Broadcast Message
Activity Screen Off
"Eat" Chime
(for 50 minutes)
Practical Computerized Home Automation 60 / 72
![Page 61: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/61.jpg)
Garage Entry Detection
◮ Light
◮ Motion
◮ Distance
◮ Garage door activation
◮ Garage door position
Practical Computerized Home Automation 61 / 72
![Page 62: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/62.jpg)
Detection Challenges
◮ Taking out the trash
◮ Leaving vs. arriving
Practical Computerized Home Automation 62 / 72
![Page 63: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/63.jpg)
Garage Door Position Detection
Garage Door Switch ServerX10
Practical Computerized Home Automation 63 / 72
![Page 64: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/64.jpg)
Garage Door Position Detection
Practical Computerized Home Automation 64 / 72
![Page 65: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/65.jpg)
Garage Door Position Detection
Practical Computerized Home Automation 65 / 72
![Page 66: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/66.jpg)
Garage Door Closed
Practical Computerized Home Automation 66 / 72
![Page 67: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/67.jpg)
Garage Door Open
Practical Computerized Home Automation 67 / 72
![Page 68: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/68.jpg)
Distance Detection
DistanceSensor
ServerArduino X10
Practical Computerized Home Automation 68 / 72
![Page 69: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/69.jpg)
Arduino Distance Detection:Ping Ultrasonic Range Finder
Practical Computerized Home Automation 69 / 72
![Page 70: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/70.jpg)
The Solution
Practical Computerized Home Automation 70 / 72
![Page 71: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/71.jpg)
Arrival Reporting
◮ Turn on outside lights
◮ Issue message that someone has arrived
◮ Report who was in the car (what MAC address disappearedwhen the car left)
◮ Van has returned with Christine
Practical Computerized Home Automation 71 / 72
![Page 72: Practical Computerized Home Automation · Home Network Choices Power Line Control (PLC) X10: signal transmitted at 60 Hz zero-crossings (120 kHz) Universal Power Bus (UPB): out-of-band](https://reader033.fdocuments.net/reader033/viewer/2022060519/604cc7760bcb2d4bc13726b3/html5/thumbnails/72.jpg)
Conclusion
No!Another presentation:http://www.ushomeautomation.com/Presentations/TCF2011
http://momjian.us/presentations
Practical Computerized Home Automation 72 / 72