{"id":1294,"date":"2020-10-25T20:49:08","date_gmt":"2020-10-25T20:49:08","guid":{"rendered":"https:\/\/www.blackestknight.com\/?p=1294"},"modified":"2020-10-25T20:49:10","modified_gmt":"2020-10-25T20:49:10","slug":"easy-as-apple-pi","status":"publish","type":"post","link":"https:\/\/www.blackestknight.com\/index.php\/2020\/10\/25\/easy-as-apple-pi\/","title":{"rendered":"Easy as Apple PI"},"content":{"rendered":"\n<p>If you are interested in home automation, you soon learn that getting things to work together isn&#8217;t as easy as you might think most manufacturers have their own app, often they say works with Alexa, or Google home or IFTTT. But it&#8217;s a bit of a trap to get you into these ecosystems and you soon find it&#8217;s hard to do anything but the simplest things because these systems are not designed to talk to each other beyond basic commands.&nbsp;<\/p>\n<p>There are essentially 3 voice command systems Alexa, Google home and Siri and they don&#8217;t play well together and then there are 1000&#8217;s of devices that might work with each Assistant.&nbsp; Now IFTTT was a good option until they decided you need to pay to have more than 3 automations.&nbsp;<\/p>\n<p>Now a good free option is home assistant it runs on your own server and the cheapest to run is the Raspberry PI&nbsp; it uses very little power and will happily run 24\/7 without too much bother. If you want least complexity the card image is the way to go. You can go for other methods but there is a learning curve and getting addons into homeassistant is more challenging.&nbsp;<\/p>\n<p>Now one of the things most people want is to be able to control things with their voice and then maybe want manual control again \ud83d\ude42&nbsp;<\/p>\n<p>The real problem with voice assistants is a limited vocabulary they can do the basics but if you have an automation that needs a new voice command you get stuck for Google Home&nbsp; you can use nora which presents virtual devices to Google home and Google home can recognise the names and work with them.&nbsp; Alexa has skills which you can use from third parties but again it becomes complicated if you need to expand Alexas vocabulary.<\/p>\n<p>So now we come to Apples Homekit and it isn&#8217;t your first choice initially mainly because anything Apple tends to get expensive. There is a server called homebridge which works with homekit but you don&#8217;t need it because homeassistant has&nbsp;<\/p>\n<p>homekit:&nbsp;<\/p>\n<p>This is a line of code you put in home assistants configuration.yaml file reboot and it pops up a QR Code scan the code with your iphone or ipad camera and it will ask if you want to open in homekit and it installs homeassistant as a bridge.&nbsp; Now all the devices you have working in homeassistant become available to homekit and Siri and not just the premade ones it recognises your own automations by name!&nbsp;<\/p>\n<p>Now this is a big deal, a game changer it&#8217;s now possible to create an automation that you can just ask siri to use and siri uses it!&nbsp; Oh and that line of code is only needed if you don&#8217;t have the addon store built into home assistant, you can just select the homekit integration addon from the web ui of home assistant.&nbsp; &nbsp;<\/p>\n<p>Ok not convinced yet? Lets try this hey google\/alexa\/siri turn on all lights.&nbsp; The result all lights are turned on and your baby who was soundly asleep now starts crying as he just got woke up, you didn&#8217;t really want to turn that light on did you?&nbsp;<\/p>\n<p>This is when you realise this smart home is dumb having your assistant talking to the outputs directly is as subtle as a sledgehammer to the knees You need a filter , some of the time and home assistant makes it easy with an automation the problem is making google or alexa recognise and use that filter is hard. They don&#8217;t know its name or how to interact with it.&nbsp;<\/p>\n<p>I can make an automation to turn off a light after 5 minutes and so if I get the assistant to turn on the lamp 5 minutes later it goes off.&nbsp; But sometimes I might not want that to happen so i can go in the web ui&nbsp; of homeassistant and turn it off but I can&#8217;t get alexa or google to turn it off without creating a custom command but Siri knows the name I gave to the automation and can use that name. No extra programing needed.&nbsp;<\/p>\n<p>Now it&#8217;s possible to break the direct link between your voice assistant and your hardware you don&#8217;t let the assistant know what&#8217;s at the other end. Now any command is filtered through your conditions and not bypassing your control.&nbsp; If you are using google home or alexa , you can do the same thing but it is a lot more difficult and requires some programing skills. I have some google mini&#8217;s so will have to use nora to keep them working with my lights or keep the sledgehammer approach.&nbsp;&nbsp;<\/p>\n<p>Ok Apple&#8217;s homekit does require a homehub, an iPad or an AppleTV <a href=\"https:\/\/support.apple.com\/en-us\/HT207057\">https:\/\/support.apple.com\/en-us\/HT207057<\/a> The reason being that the hub is linked to your apple account and this makes the link between your iphone in your hand and the automations in your home.&nbsp; This makes the need for a dyndns service to keep your home available on the internet and port forwarding unnecessary and likely more secure.&nbsp; It&#8217;s good isn&#8217;t it \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are interested in home automation, you soon learn that getting things to work together isn&#8217;t as easy as you might think most manufacturers have their own app, often they say works with Alexa, or Google home or IFTTT. But it&#8217;s a bit of a trap to get you into these ecosystems and you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[14],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7UXrA-kS","_links":{"self":[{"href":"https:\/\/www.blackestknight.com\/index.php\/wp-json\/wp\/v2\/posts\/1294"}],"collection":[{"href":"https:\/\/www.blackestknight.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blackestknight.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blackestknight.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blackestknight.com\/index.php\/wp-json\/wp\/v2\/comments?post=1294"}],"version-history":[{"count":4,"href":"https:\/\/www.blackestknight.com\/index.php\/wp-json\/wp\/v2\/posts\/1294\/revisions"}],"predecessor-version":[{"id":1298,"href":"https:\/\/www.blackestknight.com\/index.php\/wp-json\/wp\/v2\/posts\/1294\/revisions\/1298"}],"wp:attachment":[{"href":"https:\/\/www.blackestknight.com\/index.php\/wp-json\/wp\/v2\/media?parent=1294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blackestknight.com\/index.php\/wp-json\/wp\/v2\/categories?post=1294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blackestknight.com\/index.php\/wp-json\/wp\/v2\/tags?post=1294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}