{"id":141,"date":"2017-11-28T10:55:35","date_gmt":"2017-11-28T18:55:35","guid":{"rendered":"http:\/\/www.diyfuturism.com\/?p=141"},"modified":"2017-12-18T17:24:01","modified_gmt":"2017-12-19T01:24:01","slug":"config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant","status":"publish","type":"post","link":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/","title":{"rendered":"Config: Setting up the Xiaomi Mi Robot Vacuum in Home Assistant"},"content":{"rendered":"<p>I have a dog who sheds like crazy, and the only thing that keeps the dust bunnies from overrunning me is a robot vacuum. My aging Neato Botvac, after fulfilling several years of hard labor, ate it&#8217;s 3rd expensive replacement battery recently. This was obviously a great excuse to get a new one that works with Home Assistant.<\/p>\n<p>I went with the <a href=\"http:\/\/amzn.to\/2k65uNi\">Xiaomi Mi Robot<\/a>.<\/p>\n<p>After getting paired with the app, teaching the robot English, and sending it on it&#8217;s way around the house to do it&#8217;s thing, I realized that the process of getting it paired with Home Assistant was not going to be straightforward.<\/p>\n<p>For anyone else who runs into trouble, here&#8217;s how I got it working.<\/p>\n<p><!--more--><br \/>\n<script type=\"text\/javascript\">\namzn_assoc_placement = \"adunit0\";\namzn_assoc_tracking_id = \"diyfuturism-20\";\namzn_assoc_ad_mode = \"search\";\namzn_assoc_ad_type = \"smart\";\namzn_assoc_marketplace = \"amazon\";\namzn_assoc_region = \"US\";\namzn_assoc_default_search_phrase = \"xiaomi vacuum\";\namzn_assoc_default_category = \"All\";\namzn_assoc_linkid = \"756bbf9aa3e3173c6cf54e0bfd6a889e\";\namzn_assoc_design = \"in_content\";\n<\/script><br \/>\n<script src=\"\/\/z-na.amazon-adsystem.com\/widgets\/onejs?MarketPlace=US\"><\/script><br \/>\n<\/iframe><\/p>\n<h2>GETTING DATA FROM iOS<\/h2>\n<p>I <a href=\"https:\/\/home-assistant.io\/components\/vacuum.xiaomi_miio\/#retrieving-the-access-token\">followed the instructions<\/a> over at the Home Assistant documentation to extract the token from my iPhone. First, you better hope you didn&#8217;t forget your encryption password for your iPhone, because it is not the same as your iCloud password! Make an unencrypted backup of your phone, open it in <a href=\"http:\/\/www.imactools.com\/iphonebackupviewer\/download\/mac\">iBackup Viewer<\/a>, extract the mihome SQLite file, and open that in <a href=\"https:\/\/github.com\/sqlitebrowser\/sqlitebrowser\/releases\" target=\"_blank\" rel=\"noopener\">SQLite Browser<\/a>. I made it this far without issue.<\/p>\n<p>Now, the SQL command it asks you to execute didn&#8217;t work for me. No worries, this database only has one record and all the way at the end is my token.<\/p>\n<p><img data-attachment-id=\"142\" data-permalink=\"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/screen-shot-2017-11-27-at-8-03-10-pm\/\" data-orig-file=\"https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-8.03.10-PM.png?fit=2288%2C756&amp;ssl=1\" data-orig-size=\"2288,756\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen Shot 2017-11-27 at 8.03.10 PM\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-8.03.10-PM.png?fit=300%2C99&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-8.03.10-PM.png?fit=854%2C282&amp;ssl=1\" loading=\"lazy\" class=\"aligncenter wp-image-142 size-large\" src=\"https:\/\/i0.wp.com\/www.diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-8.03.10-PM-1024x338.png?resize=730%2C241\" alt=\"\" width=\"730\" height=\"241\" srcset=\"https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-8.03.10-PM.png?resize=1024%2C338&amp;ssl=1 1024w, https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-8.03.10-PM.png?resize=600%2C198&amp;ssl=1 600w, https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-8.03.10-PM.png?resize=300%2C99&amp;ssl=1 300w, https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-8.03.10-PM.png?resize=768%2C254&amp;ssl=1 768w, https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-8.03.10-PM.png?resize=1200%2C397&amp;ssl=1 1200w, https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-8.03.10-PM.png?w=1708&amp;ssl=1 1708w\" sizes=\"(max-width: 730px) 100vw, 730px\" data-recalc-dims=\"1\" \/><\/p>\n<p>Wait&#8230;. why is this a 96 character token? Home Assistant is asking for a 32 character one. WTF?<\/p>\n<p>Apparently it&#8217;s encrypted within the database. Uh-oh. <a href=\"https:\/\/community.home-assistant.io\/t\/xiaomi-gateway-integration\/8213\/3052\">Thanks to this user on the Hass forums<\/a>, we need to run a Python script. At a Linux terminal, make sure we have the libraries we need for the script:<\/p>\n<pre>sudo apt-get install python3-dev\r\nsudo pip3 install pycrypto<\/pre>\n<p>Then copy this script into mirobot.py<\/p>\n<pre>from Crypto.Cipher import AES\r\nimport binascii\r\nkeystring = '00000000000000000000000000000000'\r\niostoken = '96charactertokenfromsqlite'\r\nkey = bytes.fromhex(keystring)\r\ncipher = AES.new(key, AES.MODE_ECB)\r\ntoken = cipher.decrypt(bytes.fromhex(iostoken[:64]))\r\nprint(token)<\/pre>\n<p>https:\/\/pastebin.com\/HAS7G22S<\/p>\n<p>Replacing the &#8217;90charactertokenfromsqlite&#8217; with your own.<\/p>\n<p>From the terminal run:<\/p>\n<pre>python3 mirobot.py<\/pre>\n<p>You now have your unencrypted access token and can configure it for Home Assistant.<\/p>\n<p>In the Home Assistant configuration.yaml, we can add a template sensor to extract it&#8217;s status as a separate entity:<\/p>\n<pre>sensors:\r\n  - platform: template\r\n    sensors:\r\n      vacuum_status:\r\n        friendly_name: Vacuum Status\r\n        value_template: \"{{ states.vacuum.robot.attributes.status }}\"<\/pre>\n<p>https:\/\/pastebin.com\/W43uCVBv<\/p>\n<p><script type=\"text\/javascript\">\namzn_assoc_placement = \"adunit0\";\namzn_assoc_tracking_id = \"diyfuturism-20\";\namzn_assoc_ad_mode = \"search\";\namzn_assoc_ad_type = \"smart\";\namzn_assoc_marketplace = \"amazon\";\namzn_assoc_region = \"US\";\namzn_assoc_default_search_phrase = \"neato botvac\";\namzn_assoc_default_category = \"All\";\namzn_assoc_linkid = \"756bbf9aa3e3173c6cf54e0bfd6a889e\";\namzn_assoc_design = \"in_content\";\n<\/script><br \/>\n<script src=\"\/\/z-na.amazon-adsystem.com\/widgets\/onejs?MarketPlace=US\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"wpm_excerpt clearfix\"><p>I have a dog who sheds like crazy, and the only thing that keeps the dust bunnies from overrunning me is a robot vacuum. My aging &hellip;<\/p>\n<\/div>","protected":false},"author":1,"featured_media":139,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[8,6,7],"tags":[40,36,38,41,25,37,35,39],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Config: Setting up the Xiaomi Mi Robot Vacuum in Home Assistant - DIY Futurism<\/title>\n<meta name=\"description\" content=\"Configuring the Xiaomi Mi Robot vacuum cleaner and obtaining the encrypted token for use in Home Assistant.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Config: Setting up the Xiaomi Mi Robot Vacuum in Home Assistant - DIY Futurism\" \/>\n<meta property=\"og:description\" content=\"Configuring the Xiaomi Mi Robot vacuum cleaner and obtaining the encrypted token for use in Home Assistant.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/\" \/>\n<meta property=\"og:site_name\" content=\"DIY Futurism\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-28T18:55:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-19T01:24:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/006mZuRsgw1f7cwam8h4kj31hc0u0te9.jpg?fit=1920%2C1080&#038;ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@diyfuturism\" \/>\n<meta name=\"twitter:site\" content=\"@diyfuturism\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"brad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/diyfuturism.com\/#website\",\"url\":\"https:\/\/diyfuturism.com\/\",\"name\":\"DIY Futurism\",\"description\":\"Adventures in Open Source Smart Home Projects\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/diyfuturism.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/006mZuRsgw1f7cwam8h4kj31hc0u0te9.jpg?fit=1920%2C1080&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/006mZuRsgw1f7cwam8h4kj31hc0u0te9.jpg?fit=1920%2C1080&ssl=1\",\"width\":1920,\"height\":1080},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/#webpage\",\"url\":\"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/\",\"name\":\"Config: Setting up the Xiaomi Mi Robot Vacuum in Home Assistant - DIY Futurism\",\"isPartOf\":{\"@id\":\"https:\/\/diyfuturism.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/#primaryimage\"},\"datePublished\":\"2017-11-28T18:55:35+00:00\",\"dateModified\":\"2017-12-19T01:24:01+00:00\",\"author\":{\"@id\":\"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c\"},\"description\":\"Configuring the Xiaomi Mi Robot vacuum cleaner and obtaining the encrypted token for use in Home Assistant.\",\"breadcrumb\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/diyfuturism.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Config: Setting up the Xiaomi Mi Robot Vacuum in Home Assistant\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c\",\"name\":\"brad\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/diyfuturism.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7e2d60eb1f322b4ad6040a746946a361?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7e2d60eb1f322b4ad6040a746946a361?s=96&d=mm&r=g\",\"caption\":\"brad\"},\"description\":\"I'm a professional artist who likes to tinker with building things in my spare time.\",\"sameAs\":[\"https:\/\/twitter.com\/@diyfuturism\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Config: Setting up the Xiaomi Mi Robot Vacuum in Home Assistant - DIY Futurism","description":"Configuring the Xiaomi Mi Robot vacuum cleaner and obtaining the encrypted token for use in Home Assistant.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/","og_locale":"en_US","og_type":"article","og_title":"Config: Setting up the Xiaomi Mi Robot Vacuum in Home Assistant - DIY Futurism","og_description":"Configuring the Xiaomi Mi Robot vacuum cleaner and obtaining the encrypted token for use in Home Assistant.","og_url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/","og_site_name":"DIY Futurism","article_published_time":"2017-11-28T18:55:35+00:00","article_modified_time":"2017-12-19T01:24:01+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/006mZuRsgw1f7cwam8h4kj31hc0u0te9.jpg?fit=1920%2C1080&ssl=1","path":"\/var\/www\/html\/wp-content\/uploads\/2017\/11\/006mZuRsgw1f7cwam8h4kj31hc0u0te9.jpg","size":"full","id":139,"alt":"","pixels":2073600,"type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_creator":"@diyfuturism","twitter_site":"@diyfuturism","twitter_misc":{"Written by":"brad","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/diyfuturism.com\/#website","url":"https:\/\/diyfuturism.com\/","name":"DIY Futurism","description":"Adventures in Open Source Smart Home Projects","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/diyfuturism.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/#primaryimage","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/006mZuRsgw1f7cwam8h4kj31hc0u0te9.jpg?fit=1920%2C1080&ssl=1","contentUrl":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/006mZuRsgw1f7cwam8h4kj31hc0u0te9.jpg?fit=1920%2C1080&ssl=1","width":1920,"height":1080},{"@type":"WebPage","@id":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/#webpage","url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/","name":"Config: Setting up the Xiaomi Mi Robot Vacuum in Home Assistant - DIY Futurism","isPartOf":{"@id":"https:\/\/diyfuturism.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/#primaryimage"},"datePublished":"2017-11-28T18:55:35+00:00","dateModified":"2017-12-19T01:24:01+00:00","author":{"@id":"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c"},"description":"Configuring the Xiaomi Mi Robot vacuum cleaner and obtaining the encrypted token for use in Home Assistant.","breadcrumb":{"@id":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/28\/config-setting-up-the-xiaomi-mi-robot-vacuum-in-home-assistant\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/diyfuturism.com\/"},{"@type":"ListItem","position":2,"name":"Config: Setting up the Xiaomi Mi Robot Vacuum in Home Assistant"}]},{"@type":"Person","@id":"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c","name":"brad","image":{"@type":"ImageObject","@id":"https:\/\/diyfuturism.com\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/7e2d60eb1f322b4ad6040a746946a361?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7e2d60eb1f322b4ad6040a746946a361?s=96&d=mm&r=g","caption":"brad"},"description":"I'm a professional artist who likes to tinker with building things in my spare time.","sameAs":["https:\/\/twitter.com\/@diyfuturism"]}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/006mZuRsgw1f7cwam8h4kj31hc0u0te9.jpg?fit=1920%2C1080&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9q0Cl-2h","jetpack-related-posts":[{"id":14,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/20\/my-smart-home-hardware-list\/","url_meta":{"origin":141,"position":0},"title":"My Smart Home: Hardware List","date":"November 20, 2017","format":false,"excerpt":"An ongoing list of all the hardware I've gradually acquired. Links are to Amazon, but if you are patient most things can be imported from China for much cheaper. Want to get started in home automation for cheap?\u00a0Check out my\u00a0$200 DIY Smart Home Shopping List to get started with a\u2026","rel":"","context":"In &quot;Hardware&quot;","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-3.21.16-PM.png?fit=1200%2C694&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":251,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/19\/home-assistant-making-plant-sensors-talk\/","url_meta":{"origin":141,"position":1},"title":"Home Assistant: Making My Plants Talk with IoT Sensors and a Python Script","date":"December 19, 2017","format":false,"excerpt":"Living in an urban city without a garden, I have been exercising my green thumb by accumulating more and more houseplants. I have them tucked away in every light-filled corner, hanging from every rafter in my tall ceilings. Which is a problem, because I have to get a ladder out\u2026","rel":"","context":"In &quot;Config&quot;","img":{"alt_text":"","src":"https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/33644078760_c2187a3974_o.jpg?fit=1080%2C1080&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":34,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/26\/presence-detection-with-home-assistant-bayesian-probability\/","url_meta":{"origin":141,"position":2},"title":"Presence Detection Part 1: Home Assistant &#038; Bayesian Probability","date":"November 26, 2017","format":false,"excerpt":"One of the most useful things to track for home automation is whether anyone is home or not. If you want the lights to turn off when no one is home, the vacuum robot to run when you're at work, or the heat to come on before you arrive home\u2026","rel":"","context":"In &quot;Config&quot;","img":{"alt_text":"","src":"https:\/\/i2.wp.com\/www.diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-25-at-8.31.52-PM.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":22,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/26\/the-open-source-smart-home-getting-started-with-home-assistant-node-red\/","url_meta":{"origin":141,"position":3},"title":"The Open Source Smart Home: Getting Started with Home Assistant &#038; Node-Red","date":"November 26, 2017","format":false,"excerpt":"Home Assistant is one of the most interesting open source projects I've ever come across. It interfaces with any device, platform, or service you can think of. It can connect all of your devices to make a truly smart home. With a little creativity almost anything is possible with Home\u2026","rel":"","context":"In &quot;Config&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-26-at-10.43.33-PM.png?fit=1200%2C562&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":417,"url":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/31\/setting-up-lets-encrypt-with-node-red-home-assistant\/","url_meta":{"origin":141,"position":4},"title":"Setting Up Let&#8217;s Encrypt with Node-Red &#038; Home Assistant","date":"January 31, 2018","format":false,"excerpt":"Privacy is important in the smart home, and one of the primary reasons to use Home Assistant is because it is totally under control of the user, on your own network. Since writing these posts, setting up encryption with Hass & Node-Red has been the number one question I've been\u2026","rel":"","context":"In &quot;Config&quot;","img":{"alt_text":"Let's Encrypt","src":"https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/01\/images.duckduckgo.png?fit=800%2C400&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":231,"url":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/","url_meta":{"origin":141,"position":5},"title":"Useful Sensor: Cardinal Wind Direction for Home Assistant","date":"January 13, 2018","format":false,"excerpt":"As someone who cycles to work most days, I keep a pretty close eye on the weather. One thing I like to know is which way the wind is blowing - a strong headwind means I should maybe opt for the road bike, not the cruiser. Home Assistant\u00a0has a ton\u2026","rel":"","context":"In &quot;Config&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-141437.png?fit=1200%2C680&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/141"}],"collection":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":10,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":292,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/141\/revisions\/292"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media\/139"}],"wp:attachment":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}