{"id":9354,"date":"2019-05-05T08:36:11","date_gmt":"2019-05-05T15:36:11","guid":{"rendered":"https:\/\/smarthomesolver.com\/reviews\/?p=9354"},"modified":"2022-01-31T09:37:16","modified_gmt":"2022-01-31T16:37:16","slug":"ifttt-applets-only-at-certain-times","status":"publish","type":"post","link":"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/","title":{"rendered":"How to Allow IFTTT Applets Only to Run at Certain Times"},"content":{"rendered":"<p>If you are like me, then you have been wondering how to allow IFTTT applets to only run at a certain time.<\/p>\n<p>For example: turn on lights with a motion sensor, but only when it&#8217;s at night. It is possible to do this and I will show you how.<\/p>\n<p>First, head over to the IFTTT Platform at this link:\u00a0<a href=\"https:\/\/platform.ifttt.com\/maker\/get_started\" target=\"_blank\" rel=\"noopener\">https:\/\/platform.ifttt.com\/maker\/get_started.<\/a>\u00a0Here you can create applets with extra functionality.<\/p>\n<p>In this article, I will show you how to turn on a light bulb with a Wyze Sense motion sensor, but only between 8 pm and 5 am. Of course, you can change out the devices and times for whatever you are looking to do.<\/p>\n<p>To get started, click on the\u00a0<strong>New Applet <\/strong>button.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-9358 size-large\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.25.39-PM-compressor-1024x204.jpg\" alt=\"\" width=\"550\" height=\"110\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.25.39-PM-compressor-1024x204.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.25.39-PM-compressor-300x60.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.25.39-PM-compressor.jpg 1083w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Type in the service you want to use. In my case, I&#8217;m going to use Wyze and then I will select the Motion Sensor detects motion.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-large wp-image-9359\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.26.12-PM-compressor-1024x576.jpg\" alt=\"\" width=\"550\" height=\"309\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.26.12-PM-compressor-1024x576.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.26.12-PM-compressor-300x169.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.26.12-PM-compressor.jpg 1032w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n<p>Next, it will show you a section for selecting the device. You won&#8217;t be able to select the device until you activate this applet so just move on to the next part.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-9361\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.26.41-PM-compressor.jpg\" alt=\"\" width=\"1019\" height=\"281\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.26.41-PM-compressor.jpg 1019w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.26.41-PM-compressor-300x83.jpg 300w\" sizes=\"(max-width: 1019px) 100vw, 1019px\" \/><\/p>\n<p>Click on\u00a0<strong>Add action<\/strong> which you will search for the service just like the trigger part. For my example, I am going to use the Smart Life service to turn on an inexpensive bulb. The next dropdown I changed it to\u00a0<strong>Turn on<\/strong> since I&#8217;m turning on the light when it detects motion.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-9362\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.26.58-PM-compressor.jpg\" alt=\"\" width=\"986\" height=\"317\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.26.58-PM-compressor.jpg 986w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.26.58-PM-compressor-300x96.jpg 300w\" sizes=\"(max-width: 986px) 100vw, 986px\" \/><\/p>\n<p>After adding the action, you can now turn on the filter button. Click on\u00a0<strong>Add filter code<\/strong> to open up the area where you will be able to add the code. This will make the applet only run between 8 pm and 5 am. <img loading=\"lazy\" class=\"aligncenter wp-image-9363 \" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.27.11-PM-compressor.jpg\" alt=\"\" width=\"697\" height=\"297\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.27.11-PM-compressor.jpg 974w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.27.11-PM-compressor-300x128.jpg 300w\" sizes=\"(max-width: 697px) 100vw, 697px\" \/><\/p>\n<p>Paste in the code below and I will let you know what to modify.<\/p>\n<hr \/>\n<p>var currentHour = Meta.currentUserTime.hour()<\/p>\n<p>if (currentHour &gt;= 20 || currentHour &lt; 5 ) {<\/p>\n<p>\/\/ Run the applet<\/p>\n<p>} else {<\/p>\n<p>\/\/ Skip the action<\/p>\n<p>Smartlife.turnOn.skip()<\/p>\n<p>}<\/p>\n<hr \/>\n<p>There are only a few things you would need to change. First is the last line Smartlife.turnOn.skip() and you can find out what to replace it with on the right side under\u00a0<strong>Actions<\/strong>.<\/p>\n<p>Whatever service you are using will have a different name under Actions for you to copy and paste.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-9364\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.27.26-PM-compressor-1024x558.jpg\" alt=\"\" width=\"679\" height=\"370\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.27.26-PM-compressor-1024x558.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.27.26-PM-compressor-300x163.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.27.26-PM-compressor.jpg 1200w\" sizes=\"(max-width: 679px) 100vw, 679px\" \/><\/p>\n<p>The other thing you may want to adjust is the time when you don&#8217;t want the applet to run. This is based on the 24-hour clock. 20 is 8 pm and 5 is 5 am, so if you wanted to have it run between 6 pm and 7 am you would change it to &#8220;if (currentHour &gt;= 18 || currentHour &lt; 7 ) {&#8221;<\/p>\n<p>After you have adjusted the code, you will need to add the Applet title and description. Then click\u00a0<strong>Save<\/strong> down at the bottom.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-large wp-image-9365\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.28.21-PM-compressor-1024x592.jpg\" alt=\"\" width=\"550\" height=\"318\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.28.21-PM-compressor-1024x592.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.28.21-PM-compressor-300x173.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.28.21-PM-compressor.jpg 1200w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n<p>Once you have clicked Save you will see a link\u00a0<strong>Enable it on IFTTT<\/strong> and click on that.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-large wp-image-9366\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.28.35-PM-compressor-1024x454.jpg\" alt=\"\" width=\"550\" height=\"244\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.28.35-PM-compressor-1024x454.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.28.35-PM-compressor-300x133.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.28.35-PM-compressor.jpg 1067w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n<p>Change the slider to On. This will show the familiar screen of adding the devices to the Applet. Choose the devices and click\u00a0<strong>Save<\/strong>.<\/p>\n<p><img loading=\"lazy\" class=\"wp-image-9367 size-medium alignleft\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.28.47-PM-compressor-276x300.jpg\" alt=\"\" width=\"276\" height=\"300\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.28.47-PM-compressor-276x300.jpg 276w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.28.47-PM-compressor.jpg 675w\" sizes=\"(max-width: 276px) 100vw, 276px\" \/><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-9368\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.29.24-PM-compressor-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.29.24-PM-compressor-225x300.jpg 225w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.29.24-PM-compressor.jpg 565w\" sizes=\"(max-width: 225px) 100vw, 225px\" \/><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>Now it&#8217;s all set up! Enjoy your new automation that only runs at the time you want it to.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are like me, then you have been wondering how to allow IFTTT applets to only run at a certain time. For example: turn on lights with a motion sensor, but only when it&#8217;s at night. It is possible <a href=\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/\"><\/p>\n<div class=\"read-more\">\n<p>Read more &#8250;<\/p>\n<\/div>\n<p><!-- end of .read-more --><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Allow IFTTT Applets Only to Run at Certain Times | Smart Home Solver<\/title>\n<link rel=\"canonical\" href=\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Allow IFTTT Applets Only to Run at Certain Times | Smart Home Solver\" \/>\n<meta property=\"og:description\" content=\"If you are like me, then you have been wondering how to allow IFTTT applets to only run at a certain time. For example: turn on lights with a motion sensor, but only when it&#8217;s at night. It is possible Read more &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/\" \/>\n<meta property=\"og:site_name\" content=\"Smart Home Solver\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-05T15:36:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-31T16:37:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.25.39-PM-compressor-1024x204.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"3 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#website\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/\",\"name\":\"Smart Home Solver\",\"description\":\"Smart Home Solver\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/smarthomesolver.com\/reviews\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/#primaryimage\",\"inLanguage\":\"en\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.25.39-PM-compressor.jpg\",\"contentUrl\":\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-04-at-9.25.39-PM-compressor.jpg\",\"width\":1083,\"height\":216},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/#webpage\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/\",\"name\":\"How to Allow IFTTT Applets Only to Run at Certain Times | Smart Home Solver\",\"isPartOf\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/#primaryimage\"},\"datePublished\":\"2019-05-05T15:36:11+00:00\",\"dateModified\":\"2022-01-31T16:37:16+00:00\",\"author\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#\/schema\/person\/d7a94f002e37d00d768cdbc8bf0afaa3\"},\"breadcrumb\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/ifttt-applets-only-at-certain-times\/\",\"name\":\"How to Allow IFTTT Applets Only to Run at Certain Times\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#\/schema\/person\/d7a94f002e37d00d768cdbc8bf0afaa3\",\"name\":\"Reed Kleinman\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#personlogo\",\"inLanguage\":\"en\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f0b2a85b039ba9da5470ee40dc5ab57a?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f0b2a85b039ba9da5470ee40dc5ab57a?s=96&r=g\",\"caption\":\"Reed Kleinman\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts\/9354"}],"collection":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/comments?post=9354"}],"version-history":[{"count":12,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts\/9354\/revisions"}],"predecessor-version":[{"id":12581,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts\/9354\/revisions\/12581"}],"wp:attachment":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/media?parent=9354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/categories?post=9354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/tags?post=9354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}