{"id":231,"date":"2018-01-13T09:47:36","date_gmt":"2018-01-13T17:47:36","guid":{"rendered":"http:\/\/www.diyfuturism.com\/?p=231"},"modified":"2018-01-06T12:53:58","modified_gmt":"2018-01-06T20:53:58","slug":"useful-sensor-wind-direction-home-assistant","status":"publish","type":"post","link":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/","title":{"rendered":"Useful Sensor: Cardinal Wind Direction for Home Assistant"},"content":{"rendered":"<div id=\"attachment_232\" style=\"width: 381px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-232\" data-attachment-id=\"232\" data-permalink=\"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/screenshot-from-2017-12-17-135322\/\" data-orig-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-135322.png?fit=371%2C231&amp;ssl=1\" data-orig-size=\"371,231\" 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=\"Screenshot from 2017-12-17 13:53:22\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-135322.png?fit=300%2C187&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-135322.png?fit=371%2C231&amp;ssl=1\" loading=\"lazy\" class=\"wp-image-232 size-full\" src=\"https:\/\/i1.wp.com\/www.diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-135322.png?resize=371%2C231\" alt=\"\" width=\"371\" height=\"231\" srcset=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-135322.png?w=371&amp;ssl=1 371w, https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-135322.png?resize=300%2C187&amp;ssl=1 300w\" sizes=\"(max-width: 371px) 100vw, 371px\" data-recalc-dims=\"1\" \/><p id=\"caption-attachment-232\" class=\"wp-caption-text\">At a glance &#8211; gustier than usual this morning.<\/p><\/div>\n<p>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 &#8211; a strong headwind means I should maybe opt for the road bike, not the cruiser. <a href=\"https:\/\/home-assistant.io\/\" target=\"_blank\" rel=\"noopener\">Home Assistant<\/a>\u00a0has a ton of <a href=\"https:\/\/home-assistant.io\/components\/#weather\" target=\"_blank\" rel=\"noopener\">weather platforms<\/a>\u00a0&#8211; and the Dark Sky one that I prefer\u00a0tracks wind direction. The only problem is it returns the direction in degrees, which is meaningless to me.<\/p>\n<p>See below for a\u00a0template sensor that will convert degrees to a human-readable cardinal direction.<\/p>\n<p><!--more--><\/p>\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=B0095HVAKS&amp;asins=B0095HVAKS&amp;linkId=ea021a3613fb65a1891ad990cc314774&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<p>This assumes you have your sensors broken out into a separate YAML file.<\/p>\n<h3>sensors.yaml<\/h3>\n<pre># Convert the Wind Direction from degrees to cardinal\r\n- platform: template\r\n  sensors:\r\n    friendly_wind_direction:\r\n      friendly_name: 'Wind Direction'\r\n      value_template: &gt;-\r\n        {%if states.sensor.dark_sky_wind_bearing.state | float&lt;=11 %}N\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&gt;348 %}N\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=34 | float&gt;11 %}NNE\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=56 | float&gt;34 %}NE\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=79 | float&gt;56 %}ENE\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=101 | float&gt;79 %}E\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=124 | float&gt;101 %}ESE\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=146 | float&gt;124 %}SE\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=169 | float&gt;146 %}SSE\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=191 | float&gt;169 %}S\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=214 | float&gt;191 %}SSW\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=236 | float&gt;214 %}SW\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=259 | float&gt;236 %}WSW\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=281 | float&gt;259 %}W\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=304 | float&gt;281 %}WNW\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=326 | float&gt;304 %}NW\r\n        {% elif states.sensor.dark_sky_wind_bearing.state | float&lt;=348 | float&gt;326 %}NNW\r\n        {%- endif %}<\/pre>\n<p>Pastebin link:\u00a0<a href=\"https:\/\/pastebin.com\/BvwXDpi5\" target=\"_blank\" rel=\"noopener\">https:\/\/pastebin.com\/BvwXDpi5<\/a><\/p>\n<p>&nbsp;<\/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=B00QURVHN6&amp;asins=B00QURVHN6&amp;linkId=08930b7ec64bba4fcf7f0a11a51a94ea&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","protected":false},"excerpt":{"rendered":"<div class=\"wpm_excerpt clearfix\"><p>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 &hellip;<\/p>\n<\/div>","protected":false},"author":1,"featured_media":233,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"Useful Sensor: Cardinal Wind Direction for @home_assistant #hassio #homeassistant #iot #weather #foss #smarthome #homeautomation","jetpack_is_tweetstorm":false},"categories":[8,7,3,9],"tags":[47,55,36,31,54,51,59,25,50,102,58],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Useful Sensor: Cardinal Wind Direction for 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\/2018\/01\/13\/useful-sensor-wind-direction-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: Cardinal Wind Direction for Home Assistant - DIY Futurism\" \/>\n<meta property=\"og:description\" content=\"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 &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/\" \/>\n<meta property=\"og:site_name\" content=\"DIY Futurism\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-13T17:47:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-06T20:53:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-141437.png?fit=1222%2C692&#038;ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1222\" \/>\n\t<meta property=\"og:image:height\" content=\"692\" \/>\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\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-141437.png?fit=1222%2C692&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-141437.png?fit=1222%2C692&ssl=1\",\"width\":1222,\"height\":692},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/#webpage\",\"url\":\"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/\",\"name\":\"Useful Sensor: Cardinal Wind Direction for Home Assistant - DIY Futurism\",\"isPartOf\":{\"@id\":\"https:\/\/diyfuturism.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/#primaryimage\"},\"datePublished\":\"2018-01-13T17:47:36+00:00\",\"dateModified\":\"2018-01-06T20:53:58+00:00\",\"author\":{\"@id\":\"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c\"},\"breadcrumb\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/diyfuturism.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Useful Sensor: Cardinal Wind Direction for 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: Cardinal Wind Direction for 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\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/","og_locale":"en_US","og_type":"article","og_title":"Useful Sensor: Cardinal Wind Direction for Home Assistant - DIY Futurism","og_description":"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 &hellip;","og_url":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/","og_site_name":"DIY Futurism","article_published_time":"2018-01-13T17:47:36+00:00","article_modified_time":"2018-01-06T20:53:58+00:00","og_image":[{"width":1222,"height":692,"url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-141437.png?fit=1222%2C692&ssl=1","path":"\/var\/www\/html\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-141437.png","size":"full","id":233,"alt":"","pixels":845624,"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\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/#primaryimage","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-141437.png?fit=1222%2C692&ssl=1","contentUrl":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screenshot-from-2017-12-17-141437.png?fit=1222%2C692&ssl=1","width":1222,"height":692},{"@type":"WebPage","@id":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/#webpage","url":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/","name":"Useful Sensor: Cardinal Wind Direction for Home Assistant - DIY Futurism","isPartOf":{"@id":"https:\/\/diyfuturism.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/#primaryimage"},"datePublished":"2018-01-13T17:47:36+00:00","dateModified":"2018-01-06T20:53:58+00:00","author":{"@id":"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c"},"breadcrumb":{"@id":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/13\/useful-sensor-wind-direction-home-assistant\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/diyfuturism.com\/"},{"@type":"ListItem","position":2,"name":"Useful Sensor: Cardinal Wind Direction for 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\/Screenshot-from-2017-12-17-141437.png?fit=1222%2C692&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9q0Cl-3J","jetpack-related-posts":[{"id":215,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/","url_meta":{"origin":231,"position":0},"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":251,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/19\/home-assistant-making-plant-sensors-talk\/","url_meta":{"origin":231,"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":237,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/29\/useful-sensor-bayesian-sleep-detection-in-home-assistant\/","url_meta":{"origin":231,"position":2},"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":34,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/26\/presence-detection-with-home-assistant-bayesian-probability\/","url_meta":{"origin":231,"position":3},"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":469,"url":"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/","url_meta":{"origin":231,"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":16,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/26\/big-list-of-home-automation-nodes-for-node-red\/","url_meta":{"origin":231,"position":5},"title":"Big List of Useful Home Automation Nodes for Node-Red","date":"November 26, 2017","format":false,"excerpt":"An ongoing list of nodes I have found useful for constructing home automation flows. I have not included device platform nodes, as all state tracking and actions are performed in Home Assistant.","rel":"","context":"In &quot;Node-Red&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/231"}],"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=231"}],"version-history":[{"count":3,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/231\/revisions"}],"predecessor-version":[{"id":236,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/231\/revisions\/236"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media\/233"}],"wp:attachment":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media?parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/categories?post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/tags?post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}