{"id":215,"date":"2017-12-15T21:08:41","date_gmt":"2017-12-16T05:08:41","guid":{"rendered":"http:\/\/www.diyfuturism.com\/?p=215"},"modified":"2018-06-14T16:06:22","modified_gmt":"2018-06-14T23:06:22","slug":"useful-sensor-motion-last-seen-________","status":"publish","type":"post","link":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/","title":{"rendered":"Useful Sensor: Motion Last Seen &#038; Meta Motion Sensor"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>You know what&#8217;s great about motion sensors? They are very, very cheap to build yourself. All it takes is an esp8266 module like the <a href=\"http:\/\/amzn.to\/2ASTnLf\" target=\"_blank\" rel=\"noopener\">Wemos D1 Mini<\/a>, <a href=\"http:\/\/amzn.to\/2Bwjs20\" target=\"_blank\" rel=\"noopener\">some PIR sensors<\/a>, and the <a href=\"https:\/\/www.letscontrolit.com\/wiki\/index.php\/ESPEasy\" target=\"_blank\" rel=\"noopener\">ESP Easy<\/a> firmware and you can have a bunch up and running in a few minutes. I\u00a0haven&#8217;t DIYed a battery powered one yet, but there are plenty of great <a href=\"http:\/\/amzn.to\/2CCBgGF\" target=\"_blank\" rel=\"noopener\">Z-Wave ones<\/a> available.<\/p>\n<p>Once you have a couple of motion sensors in your smart home, you can have Home Assistant track the last place it saw motion. This is a useful bit of info &#8211; useful as a condition for your automations, or as an input for a <a href=\"https:\/\/home-assistant.io\/components\/binary_sensor.bayesian\/\" target=\"_blank\" rel=\"noopener\">bayesian binary sensor<\/a>. See below for YAML to create a meta-motion sensor with a history.<\/p>\n<p><!--more--><\/p>\n<p><script type=\"text\/javascript\">\namzn_assoc_placement = \"adunit0\";\namzn_assoc_search_bar = \"false\";\namzn_assoc_tracking_id = \"diyfuturism-20\";\namzn_assoc_ad_mode = \"manual\";\namzn_assoc_ad_type = \"smart\";\namzn_assoc_marketplace = \"amazon\";\namzn_assoc_region = \"US\";\namzn_assoc_title = \"Motion Sensors\";\namzn_assoc_linkid = \"48cfa65d50114855c70cd5fca2afdd6a\";\namzn_assoc_asins = \"B012ZZ4LPM,B01KQDIU52,B01KJYSOGI,B0151Z8ZQY\";\n<\/script><br \/>\n<script src=\"\/\/z-na.amazon-adsystem.com\/widgets\/onejs?MarketPlace=US\"><\/script><\/p>\n<p>You need to install the <a href=\"https:\/\/community.home-assistant.io\/t\/custom-component-to-declare-set-variables\/25218\" target=\"_blank\" rel=\"noopener\">variable custom component <\/a>in order to use my exact yaml for this first part, otherwise you can use a different type to track the value like <a href=\"https:\/\/home-assistant.io\/components\/input_select\/\" target=\"_blank\" rel=\"noopener\">input_select<\/a>\u00a0or\u00a0<a href=\"https:\/\/home-assistant.io\/components\/input_text\/\" target=\"_blank\" rel=\"noopener\">input_text<\/a>. The advantage of using the variable component is we can save the history as attributes.<\/p>\n<p>Pastebin link:\u00a0<a href=\"https:\/\/pastebin.com\/bCRPTtHY\" target=\"_blank\" rel=\"noopener\">https:\/\/pastebin.com\/bCRPTtHY<\/a><\/p>\n<h3><strong>configuration.yaml<\/strong><\/h3>\n<pre>variable:  \r\n  last_motion:\r\n    value: 'Unknown'\r\n    restore: true\r\n    attributes:\r\n      icon: mdi:map-marker\r\n      name: \"Last Motion\"<\/pre>\n<h3><strong>automation.yaml<\/strong><\/h3>\n<pre># Update Last Motion variable\r\n- alias: \"Update Last Motion\"\r\n  trigger:\r\n    - platform: state\r\n      entity_id: binary_sensor.bathroom_motion, binary_sensor.closet_motion, binary_sensor.entry_motion_meta, binary_sensor.dining_motion_meta, binary_sensor.kitchen_motion_meta, binary_sensor.livingroom_motion_meta, binary_sensor.office_motion\r\n      to: 'on'\r\n  action:\r\n    - service: variable.set_variable\r\n      data:\r\n        variable: last_motion\r\n        attributes_template: &gt;\r\n            {\r\n              \"history_1\": \"{{ variable.state }}\",\r\n              \"history_2\": \"{{ variable.attributes.history_1 }}\",\r\n              \"history_3\": \"{{ variable.attributes.history_2 }}\"\r\n            }\r\n      data_template:\r\n        value: \"{{ trigger.to_state.attributes.friendly_name }}\"<\/pre>\n<p>Optionally, if you have multiple motion sensors in one room you can combine them into one meta-sensor using a template.<\/p>\n<h3><strong>binary_sensors.yaml<\/strong><\/h3>\n<pre>    kitchen_motion_meta:\r\n      friendly_name: 'Kitchen Motion'\r\n      device_class: motion\r\n      value_template: &gt;-\r\n        {%- if is_state(\"binary_sensor.kitchen_motion\", \"on\")\r\n        or is_state(\"binary_sensor.fridge_motion\", \"on\")\r\n        or is_state(\"binary_sensor.crawl_space_door\", \"on\")\r\n          -%}\r\n        True\r\n        {%- else -%}\r\n        False\r\n        {%- endif %}<\/pre>\n<p><img data-attachment-id=\"217\" data-permalink=\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/screen-shot-2017-12-15-at-8-51-30-pm\/\" data-orig-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.51.30-PM.png?fit=372%2C311&amp;ssl=1\" data-orig-size=\"372,311\" 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-12-15 at 8.51.30 PM\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.51.30-PM.png?fit=300%2C251&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.51.30-PM.png?fit=372%2C311&amp;ssl=1\" loading=\"lazy\" class=\"aligncenter size-full wp-image-217\" src=\"https:\/\/i1.wp.com\/www.diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.51.30-PM.png?resize=372%2C311\" alt=\"\" width=\"372\" height=\"311\" srcset=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.51.30-PM.png?w=372&amp;ssl=1 372w, https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.51.30-PM.png?resize=300%2C251&amp;ssl=1 300w\" sizes=\"(max-width: 372px) 100vw, 372px\" data-recalc-dims=\"1\" \/><\/p>\n<p>Pastebin link:\u00a0<a href=\"https:\/\/pastebin.com\/bCRPTtHY\" target=\"_blank\" rel=\"noopener\">https:\/\/pastebin.com\/bCRPTtHY<\/a><\/p>\n<p>For an example of using this sensor as a condition in an automation, see #3 in\u00a0<a href=\"http:\/\/www.diyfuturism.com\/index.php\/2017\/12\/14\/basic-node-red-flows-for-automating-lighting-with-home-assistant\/\" target=\"_blank\" rel=\"noopener\">Basic Node-Red Flows for Lighting<\/a>.<\/p>\n<p>Any binary sensor can be used, so you may want to include your door sensors as well. This opens up some useful possibilities with the history attributes of our variable.last_motion. If you have a defined route through your house &#8211; say walking in from the garage, through the entry door, to the kitchen &#8211; you can have Home Assistant detect this and react accordingly. If you need a longer history, simply adjust the update automation.<\/p>\n<div id=\"amzn-assoc-ad-5aa5379f-ce53-4b7a-8e34-0eaa79d5fdd3\"><\/div>\n<p><script src=\"\/\/z-na.amazon-adsystem.com\/widgets\/onejs?MarketPlace=US&amp;adInstanceId=5aa5379f-ce53-4b7a-8e34-0eaa79d5fdd3\" async=\"\">\/\/ <![CDATA[\n<\/p>\n\n\n\n\n<p>\n<\/p>\n\n\n\n\n<p>\n\/\/ ]]><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"wpm_excerpt clearfix\"><p>&nbsp; You know what&#8217;s great about motion sensors? They are very, very cheap to build yourself. All it takes is an esp8266 module like the Wemos &hellip;<\/p>\n<\/div>","protected":false},"author":1,"featured_media":216,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[8,7,3,9],"tags":[101,47,36,31,54,32,30,59,25,50,58],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Useful Sensor: Motion Last Seen &amp; Meta Motion Sensor - DIY Futurism<\/title>\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\/12\/15\/useful-sensor-motion-last-seen-________\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Useful Sensor: Motion Last Seen &amp; Meta Motion Sensor - DIY Futurism\" \/>\n<meta property=\"og:description\" content=\"&nbsp; You know what&#8217;s great about motion sensors? They are very, very cheap to build yourself. All it takes is an esp8266 module like the Wemos &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/\" \/>\n<meta property=\"og:site_name\" content=\"DIY Futurism\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-16T05:08:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-06-14T23:06:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.19.16-PM.png?fit=475%2C270&#038;ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"475\" \/>\n\t<meta property=\"og:image:height\" content=\"270\" \/>\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\/12\/15\/useful-sensor-motion-last-seen-________\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.19.16-PM.png?fit=475%2C270&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.19.16-PM.png?fit=475%2C270&ssl=1\",\"width\":475,\"height\":270,\"caption\":\"Motion Last Seen\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/#webpage\",\"url\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/\",\"name\":\"Useful Sensor: Motion Last Seen & Meta Motion Sensor - DIY Futurism\",\"isPartOf\":{\"@id\":\"https:\/\/diyfuturism.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/#primaryimage\"},\"datePublished\":\"2017-12-16T05:08:41+00:00\",\"dateModified\":\"2018-06-14T23:06:22+00:00\",\"author\":{\"@id\":\"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c\"},\"breadcrumb\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/diyfuturism.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Useful Sensor: Motion Last Seen &#038; Meta Motion Sensor\"}]},{\"@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":"Useful Sensor: Motion Last Seen & Meta Motion Sensor - DIY Futurism","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\/12\/15\/useful-sensor-motion-last-seen-________\/","og_locale":"en_US","og_type":"article","og_title":"Useful Sensor: Motion Last Seen & Meta Motion Sensor - DIY Futurism","og_description":"&nbsp; You know what&#8217;s great about motion sensors? They are very, very cheap to build yourself. All it takes is an esp8266 module like the Wemos &hellip;","og_url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/","og_site_name":"DIY Futurism","article_published_time":"2017-12-16T05:08:41+00:00","article_modified_time":"2018-06-14T23:06:22+00:00","og_image":[{"width":475,"height":270,"url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.19.16-PM.png?fit=475%2C270&ssl=1","path":"\/var\/www\/html\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.19.16-PM.png","size":"full","id":216,"alt":"Motion Last Seen","pixels":128250,"type":"image\/png"}],"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\/12\/15\/useful-sensor-motion-last-seen-________\/#primaryimage","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.19.16-PM.png?fit=475%2C270&ssl=1","contentUrl":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-15-at-8.19.16-PM.png?fit=475%2C270&ssl=1","width":475,"height":270,"caption":"Motion Last Seen"},{"@type":"WebPage","@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/#webpage","url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/","name":"Useful Sensor: Motion Last Seen & Meta Motion Sensor - DIY Futurism","isPartOf":{"@id":"https:\/\/diyfuturism.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/#primaryimage"},"datePublished":"2017-12-16T05:08:41+00:00","dateModified":"2018-06-14T23:06:22+00:00","author":{"@id":"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c"},"breadcrumb":{"@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/diyfuturism.com\/"},{"@type":"ListItem","position":2,"name":"Useful Sensor: Motion Last Seen &#038; Meta Motion Sensor"}]},{"@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\/12\/Screen-Shot-2017-12-15-at-8.19.16-PM.png?fit=475%2C270&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9q0Cl-3t","jetpack-related-posts":[{"id":231,"url":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/","url_meta":{"origin":215,"position":0},"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":[]},{"id":237,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/","url_meta":{"origin":215,"position":1},"title":"Useful Sensor: Bayesian Sleep Detection in Home Assistant","date":"December 29, 2017","format":false,"excerpt":"Sleep is not something I can directly observe in my smart home (at least not until I build that\u00a0DIY bed sensor). It would be nice to know though - then the alarm could be set, doors locked, thermostat set, music volume slowly dimmed, and internet bandwidth reprioritized automatically when it's\u2026","rel":"","context":"In &quot;Config&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/7770002228_c509b98d47_k.jpg?fit=1200%2C808&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":215,"position":2},"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":14,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/20\/my-smart-home-hardware-list\/","url_meta":{"origin":215,"position":3},"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":469,"url":"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/","url_meta":{"origin":215,"position":4},"title":"Location Aware Notification Lights with Node-Red and IFTTT","date":"March 13, 2018","format":false,"excerpt":"I am in the habit of going on cooking sprees while listening to music... loudly. I only share one wall with a neighbor here in the loft, and that neighbor is very tolerant. On a Sunday afternoon, with multiple dishes going at a time, my most used smart home feature\u2026","rel":"","context":"In &quot;Home Assistant&quot;","img":{"alt_text":"Connecting Node Red and IFTTT","src":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/36159691101_b469c9a91f_k.jpg?fit=1200%2C800&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":215,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/215"}],"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=215"}],"version-history":[{"count":12,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":681,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/215\/revisions\/681"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media\/216"}],"wp:attachment":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media?parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/categories?post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/tags?post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}