{"id":3501,"date":"2023-08-29T23:15:41","date_gmt":"2023-08-30T06:15:41","guid":{"rendered":"https:\/\/digitalnigel.com\/wordpress\/?p=3501"},"modified":"2023-08-29T23:15:41","modified_gmt":"2023-08-30T06:15:41","slug":"customizing-a-smart-plug","status":"publish","type":"post","link":"https:\/\/digitalnigel.com\/wordpress\/?p=3501","title":{"rendered":"Customizing a Smart Plug"},"content":{"rendered":"\n<p>Recently some projects around the house have been in need of some better &#8216;home automation&#8217; than a standard timer can provide, so I went looking for a smart plug that was either &#8216;dumb&#8217; enough for my liking (didn&#8217;t tie you to some manufacturer&#8217;s cloud service), or was modifiable with my own code.<\/p>\n\n\n\n<p>Fortunately the <a href=\"https:\/\/esphome.io\/\">ESPHome<\/a> project is a great resource both for a list of devices that are reasonably easily modifiable, and for a codebase built for running your own automation on a number of IoT devices.<\/p>\n\n\n\n<p>I looked through their list a bit, and found a few devices that were built around the ESP32, which I am already well familiar with, and which were inexpensive and easily available to me through the usual retailers. In the end I ended up settling on the Wyze Plug Outdoor, and picked up a few units.<\/p>\n\n\n\n<p>Internally there&#8217;s some test points that I soldered some headers on to get access to the serial UART and the power pins. After hooking that up, it&#8217;s a quick process to flash some ESPHome code on the unit, or write your own with Arduino \/ your IDE of choice.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/08\/IMG_0441-scaled.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/08\/IMG_0441-1024x768.jpeg\" alt=\"\" class=\"wp-image-3502\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/08\/IMG_0441-1024x768.jpeg 1024w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/08\/IMG_0441-300x225.jpeg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/08\/IMG_0441-150x113.jpeg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/08\/IMG_0441-768x576.jpeg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/08\/IMG_0441-1536x1152.jpeg 1536w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2023\/08\/IMG_0441-2048x1536.jpeg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>So far, I&#8217;ve been really happy with these units. They seem to be built reasonably well, they aren&#8217;t glued together so they&#8217;re easy to open up and reprogram, they&#8217;re suitable for outdoor use if needed, and have two individually controllable outlets.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently some projects around the house have been in need of some better &#8216;home automation&#8217; than a standard timer can provide, so I went looking for a smart plug that was either &#8216;dumb&#8217; enough for my liking (didn&#8217;t tie you &hellip; <a href=\"https:\/\/digitalnigel.com\/wordpress\/?p=3501\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,4,6],"tags":[],"class_list":["post-3501","post","type-post","status-publish","format-standard","hentry","category-electronics","category-random","category-technology"],"_links":{"self":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3501"}],"version-history":[{"count":1,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3501\/revisions"}],"predecessor-version":[{"id":3503,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3501\/revisions\/3503"}],"wp:attachment":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}