{"id":661,"date":"2018-01-09T08:23:10","date_gmt":"2018-01-09T16:23:10","guid":{"rendered":"http:\/\/ismellsmoke.net\/\/?p=661"},"modified":"2018-01-22T09:21:41","modified_gmt":"2018-01-22T17:21:41","slug":"home-automation-hacking-part-1","status":"publish","type":"post","link":"https:\/\/ismellsmoke.net\/?p=661","title":{"rendered":"Home Automation Hacking Part-I"},"content":{"rendered":"<p>Hello smoke-breathing brethren. Ole&#8217; Sopwith is about to embark on another hacking adventure. This time it is all about home automation. Yes, it seems I am a little late to the party &#8211; but hey &#8211; at least I showed up!<\/p>\n<p>There are two goals to this project. 1) To learn something new, and 2) To have fun. Wait a minute! Those are the goals of <em>every<\/em> Sopwith project!\u00a0 Yes &#8211; but this project should be really interesting.\u00a0In this multi-part blog series, I am going to compare the two leading open-source home automation platforms:\u00a0 <a href=\"https:\/\/www.openhab.org\/\" target=\"_blank\" rel=\"noopener\">OpenHab<\/a>\u00a0and <a href=\"https:\/\/home-assistant.io\/\" target=\"_blank\" rel=\"noopener\">Home Assistant<\/a>.<\/p>\n<p><em>OpenHab\u00a0<\/em>is a Germany based open source project founded in 2010. It is written in Java and is based on the <em>Eclipse SmartHome<\/em> platform. It has a very active community with a very large pool of developers. It provides the ability to integrate hundreds of home automation devices, regardless of manufacturer or whether is it open or closed hardware. The cool thing about <em>OpenHab<\/em> is that it provides a mechanism to build a complete home automation environment and keep it private.<\/p>\n<p><a href=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2018\/01\/openhab.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-665\" src=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2018\/01\/openhab-300x144.png\" alt=\"\" width=\"300\" height=\"144\" srcset=\"https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/openhab-300x144.png 300w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/openhab-768x369.png 768w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/openhab-500x240.png 500w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/openhab.png 944w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><em>Home Assistant<\/em> is another very active open-source home automation platform written in Python3. It also has a vibrant and active community. Founded in 2013 by\u00a0Paulus Schoutsen, it began as a simple Python script to turn on some lights when the sun set.<\/p>\n<p><a href=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2018\/01\/homeassistant.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-664\" src=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2018\/01\/homeassistant-300x151.png\" alt=\"\" width=\"300\" height=\"151\" srcset=\"https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/homeassistant-300x151.png 300w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/homeassistant-768x388.png 768w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/homeassistant-1024x517.png 1024w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/homeassistant-500x252.png 500w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/homeassistant.png 1082w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><!--more-->The coolest thing about both of these project is that they recommend the use of Raspberry Pi&#8217;s as your home automation server. In fact, both projects provide Pi images so you can get up and running quickly. Cheers to that.<\/p>\n<p>Not only will I compare the strengths and weaknesses of both home automation platforms, but I will also purchase, hack, and install some hardware sensors. This hardware includes a Z-Wave controller, a Z-Wave doorbell, and three Z-Wave garage door sensors.<\/p>\n<p>Why Z-Wave? Because there is a lot of hardware available, it is <em>relatively<\/em> cheap, the sensors are self-contained with batteries that last for years, and it stays off my WiFi networks. Privacy in my home automation projects is paramount.<\/p>\n<p>All Z-Wave sensors must be sync&#8217;d to a Z-Wave hub. This is a similar process you use when you program a garage door opener. Most garage doors require you to put the lift mechanism in programming mode by pushing a button, and then you press the button on the opener. Both devices flash and you are done. Z-Wave devices require a similar synchronization process.<\/p>\n<p>The specific hardware I will use in this project includes the following:<\/p>\n<ul>\n<li><a href=\"https:\/\/aeotec.com\/z-wave-usb-stick\" target=\"_blank\" rel=\"noopener\">Aeotec Z-Wave Z-Stick Controller<\/a>. This is the Z-Wave master controller for all the Z-Wave devices you deploy in your home.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2018\/01\/zwave.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-670\" src=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2018\/01\/zwave-300x151.png\" alt=\"\" width=\"300\" height=\"151\" srcset=\"https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/zwave-300x151.png 300w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/zwave-768x386.png 768w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/zwave-500x251.png 500w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/zwave.png 943w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<ul>\n<li><a href=\"http:\/\/alturl.com\/nfcpx\" target=\"_blank\" rel=\"noopener\">Aeotec Z-Wave Doorbell.<\/a>\u00a0This is a wireless doorbell.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2018\/01\/doorbell.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-668\" src=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2018\/01\/doorbell-300x106.png\" alt=\"\" width=\"300\" height=\"106\" srcset=\"https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/doorbell-300x106.png 300w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/doorbell-768x270.png 768w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/doorbell-500x176.png 500w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/doorbell.png 983w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<ul>\n<li><a href=\"http:\/\/alturl.com\/eq8a5\" target=\"_blank\" rel=\"noopener\">Ecolink Garage Door Sensor.<\/a>\u00a0This is a small device you place on the top section of a garage door. It reports the state of the door &#8211; open or closed.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2018\/01\/ecolink.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-669\" src=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2018\/01\/ecolink-194x300.png\" alt=\"\" width=\"194\" height=\"300\" srcset=\"https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/ecolink-194x300.png 194w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2018\/01\/ecolink.png 233w\" sizes=\"auto, (max-width: 194px) 100vw, 194px\" \/><\/a><\/p>\n<p>And of course, the server platform will be a Raspberry Pi 3.<\/p>\n<p>Follow along on this fun journey into the exciting world of home automation.<\/p>\n<p><em>Sopwith<\/em><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello smoke-breathing brethren. Ole&#8217; Sopwith is about to embark on another hacking adventure. This time it is all about home automation. Yes, it seems I am a little late to the party &#8211; but hey &#8211; at least I showed &hellip; <a href=\"https:\/\/ismellsmoke.net\/?p=661\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,5,6,3],"tags":[],"class_list":["post-661","post","type-post","status-publish","format-standard","hentry","category-education","category-general","category-how-to","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/posts\/661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=661"}],"version-history":[{"count":7,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/posts\/661\/revisions"}],"predecessor-version":[{"id":704,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/posts\/661\/revisions\/704"}],"wp:attachment":[{"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}