{"id":237,"date":"2017-12-29T14:29:00","date_gmt":"2017-12-29T22:29:00","guid":{"rendered":"http:\/\/www.diyfuturism.com\/?p=237"},"modified":"2017-12-19T11:06:08","modified_gmt":"2017-12-19T19:06:08","slug":"useful-sensor-bayesian-sleep-detection-in-home-assistant","status":"publish","type":"post","link":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/","title":{"rendered":"Useful Sensor: Bayesian Sleep Detection in Home Assistant"},"content":{"rendered":"<p>Sleep is not something I can directly observe in my smart home (at least not until I build that\u00a0<a href=\"http:\/\/www.diyfuturism.com\/index.php\/2017\/11\/27\/favorite-esp8266-internet-of-things-projects\/\">DIY bed sensor<\/a>). It would be nice to know though &#8211; then the alarm could be set, doors locked, thermostat set, music volume slowly dimmed, and internet bandwidth reprioritized automatically when it&#8217;s time for bed. We spend a lot of time sleeping in our homes, so it makes sense to be able to detect it.<\/p>\n<p>Using Home Assistant&#8217;s\u00a0<a href=\"https:\/\/home-assistant.io\/components\/binary_sensor.bayesian\/\" target=\"_blank\" rel=\"noopener\">Bayesian binary sensor<\/a>\u00a0it&#8217;s possible to guess pretty accurately when everyone&#8217;s tucked away. See below for example YAML and explanation.<\/p>\n<p><!--more--><\/p>\n<p><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=US&amp;source=ac&amp;ref=qf_sp_asin_til&amp;ad_type=product_link&amp;tracking_id=diyfuturism-20&amp;marketplace=amazon&amp;region=US&amp;placement=B074L26BCP&amp;asins=B074L26BCP&amp;linkId=e4177d6feb7628499f93a6faf80cd2e2&amp;show_border=false&amp;link_opens_in_new_window=false&amp;price_color=333333&amp;title_color=0066c0&amp;bg_color=ffffff\" width=\"300\" height=\"150\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><br \/>\n<\/iframe><\/p>\n<p>This assumes you have your binary sensor&#8217;s split into a separate\u00a0binary_sensor.yaml file.<\/p>\n<h3>binary_sensor.yaml<\/h3>\n<pre>- platform: bayesian\n  prior: 0.5\n  name: 'Bayesian Sleeping'\n  probability_threshold: 0.85\n  observations:\n      - entity_id: 'group.tracked_users'\n        prob_given_true: 0.99\n        prob_given_false: 0.5\n        platform: 'state'\n        to_state: 'home'\n      - entity_id: 'sensor.sun'\n        prob_given_true: 0.9\n        prob_given_false: 0.2\n        platform: 'state'\n        to_state: 'below_horizon'\n      - entity_id: 'group.all_lights'\n        prob_given_true: 0.9\n        prob_given_false: 0.4\n        platform: 'state'\n        to_state: 'off'\n      - entity_id: 'sensor.coffeemaker'\n        prob_given_true: 0.8\n        prob_given_false: 0.4\n        platform: 'state'\n        to_state: 'Ready'\n      - entity_id: 'variable.last_motion'\n        prob_given_true: 0.9\n        prob_given_false: 0.3\n        platform: 'state'\n        to_state: 'Bathroom Motion'\n      - entity_id: 'binary_sensor.brad_phone_pluggedin'\n        prob_given_true: 0.95\n        prob_given_false: 0.5\n        platform: 'state'\n        to_state: 'on'<\/pre>\n<h2>What&#8217;s Going On Here?<\/h2>\n<p>The Bayesian sensor attempts to guess whether something is true or not based on a series of observations. Those observations are weighted by how likely it is they are occurring currently, if our guess is either true or false. Let&#8217;s break down this example, trying to guess if I am asleep or not.<\/p>\n<ul>\n<li>prior &#8211; The overall probability that I am asleep. Let&#8217;s say roughly a half of the time I&#8217;m home.<\/li>\n<li>probability_threshold &#8211; How sure should we be before guessing true? 85% &#8211; pretty sure.<\/li>\n<\/ul>\n<p>Now, for the observations. prob_given_true is the likelihood the observed state is occurring if I am asleep. The prob_given_false is the likelihood the observed state is occurring, but I&#8217;m not asleep.<\/p>\n<ul>\n<li>Home &#8211; Obviously, I need to be home to be asleep, so 99% if true. But just because I&#8217;m home doesn&#8217;t mean I&#8217;m passed out. Let&#8217;s say I&#8217;m home but not asleep half the time.<\/li>\n<li>Sun Down &#8211; If it&#8217;s dark out that certainly increases the chances I&#8217;m asleep dramatically. Let&#8217;s set it to 90% if true, 20% if false<\/li>\n<li>All lights Off? If all the lights are off and I&#8217;m home, I&#8217;m either asleep or watching a movie. So another strong indicator &#8211; but not always.<\/li>\n<li>Coffee Maker Ready? I&#8217;m a big coffee drinker and usually set up the coffee machine before bed, so another observation that&#8217;s useful here.<\/li>\n<li>Last Motion in Bathroom &#8211; I always brush my teeth before bed, so if that was the last place Home Assistant saw motion, another likely indicator that I went to bed after.<\/li>\n<li>Phone Plugged In &#8211; Batteries are the bane of my existence, and I always, always plug the phone in at night. Another very strong indicator I&#8217;m asleep.<\/li>\n<\/ul>\n<p>None of these things individually are very helpful for knowing whether I am asleep or not. Taken together, it is very accurate. Think creatively about the observed states you already are tracking with Home Assistant, how those things could possibly indicate something like sleep.<\/p>\n<p>By making many observations based on small sensor values, we are making our home truly &#8216;smart&#8217; and able to do things with no interaction from the users.<\/p>\n<h2>More Examples<\/h2>\n<ul>\n<li><a href=\"http:\/\/www.diyfuturism.com\/index.php\/2017\/11\/26\/presence-detection-with-home-assistant-bayesian-probability\/\" target=\"_blank\" rel=\"noopener\">Home Assistant Bayesian Probability and Presence Detection<\/a><\/li>\n<\/ul>\n<h3><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=US&amp;source=ac&amp;ref=qf_sp_asin_til&amp;ad_type=product_link&amp;tracking_id=diyfuturism-20&amp;marketplace=amazon&amp;region=US&amp;placement=B01MQXXG0I&amp;asins=B01MQXXG0I&amp;linkId=d7decd5b6d66e08fd957cbc0b7a4f674&amp;show_border=false&amp;link_opens_in_new_window=false&amp;price_color=333333&amp;title_color=0066c0&amp;bg_color=ffffff\" width=\"300\" height=\"150\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><br \/>\n<\/iframe><\/h3>\n","protected":false},"excerpt":{"rendered":"<div class=\"wpm_excerpt clearfix\"><p>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 &hellip;<\/p>\n<\/div>","protected":false},"author":1,"featured_media":239,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"Useful Sensor: Bayesian Sleep Detection in @Home_Assistant #hassio #homeassistant #iot #bayesian #smarthome","jetpack_is_tweetstorm":false},"categories":[8,7,9],"tags":[47,60,57,36,51,59,103,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: Bayesian Sleep Detection in Home Assistant - 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\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Useful Sensor: Bayesian Sleep Detection in Home Assistant - DIY Futurism\" \/>\n<meta property=\"og:description\" content=\"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 &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/\" \/>\n<meta property=\"og:site_name\" content=\"DIY Futurism\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-29T22:29:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-19T19:06:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/7770002228_c509b98d47_k.jpg?fit=2048%2C1379&#038;ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t<meta property=\"og:image:height\" content=\"1379\" \/>\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=\"3 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\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/7770002228_c509b98d47_k.jpg?fit=2048%2C1379&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/7770002228_c509b98d47_k.jpg?fit=2048%2C1379&ssl=1\",\"width\":2048,\"height\":1379},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/#webpage\",\"url\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/\",\"name\":\"Useful Sensor: Bayesian Sleep Detection in Home Assistant - DIY Futurism\",\"isPartOf\":{\"@id\":\"https:\/\/diyfuturism.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/#primaryimage\"},\"datePublished\":\"2017-12-29T22:29:00+00:00\",\"dateModified\":\"2017-12-19T19:06:08+00:00\",\"author\":{\"@id\":\"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c\"},\"breadcrumb\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/diyfuturism.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Useful Sensor: Bayesian Sleep Detection 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":"Useful Sensor: Bayesian Sleep Detection in Home Assistant - 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\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/","og_locale":"en_US","og_type":"article","og_title":"Useful Sensor: Bayesian Sleep Detection in Home Assistant - DIY Futurism","og_description":"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 &hellip;","og_url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/","og_site_name":"DIY Futurism","article_published_time":"2017-12-29T22:29:00+00:00","article_modified_time":"2017-12-19T19:06:08+00:00","og_image":[{"width":2048,"height":1379,"url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/7770002228_c509b98d47_k.jpg?fit=2048%2C1379&ssl=1","path":"\/var\/www\/html\/wp-content\/uploads\/2017\/12\/7770002228_c509b98d47_k.jpg","size":"full","id":239,"alt":"","pixels":2824192,"type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_creator":"@diyfuturism","twitter_site":"@diyfuturism","twitter_misc":{"Written by":"brad","Est. reading time":"3 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\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/#primaryimage","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/7770002228_c509b98d47_k.jpg?fit=2048%2C1379&ssl=1","contentUrl":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/7770002228_c509b98d47_k.jpg?fit=2048%2C1379&ssl=1","width":2048,"height":1379},{"@type":"WebPage","@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/#webpage","url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/","name":"Useful Sensor: Bayesian Sleep Detection in Home Assistant - DIY Futurism","isPartOf":{"@id":"https:\/\/diyfuturism.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/#primaryimage"},"datePublished":"2017-12-29T22:29:00+00:00","dateModified":"2017-12-19T19:06:08+00:00","author":{"@id":"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c"},"breadcrumb":{"@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/diyfuturism.com\/"},{"@type":"ListItem","position":2,"name":"Useful Sensor: Bayesian Sleep Detection 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\/12\/7770002228_c509b98d47_k.jpg?fit=2048%2C1379&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9q0Cl-3P","jetpack-related-posts":[{"id":34,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/26\/presence-detection-with-home-assistant-bayesian-probability\/","url_meta":{"origin":237,"position":0},"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":215,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/","url_meta":{"origin":237,"position":1},"title":"Useful Sensor: Motion Last Seen &#038; Meta Motion Sensor","date":"December 15, 2017","format":false,"excerpt":"\u00a0 You know what's great about motion sensors? They are very, very cheap to build yourself. All it takes is an esp8266 module like the Wemos D1 Mini, some PIR sensors, and the ESP Easy firmware and you can have a bunch up and running in a few minutes. I\u00a0haven't\u2026","rel":"","context":"In &quot;Config&quot;","img":{"alt_text":"Motion Last Seen","src":"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&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":70,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/27\/useful-sensor-improving-presence-detection-with-node-red\/","url_meta":{"origin":237,"position":2},"title":"Presence Detection Part 2: Improving Presence with Node-Red","date":"November 27, 2017","format":false,"excerpt":"In my previous post about presence detection, I showed how you can combine multiple device trackers into one highly accurate Bayesian sensor. In Home Assistant, this new binary_sensor that I created is either on or off. It would be a little nicer if it were a device_tracker\u00a0entity instead that was\u2026","rel":"","context":"In &quot;Config&quot;","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-26-at-7.30.26-PM.png?fit=1200%2C618&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":237,"position":3},"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":251,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/19\/home-assistant-making-plant-sensors-talk\/","url_meta":{"origin":237,"position":4},"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":469,"url":"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/","url_meta":{"origin":237,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/237"}],"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=237"}],"version-history":[{"count":2,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":240,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/237\/revisions\/240"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media\/239"}],"wp:attachment":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media?parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/categories?post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/tags?post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}