{"id":123,"date":"2019-06-03T00:00:00","date_gmt":"2019-06-03T04:00:00","guid":{"rendered":"https:\/\/thisisgalib.com\/?p=123"},"modified":"2024-05-06T20:15:41","modified_gmt":"2024-05-07T00:15:41","slug":"iot-outlets-2","status":"publish","type":"post","link":"https:\/\/thisisgalib.com\/index.php\/2019\/06\/03\/iot-outlets-2\/","title":{"rendered":"IoT Outlets"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/thisisgalib.com\/wp-content\/uploads\/2024\/05\/IMG_2572-1-1024x1024.jpg\" alt=\"\" class=\"wp-image-128\" srcset=\"https:\/\/thisisgalib.com\/wp-content\/uploads\/2024\/05\/IMG_2572-1-1024x1024.jpg 1024w, https:\/\/thisisgalib.com\/wp-content\/uploads\/2024\/05\/IMG_2572-1-300x300.jpg 300w, https:\/\/thisisgalib.com\/wp-content\/uploads\/2024\/05\/IMG_2572-1-150x150.jpg 150w, https:\/\/thisisgalib.com\/wp-content\/uploads\/2024\/05\/IMG_2572-1-768x768.jpg 768w, https:\/\/thisisgalib.com\/wp-content\/uploads\/2024\/05\/IMG_2572-1-1536x1536.jpg 1536w, https:\/\/thisisgalib.com\/wp-content\/uploads\/2024\/05\/IMG_2572-1-2048x2048.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Objective<\/h2>\n\n\n\n<p>Curious of all the new smart home tech, I started my journey of making smart home devices by creating an array of smart outlets.<\/p>\n\n\n\n<p>The idea was feasible due to the Particle Photon, a WiFi-enabled STM32-based microcontroller with a cloud-enabled backend. This microcontroller was perfect for the job because it allowed me to connect to the smart outlets from any location with internet access using the Particle mobile application.<\/p>\n\n\n\n<p>In addition to being able to control and view the state of the outlets from the Particle app, I implemented Google Home, Alexa, IFTTT, MQTT, and Node-RED&nbsp;support.&nbsp;<\/p>\n\n\n\n<p>The Particle Cloud that comes with every Particle device and the ability to use existing Arduino libraries makes this project scalable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Looking forward<\/h2>\n\n\n\n<p>In the future, I would like to redesign this to use a custom PCB to control clutter.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Looking back in 2023<\/h2>\n\n\n\n<p>When I look back at this project, I remember the time when people were embracing the ESP8266 and the ESP32 for custom electronics smart home homemade projects. I chose to use the Particle Photon due to its ecosystem &#8211; it was an easy way to quickly get up and running. In 2019, Home Assistant was gaining traction, but was not user friendly. I had my Home Assistant instance break and I have given up on Home Assistant for months on two occasions! It was not until much later that I decided to give Home Assistant another try, and since then I have enjoyed it.<\/p>\n\n\n\n<p>Up until now, I have gained lots of experience in professional settings designing enclosures, printed circuit boards, electrical systems and writing code. If I was to redo this project, I would make the following changes:<\/p>\n\n\n\n<ul>\n<li>Design the enclosure similar to a power strip<\/li>\n\n\n\n<li>One (maybe two if was to separate AC power and DC signals) printed circuit board(s) to reduce the number of wires<\/li>\n\n\n\n<li>Instead of quick-disconnect, use PCB through-hole versions of the NEMA 5-15 receptacles<\/li>\n\n\n\n<li>Replace the AC to 5VDC converter with one from MeanWell<\/li>\n\n\n\n<li>Replace the generic relays with ones from Omron<\/li>\n\n\n\n<li>Replace the Particle Photon with an ESP8266 running ESPHome<\/li>\n\n\n\n<li>Add Home Assistant functionality<\/li>\n\n\n\n<li>Make the files open source so others can build their own as well<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Objective Curious of all the new smart home tech, I started my journey of making smart home devices by creating an array of smart outlets. The idea was feasible due to the Particle Photon, a WiFi-enabled STM32-based microcontroller with a cloud-enabled backend. This microcontroller was perfect for the job because it allowed me to connect [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[],"_links":{"self":[{"href":"https:\/\/thisisgalib.com\/index.php\/wp-json\/wp\/v2\/posts\/123"}],"collection":[{"href":"https:\/\/thisisgalib.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thisisgalib.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thisisgalib.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thisisgalib.com\/index.php\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":3,"href":"https:\/\/thisisgalib.com\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":130,"href":"https:\/\/thisisgalib.com\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions\/130"}],"wp:attachment":[{"href":"https:\/\/thisisgalib.com\/index.php\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thisisgalib.com\/index.php\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thisisgalib.com\/index.php\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}