{"id":766,"date":"2023-04-17T08:35:52","date_gmt":"2023-04-17T13:35:52","guid":{"rendered":"https:\/\/lab.rapternet.us\/?p=766"},"modified":"2023-02-12T16:55:58","modified_gmt":"2023-02-12T22:55:58","slug":"night-security-lights","status":"publish","type":"post","link":"https:\/\/lab.rapternet.us\/?p=766","title":{"rendered":"Night Security Lights"},"content":{"rendered":"\n<p>I wanted to setup some smart lights to turn on and off at various times when I&#8217;m away so that it looks like people are still around in the house. These are going to be going between a few rooms to look more legitimate for anyone watching.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Goals<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Turn on at sunset for living room<\/li>\n\n\n\n<li>Turn off at X time in living room<\/li>\n\n\n\n<li>Turn on at X time + buffer in bedroom<\/li>\n\n\n\n<li>Turn off at Y time in bedroom<\/li>\n<\/ul>\n\n\n\n<p>With this setup, all I have to do is remember to turn on the lamps when I go and then enable the automations that run it. These automations are now enabled\/disabled by my EspDeck pads.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Plan<\/h2>\n\n\n\n<p>To set things up, I&#8217;d install some smart switches or plugs on the lights I wanted to use. I would make use of my automations that I made for the stairway fairy lights as a baseline to turn on and off everything, and customize from there.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Light Automations<\/h2>\n\n\n\n<p>I&#8217;ve added one floor lamp and a few smart switches to my automations. With a few different lights in the automations, it&#8217;ll make it look like someone is moving around. When I&#8217;m around though, I&#8217;ll need all the lights to work as normal.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"1024\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-12-828x1024.png\" alt=\"\" class=\"wp-image-1993\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-12-828x1024.png 828w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-12-243x300.png 243w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-12-768x950.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-12-1242x1536.png 1242w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-12.png 1429w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Turn Lights On At Certain Time<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"1024\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-11-827x1024.png\" alt=\"\" class=\"wp-image-1992\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-11-827x1024.png 827w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-11-242x300.png 242w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-11-768x951.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-11-1240x1536.png 1240w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-11.png 1440w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Turn Lights Off At Certain Time<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Enable\/Disable Automations<\/h2>\n\n\n\n<p>I have both a Home automation and an Away automation. Both of these are triggered by ESP Deck buttons (binary sensors). These are below. They are pretty simple, just to enable all the automations when away, and disable all of them when home. They also turn on and off some smart plugs based off that status so the lamps that are plugged in can be used manually.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"1024\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-13-963x1024.png\" alt=\"\" class=\"wp-image-1994\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-13-963x1024.png 963w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-13-282x300.png 282w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-13-768x816.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-13-1445x1536.png 1445w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-13.png 1463w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Turning on Away Mode from the EspDeck<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"996\" height=\"1024\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-10-996x1024.png\" alt=\"\" class=\"wp-image-1991\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-10-996x1024.png 996w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-10-292x300.png 292w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-10-768x790.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-10-1493x1536.png 1493w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2022\/04\/image-10.png 1609w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Enabling Plugs for Manual use on the Lights when arriving Home<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>This ended up working out well. With a few iterations to make it easier to startup, it&#8217;s now made use of when we go out of town for a few days. Smart switches instead of plugs for lights makes it harder to miss a step before going (no need to turn on the lamps it uses). I went so far as to set up the start and stop actions for it on my EspDeck to make it that much easier to turn on. At some point I&#8217;d like to get presence detection working so I don&#8217;t even need the EspDeck buttons to make it run.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to setup some smart lights to turn on and off at various times when I&#8217;m away so that it looks like people are still around in the house. These are going to be going between a few rooms to look more legitimate for anyone watching.<\/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-766","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\/766","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=766"}],"version-history":[{"count":17,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/766\/revisions"}],"predecessor-version":[{"id":2320,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/766\/revisions\/2320"}],"wp:attachment":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}