{"id":1380,"date":"2022-05-09T21:17:00","date_gmt":"2022-05-10T02:17:00","guid":{"rendered":"https:\/\/lab.rapternet.us\/?p=1380"},"modified":"2022-04-06T15:41:35","modified_gmt":"2022-04-06T20:41:35","slug":"home-assistant-automated-christmas-lights","status":"publish","type":"post","link":"https:\/\/lab.rapternet.us\/?p=1380","title":{"rendered":"Home Assistant Automated Christmas Lights"},"content":{"rendered":"\n<p>I have a number of windows with Christmas lights in them. I would like to use smart plugs and home assistant to automate them turning on and off during the winter season since I&#8217;m pretty lazy when it comes to decorating. This should be pretty straight forward to do once we have the <a href=\"https:\/\/lab.rapternet.us\/?p=445\">current month sensor<\/a> setup in home assistant to use as a condition.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\" id=\"goals\">Goals<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Turn on Christmas lights in the months of November and December before sunset<\/li><li>Turn off at set time<\/li><\/ul>\n\n\n\n<p>I plan on using my <a href=\"https:\/\/lab.rapternet.us\/?p=445\">current month numeric sensor<\/a>, automate the Christmas light smart plugs to turn on at night only during certain months.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"turn-off\">Turn Off<\/h2>\n\n\n\n<p>The turn off automation has no conditions needed, just the trigger time and the devices to activate.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"266\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-3-1024x266.png\" alt=\"\" class=\"wp-image-1386\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-3-1024x266.png 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-3-300x78.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-3-768x200.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-3-1536x399.png 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-3.png 1592w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Trigger at a Certain Time<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-4-1024x670.png\" alt=\"\" class=\"wp-image-1387\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-4-1024x670.png 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-4-300x196.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-4-768x502.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-4-1536x1004.png 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-4.png 1592w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Action to Turn off the Lights<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"turn-on\">Turn On<\/h2>\n\n\n\n<p>The turn on automation triggers 30 minutes before sunset with a condition on the month being above 10 and below 13 (so months 11 and 12, November and December). This is followed up with the devices to turn on.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"263\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-1024x263.png\" alt=\"\" class=\"wp-image-1383\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-1024x263.png 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-300x77.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-768x197.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-1536x394.png 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image.png 1610w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Trigger Near Sundown<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"396\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-1-1024x396.png\" alt=\"\" class=\"wp-image-1384\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-1-1024x396.png 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-1-300x116.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-1-768x297.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-1-1536x593.png 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-1.png 1602w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Condition That it&#8217;s November or December<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"665\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-2-1024x665.png\" alt=\"\" class=\"wp-image-1385\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-2-1024x665.png 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-2-300x195.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-2-768x499.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-2-1536x998.png 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/01\/image-2.png 1604w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Action to Turn on the Various Lights<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>This is pretty easy to setup once the current month numeric sensor is configured in home assistant. This simple automation just works (TM) and lets me leave up Christmas lights in my windows without needing to take them down (and so I can use them at other times too).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"resources\">Resources<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/lab.rapternet.us\/?p=445\">Current Month Numeric Sensor<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I have a number of windows with Christmas lights in them. I would like to use smart plugs and home assistant to automate them turning on and off during the winter season since I&#8217;m pretty lazy when it comes to decorating. This should be pretty straight forward to do once we have the current month &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lab.rapternet.us\/?p=1380\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Home Assistant Automated Christmas Lights&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[39,49],"class_list":["post-1380","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-home-assistant","tag-smart-home"],"_links":{"self":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/1380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1380"}],"version-history":[{"count":14,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/1380\/revisions"}],"predecessor-version":[{"id":1682,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/1380\/revisions\/1682"}],"wp:attachment":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}