{"id":469,"date":"2018-03-13T11:04:03","date_gmt":"2018-03-13T18:04:03","guid":{"rendered":"http:\/\/diyfuturism.com\/?p=469"},"modified":"2018-06-14T16:50:36","modified_gmt":"2018-06-14T23:50:36","slug":"location-aware-notification-lights-node-red-ifttt","status":"publish","type":"post","link":"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/","title":{"rendered":"Location Aware Notification Lights with Node-Red and IFTTT"},"content":{"rendered":"<p>I am in the habit of going on cooking sprees while listening to music&#8230; 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 is &#8220;Alexa, set a meatball timer for 25 minutes&#8221;. Having <a href=\"http:\/\/amzn.to\/2HsGiXG\" target=\"_blank\" rel=\"noopener\">Alexa<\/a> keep track of all my timers is really helpful when my hands are full. The problem is that I rarely hear the timer, and have burned a few things not paying attention.<\/p>\n<p>Using IFTTT, Node-Red, and Home Assistant I can blink the lights in the room when the Alexa timer goes off &#8211; even if I wander off to a different room.<\/p>\n<p><!--more--><\/p>\n<p>First, some tunes<\/p>\n<p><span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"854\" height=\"481\" src=\"https:\/\/www.youtube.com\/embed\/Qcu5KT_bwvQ?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation\"><\/iframe><\/span><\/p>\n<p>Let&#8217;s say you were attempting to make meatballs, a sauce, some pasta, and roast some carrots all while taking notes on a blog post and blasting the above Fugazi album. You might not hear your timer go off. And especially if you are me, you might wander off to do something else for a minute and forget about the timer entirely.<\/p>\n<h2>THE SOLUTION<\/h2>\n<p>I want the lights to blink 3 times, in whatever room I am in, every time an <a href=\"http:\/\/amzn.to\/2HsGiXG\" target=\"_blank\" rel=\"noopener\">Alexa<\/a> timer goes off.<\/p>\n<p>Home Assistant controls the lights and keeps track of what room I was last in (using my useful <a href=\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/\">Motion Last Seen<\/a> sensor).<\/p>\n<p>Alexa Timers can be used as an IFTTT trigger.<\/p>\n<p>Node-Red can bridge the two, accepting a web request from IFTTT and then telling Home Assistant which lights to blink.<\/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 = \"alexa\";\namzn_assoc_default_category = \"All\";\namzn_assoc_linkid = \"ca61a1d09ea1861fb9547ac142e7f9e7\";\namzn_assoc_design = \"in_content\";\namzn_assoc_title = \"\";\n<\/script><br \/>\n<script src=\"\/\/z-na.amazon-adsystem.com\/widgets\/onejs?MarketPlace=US\"><\/script><\/p>\n<h3>NODE-RED<\/h3>\n<p>First, I&#8217;m going to make a flow that will blink the lights in the closest room. If no lights are on, it looks to see if I&#8217;m watching a movie and pauses that instead.<\/p>\n<div id=\"attachment_473\" style=\"width: 740px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-473\" data-attachment-id=\"473\" data-permalink=\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/screen-shot-2018-03-13-at-10-34-53-am\/\" data-orig-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.34.53-AM.png?fit=1141%2C203&amp;ssl=1\" data-orig-size=\"1141,203\" 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=\"Blink Lights in Closest Room\" data-image-description=\"&lt;p&gt;Blink Lights in Closest Room&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Blink Lights in Closest Room&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.34.53-AM.png?fit=300%2C53&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.34.53-AM.png?fit=854%2C152&amp;ssl=1\" loading=\"lazy\" class=\"wp-image-473 size-large\" src=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.34.53-AM-1024x182.png?resize=730%2C130\" alt=\"Blink Lights in Closest Room\" width=\"730\" height=\"130\" srcset=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.34.53-AM.png?resize=1024%2C182&amp;ssl=1 1024w, https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.34.53-AM.png?resize=600%2C107&amp;ssl=1 600w, https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.34.53-AM.png?resize=300%2C53&amp;ssl=1 300w, https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.34.53-AM.png?resize=768%2C137&amp;ssl=1 768w, https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.34.53-AM.png?w=1141&amp;ssl=1 1141w\" sizes=\"(max-width: 730px) 100vw, 730px\" data-recalc-dims=\"1\" \/><p id=\"caption-attachment-473\" class=\"wp-caption-text\">Blink Lights in Closest Room<\/p><\/div>\n<p>If the lights are on, check the <a href=\"http:\/\/diyfuturism.com\/index.php\/2017\/12\/15\/useful-sensor-motion-last-seen-________\/\">Motion Last Seen<\/a> sensor. A function evaluates that output, and passes along which light to blink as a data override. The looptimer toggles the light so that it blinks 3 times. The JSON for this flow is <a href=\"https:\/\/pastebin.com\/CvJaCWMU\" target=\"_blank\" rel=\"noopener\" class=\"broken_link\">available here<\/a>. The function node for choosing the light looks like this:<\/p>\n<pre>newmsg = {}\r\nentity_id = \"\";\r\nif (msg.payload == \"Office Motion\") {\r\n entity_id = \"light.office_pendant\"\r\n} \r\nelse if (msg.payload == \"Bathroom Motion\") {\r\n entity_id = \"switch.bathroom_light\"\r\n} \r\nelse if (msg.payload == \"Kitchen Motion\" || msg.payload == \"Dining Motion\") {\r\n entity_id = \"switch.edison_pendants\"\r\n}\r\nelse if (msg.payload == \"Living Room Motion\") {\r\n entity_id = \"light.middle_pendant\"\r\n}\r\nelse if (msg.payload == \"Closet Motion\") {\r\n entity_id = \"light.closet\"\r\n}\r\nelse {\r\n newmsg = \"NONE\"\r\n return newmsg;\r\n}\r\n \r\nnewmsg.payload = { data: {'entity_id': entity_id } } \r\nreturn newmsg;<\/pre>\n<p>Once this is working as expected, select the flow and click the hamburger menu and select &#8220;Subflows -&gt; Create Subflow&#8221;.<\/p>\n<p>This will package the flow as our own custom node that can be dropped in anywhere easily. Now, if I need to add a room or change which light blinks I can just edit the one subflow instead of multiple function nodes in multiple places.<\/p>\n<p><img data-attachment-id=\"474\" data-permalink=\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/screen-shot-2018-03-13-at-10-43-04-am\/\" data-orig-file=\"https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.43.04-AM.png?fit=162%2C136&amp;ssl=1\" data-orig-size=\"162,136\" 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=\"Sub-Flow\" data-image-description=\"&lt;p&gt;Sub-Flow&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Sub-Flow&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.43.04-AM.png?fit=162%2C136&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.43.04-AM.png?fit=162%2C136&amp;ssl=1\" loading=\"lazy\" class=\"size-full wp-image-474 aligncenter\" src=\"https:\/\/i2.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.43.04-AM.png?resize=162%2C136\" alt=\"Sub-Flow\" width=\"162\" height=\"136\" data-recalc-dims=\"1\" \/><\/p>\n<p>Now let&#8217;s create a very simple flow that takes a web request from IFTTT, and triggers our new subflow.<\/p>\n<p><img data-attachment-id=\"476\" data-permalink=\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/screen-shot-2018-03-13-at-10-49-38-am\/\" data-orig-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.49.38-AM.png?fit=499%2C120&amp;ssl=1\" data-orig-size=\"499,120\" 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=\"\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.49.38-AM.png?fit=300%2C72&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.49.38-AM.png?fit=499%2C120&amp;ssl=1\" loading=\"lazy\" class=\"aligncenter size-full wp-image-476\" src=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.49.38-AM.png?resize=499%2C120\" alt=\"\" width=\"499\" height=\"120\" srcset=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.49.38-AM.png?w=499&amp;ssl=1 499w, https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.49.38-AM.png?resize=300%2C72&amp;ssl=1 300w\" sizes=\"(max-width: 499px) 100vw, 499px\" data-recalc-dims=\"1\" \/><\/p>\n<p>In the http endpoint node, we give it a name and a request type:<\/p>\n<div id=\"attachment_477\" style=\"width: 508px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-477\" data-attachment-id=\"477\" data-permalink=\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/screen-shot-2018-03-13-at-10-50-23-am\/\" data-orig-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.50.23-AM.png?fit=498%2C296&amp;ssl=1\" data-orig-size=\"498,296\" 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=\"http node settings\" data-image-description=\"&lt;p&gt;http node settings&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;http node settings&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.50.23-AM.png?fit=300%2C178&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.50.23-AM.png?fit=498%2C296&amp;ssl=1\" loading=\"lazy\" class=\"size-full wp-image-477\" src=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.50.23-AM.png?resize=498%2C296\" alt=\"http node settings\" width=\"498\" height=\"296\" srcset=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.50.23-AM.png?w=498&amp;ssl=1 498w, https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.50.23-AM.png?resize=300%2C178&amp;ssl=1 300w\" sizes=\"(max-width: 498px) 100vw, 498px\" data-recalc-dims=\"1\" \/><p id=\"caption-attachment-477\" class=\"wp-caption-text\">http node settings<\/p><\/div>\n<h3>IFTTT<\/h3>\n<p>Make a new applet, using the Alexa Timer as the trigger. Then we want IFTTT to make a web request to Node-Red. For the URL, use the endpoint we created above.<\/p>\n<div id=\"attachment_472\" style=\"width: 296px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-472\" data-attachment-id=\"472\" data-permalink=\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/screen-shot-2018-03-13-at-10-30-13-am\/\" data-orig-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.30.13-AM.png?fit=286%2C523&amp;ssl=1\" data-orig-size=\"286,523\" 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=\"IFTTT Settings\" data-image-description=\"&lt;p&gt;IFTTT Settings&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;IFTTT Settings&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.30.13-AM.png?fit=164%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.30.13-AM.png?fit=286%2C523&amp;ssl=1\" loading=\"lazy\" class=\"wp-image-472 size-full\" src=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.30.13-AM.png?resize=286%2C523\" alt=\"IFTTT Settings\" width=\"286\" height=\"523\" srcset=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.30.13-AM.png?w=286&amp;ssl=1 286w, https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-13-at-10.30.13-AM.png?resize=164%2C300&amp;ssl=1 164w\" sizes=\"(max-width: 286px) 100vw, 286px\" data-recalc-dims=\"1\" \/><p id=\"caption-attachment-472\" class=\"wp-caption-text\">IFTTT Settings<\/p><\/div>\n<p>Save the applet and test it out, if everything triggers successfully the lights will now blink in whatever room you find yourself in when the timer concludes.<\/p>\n<div id=\"amzn-assoc-ad-8ba45d28-72f3-4d97-89af-ef96de2a7468\"><\/div>\n<p><script async src=\"\/\/z-na.amazon-adsystem.com\/widgets\/onejs?MarketPlace=US&#038;adInstanceId=8ba45d28-72f3-4d97-89af-ef96de2a7468\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"wpm_excerpt clearfix\"><p>I am in the habit of going on cooking sprees while listening to music&#8230; loudly. I only share one wall with a neighbor here in the &hellip;<\/p>\n<\/div>","protected":false},"author":1,"featured_media":682,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[7,11,3],"tags":[137,138,47,43,96,97,36,31,54,141,32,42,48,140,52,44,59,25,139,50],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Location Aware Notification Lights with Node-Red and IFTTT - DIY Futurism<\/title>\n<meta name=\"description\" content=\"Creating notification lights in Node-Red for an Alexa Timer that will follow me from room to room.\" \/>\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\/03\/13\/location-aware-notification-lights-node-red-ifttt\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Location Aware Notification Lights with Node-Red and IFTTT - DIY Futurism\" \/>\n<meta property=\"og:description\" content=\"Creating notification lights in Node-Red for an Alexa Timer that will follow me from room to room.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/\" \/>\n<meta property=\"og:site_name\" content=\"DIY Futurism\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-13T18:04:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-06-14T23:50:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/36159691101_b469c9a91f_k.jpg?fit=2048%2C1365&#038;ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t<meta property=\"og:image:height\" content=\"1365\" \/>\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\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/36159691101_b469c9a91f_k.jpg?fit=2048%2C1365&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/36159691101_b469c9a91f_k.jpg?fit=2048%2C1365&ssl=1\",\"width\":2048,\"height\":1365,\"caption\":\"Connecting Node Red and IFTTT\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/#webpage\",\"url\":\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/\",\"name\":\"Location Aware Notification Lights with Node-Red and IFTTT - DIY Futurism\",\"isPartOf\":{\"@id\":\"https:\/\/diyfuturism.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/#primaryimage\"},\"datePublished\":\"2018-03-13T18:04:03+00:00\",\"dateModified\":\"2018-06-14T23:50:36+00:00\",\"author\":{\"@id\":\"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c\"},\"description\":\"Creating notification lights in Node-Red for an Alexa Timer that will follow me from room to room.\",\"breadcrumb\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/diyfuturism.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Location Aware Notification Lights with Node-Red and IFTTT\"}]},{\"@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":"Location Aware Notification Lights with Node-Red and IFTTT - DIY Futurism","description":"Creating notification lights in Node-Red for an Alexa Timer that will follow me from room to room.","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\/03\/13\/location-aware-notification-lights-node-red-ifttt\/","og_locale":"en_US","og_type":"article","og_title":"Location Aware Notification Lights with Node-Red and IFTTT - DIY Futurism","og_description":"Creating notification lights in Node-Red for an Alexa Timer that will follow me from room to room.","og_url":"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/","og_site_name":"DIY Futurism","article_published_time":"2018-03-13T18:04:03+00:00","article_modified_time":"2018-06-14T23:50:36+00:00","og_image":[{"width":2048,"height":1365,"url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/36159691101_b469c9a91f_k.jpg?fit=2048%2C1365&ssl=1","path":"\/var\/www\/html\/wp-content\/uploads\/2018\/03\/36159691101_b469c9a91f_k.jpg","size":"full","id":682,"alt":"Connecting Node Red and IFTTT","pixels":2795520,"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\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/#primaryimage","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/36159691101_b469c9a91f_k.jpg?fit=2048%2C1365&ssl=1","contentUrl":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/36159691101_b469c9a91f_k.jpg?fit=2048%2C1365&ssl=1","width":2048,"height":1365,"caption":"Connecting Node Red and IFTTT"},{"@type":"WebPage","@id":"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/#webpage","url":"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/","name":"Location Aware Notification Lights with Node-Red and IFTTT - DIY Futurism","isPartOf":{"@id":"https:\/\/diyfuturism.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/#primaryimage"},"datePublished":"2018-03-13T18:04:03+00:00","dateModified":"2018-06-14T23:50:36+00:00","author":{"@id":"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c"},"description":"Creating notification lights in Node-Red for an Alexa Timer that will follow me from room to room.","breadcrumb":{"@id":"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/diyfuturism.com\/index.php\/2018\/03\/13\/location-aware-notification-lights-node-red-ifttt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/diyfuturism.com\/"},{"@type":"ListItem","position":2,"name":"Location Aware Notification Lights with Node-Red and IFTTT"}]},{"@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\/2018\/03\/36159691101_b469c9a91f_k.jpg?fit=2048%2C1365&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9q0Cl-7z","jetpack-related-posts":[{"id":764,"url":"https:\/\/diyfuturism.com\/index.php\/2018\/12\/16\/my-node-red-smart-alarm-clock-with-snooze\/","url_meta":{"origin":469,"position":0},"title":"My Node-Red Smart Alarm Clock with Snooze","date":"December 16, 2018","format":false,"excerpt":"Definitely one of my very favorite features of my smart house is my alarm clock. Which is funny because I am not a morning person\u00a0at all\u00a0and hate getting up. But the daily grind is made a little better by having my house gently wake me by fading in lights and\u2026","rel":"","context":"In &quot;Config&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/12\/david-von-diemar-291597-unsplash.jpg?fit=1200%2C734&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":191,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/basic-node-red-flows-for-automating-lighting-with-home-assistant\/","url_meta":{"origin":469,"position":1},"title":"Basic Node-Red Flows for Automating Lighting with Home Assistant","date":"December 14, 2017","format":false,"excerpt":"Smart light bulbs are probably the first thing everyone getting into home automation buys. It is easy to see the applications for them - have the lights come on at night, turn off when you're home, etc. It's very satisfying to have the lights react to the day and your\u2026","rel":"","context":"In &quot;Config&quot;","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-7.49.36-PM.png?fit=835%2C631&ssl=1&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":469,"position":2},"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":16,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/26\/big-list-of-home-automation-nodes-for-node-red\/","url_meta":{"origin":469,"position":3},"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":[]},{"id":417,"url":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/31\/setting-up-lets-encrypt-with-node-red-home-assistant\/","url_meta":{"origin":469,"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":410,"url":"https:\/\/diyfuturism.com\/index.php\/2018\/01\/23\/nodes-home-automation-state-machine-actionflows-dashboard-statistics\/","url_meta":{"origin":469,"position":5},"title":"More Nodes for Home Automation: state-machine, actionflows, dashboard, statistics","date":"January 23, 2018","format":false,"excerpt":"I'm keeping a running list of useful nodes I've found for home automation. Here's a couple of more I came across recently in the Node-Red library. dashboard\u00a0- Create an entirely custom, live dashboard. Amazing! statistics - Some useful statistical functions, based on\u00a0Simple Statistics state-machine\u00a0- Manage a state machine with your\u2026","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\/469"}],"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=469"}],"version-history":[{"count":6,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/469\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/469\/revisions\/487"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media\/682"}],"wp:attachment":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media?parent=469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/categories?post=469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/tags?post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}