{"id":4179,"date":"2026-06-16T09:00:00","date_gmt":"2026-06-16T09:00:00","guid":{"rendered":"https:\/\/pirhome.com\/?p=4108"},"modified":"2026-06-16T09:00:00","modified_gmt":"2026-06-16T09:00:00","slug":"case-study-homeowner-diy-pir","status":"publish","type":"post","link":"https:\/\/www.pirhome.com\/?p=4179","title":{"rendered":"Case Study: Homeowner Saves 30% on Energy with DIY PIR Sensors"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>A tech-savvy homeowner in Texas was frustrated with high energy bills and manual light switches. His 2,500 sq ft home had 40 light fixtures, but lights were often left on in empty rooms. He decided to build a DIY PIR sensor system using ESPHome and Home Assistant.<\/p>\n<h2>The Challenge<\/h2>\n<p>The homeowner faced several specific issues:<\/p>\n<ul>\n<li>Family members frequently left lights on in empty rooms<\/li>\n<li>No central control for lighting automation<\/li>\n<li>Commercial smart home systems were expensive<\/li>\n<li>Privacy concerns with cloud-based systems<\/li>\n<li>Wanted local control without internet dependency<\/li>\n<\/ul>\n<h2>The Solution<\/h2>\n<p>The homeowner built a DIY system using these components:<\/p>\n<ul>\n<li><strong>Sensors:<\/strong> AM312 PIR sensors (35\u00b5A standby, 3.3V compatible)<\/li>\n<li><strong>Controllers:<\/strong> ESP32 boards running ESPHome<\/li>\n<li><strong>Hub:<\/strong> Home Assistant on Raspberry Pi 4<\/li>\n<li><strong>Lights:<\/strong> Existing LED fixtures with smart switches<\/li>\n<li><strong>Quantity:<\/strong> 12 PIR sensors + 15 smart switches<\/li>\n<\/ul>\n<p>Total cost: $180 (ESP32 boards $60, sensors $24, smart switches $96).<\/p>\n<p>The system logic:<\/p>\n<ul>\n<li>Each room had a dedicated PIR sensor connected to an ESP32<\/li>\n<li>ESPHome reported motion status to Home Assistant via Wi-Fi<\/li>\n<li>Home Assistant automations turned lights on\/off based on occupancy<\/li>\n<li>Hallways and bathrooms used shorter hold times (2-5 minutes)<\/li>\n<li>Living areas used longer hold times (15-30 minutes)<\/li>\n<li>Bedrooms used vacancy mode (manual-on, auto-off)<\/li>\n<\/ul>\n<h2>Implementation<\/h2>\n<p>The project was completed over three weekends:<\/p>\n<ol>\n<li>Weekend 1: Set up Home Assistant on Raspberry Pi, install smart switches (4 rooms)<\/li>\n<li>Weekend 2: Build ESP32 sensor nodes (6 rooms), test connectivity<\/li>\n<li>Weekend 3: Create automations, fine-tune hold times, add battery backup<\/li>\n<\/ol>\n<p>Each sensor node was powered by USB (existing outlets) with a supercapacitor backup.<\/p>\n<h2>Results<\/h2>\n<p>After 12 months of operation:<\/p>\n<table border=\"1\">\n<thead>\n<th>Metric<\/th>\n<th>Before<\/th>\n<th>After<\/th>\n<th>Reduction<\/th>\n<\/thead>\n<tbody>\n<th>Annual lighting energy<\/th>\n<p> 2,500 kWh<\/th>\n<p> 1,500 kWh<\/th>\n<p> 40%<\/th>\n<th>Annual HVAC energy<\/th>\n<p> 8,000 kWh<\/th>\n<p> 6,000 kWh<\/th>\n<p> 25%<\/th>\n<th>Total energy<\/th>\n<p> 10,500 kWh<\/th>\n<p> 7,500 kWh<\/th>\n<p> 29%<\/th>\n<th>Annual cost<\/th>\n<p> $1,575<\/th>\n<p> $1,125<\/th>\n<p> $450<\/th>\n<\/tbody>\n<p>\u8868<\/p>\n<p>Additional benefits included:<\/p>\n<ul>\n<li>Payback period: 5 months (based on $180 investment)<\/li>\n<li>Improved convenience (lights automatically follow family)<\/li>\n<li>Learning experience (ESPHome, Home Assistant)<\/li>\n<li>No cloud dependency (100% local control)<\/li>\n<li>Expandable system (add more sensors anytime)<\/li>\n<\/ul>\n<h2>Key Lessons Learned<\/h2>\n<ol>\n<li><strong>ESPHome simplifies DIY automation:<\/strong> No coding required for basic motion sensors.<\/li>\n<li><strong>AM312 sensors are ideal for ESP32:<\/strong> 3.3V compatible, low power, small size.<\/li>\n<li><strong>Hold times need adjustment per room:<\/strong> Living areas needed 30 minutes, hallways 2 minutes.<\/li>\n<li><strong>Bedrooms should use vacancy mode:<\/strong> Manual-on prevents lights turning on while sleeping.<\/li>\n<li><strong>Battery backup prevents outages:<\/strong> Supercapacitors kept sensors running during power flickers.<\/li>\n<\/ol>\n<h2>ESPHome Configuration Example<\/h2>\n<pre><code>esphome:\n  name: living-room-sensor\n\nesp32:\n  board: esp32dev\n\nwifi:\n  ssid: \"YourSSID\"\n  password: \"YourPassword\"\n\napi:\n  password: \"YourAPIPassword\"\n\nbinary_sensor:\n  - platform: gpio\n    pin: GPIO4\n    name: \"Living Room Motion\"\n    device_class: motion\n    filters:\n      - delayed_on: 100ms\n      - delayed_off: 30s\n<\/code><\/pre>\n<h2>Conclusion<\/h2>\n<p>This case study demonstrates that DIY PIR sensor systems can deliver 30% energy savings at very low cost. The $180 investment paid back in 5 months. The key to success was using ESPHome for easy configuration and AM312 sensors for 3.3V compatibility with ESP32.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview A tech-savvy homeowner in Texas was frustrated with high energy bills and manual light switches. His 2,500 sq ft home had 40 light fixtures, but lights were often left on in empty rooms. He decided to build a DIY PIR sensor system using ESPHome and Home Assistant. The Challenge The homeowner faced several specific [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-4179","post","type-post","status-publish","format-standard","hentry","category-case-studies"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>Case Study: Homeowner Saves 30% on Energy with DIY PIR Sensors - PIRHOME<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.pirhome.com\/?p=4179\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Case Study: Homeowner Saves 30% on Energy with DIY PIR Sensors - PIRHOME\" \/>\r\n<meta property=\"og:description\" content=\"Overview A tech-savvy homeowner in Texas was frustrated with high energy bills and manual light switches. His 2,500 sq ft home had 40 light fixtures, but lights were often left on in empty rooms. He decided to build a DIY PIR sensor system using ESPHome and Home Assistant. The Challenge The homeowner faced several specific [&hellip;]\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/www.pirhome.com\/?p=4179\" \/>\r\n<meta property=\"og:site_name\" content=\"PIRHOME\" \/>\r\n<meta property=\"article:published_time\" content=\"2026-06-16T09:00:00+00:00\" \/>\r\n<meta name=\"author\" content=\"nic@nicsky.com\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"nic@nicsky.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4179#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4179\"},\"author\":{\"name\":\"nic@nicsky.com\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/person\\\/41049b5236f9c77c9314997d070db3e3\"},\"headline\":\"Case Study: Homeowner Saves 30% on Energy with DIY PIR Sensors\",\"datePublished\":\"2026-06-16T09:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4179\"},\"wordCount\":413,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/#organization\"},\"articleSection\":[\"Case Studies\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pirhome.com\\\/?p=4179#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4179\",\"url\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4179\",\"name\":\"Case Study: Homeowner Saves 30% on Energy with DIY PIR Sensors - PIRHOME\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/#website\"},\"datePublished\":\"2026-06-16T09:00:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4179#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pirhome.com\\\/?p=4179\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4179#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pirhome.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Case Study: Homeowner Saves 30% on Energy with DIY PIR Sensors\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/#website\",\"url\":\"https:\\\/\\\/www.pirhome.com\\\/\",\"name\":\"PIRHOME\",\"description\":\"PIR &amp; Motion Sensor\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pirhome.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/#organization\",\"name\":\"PIRHOME\",\"url\":\"https:\\\/\\\/www.pirhome.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.pirhome.com\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg\",\"contentUrl\":\"https:\\\/\\\/www.pirhome.com\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg\",\"width\":512,\"height\":512,\"caption\":\"PIRHOME\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/person\\\/41049b5236f9c77c9314997d070db3e3\",\"name\":\"nic@nicsky.com\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g\",\"caption\":\"nic@nicsky.com\"},\"sameAs\":[\"http:\\\/\\\/www.pirhome.com\"],\"url\":\"https:\\\/\\\/www.pirhome.com\\\/?author=1\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Case Study: Homeowner Saves 30% on Energy with DIY PIR Sensors - PIRHOME","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pirhome.com\/?p=4179","og_locale":"en_US","og_type":"article","og_title":"Case Study: Homeowner Saves 30% on Energy with DIY PIR Sensors - PIRHOME","og_description":"Overview A tech-savvy homeowner in Texas was frustrated with high energy bills and manual light switches. His 2,500 sq ft home had 40 light fixtures, but lights were often left on in empty rooms. He decided to build a DIY PIR sensor system using ESPHome and Home Assistant. The Challenge The homeowner faced several specific [&hellip;]","og_url":"https:\/\/www.pirhome.com\/?p=4179","og_site_name":"PIRHOME","article_published_time":"2026-06-16T09:00:00+00:00","author":"nic@nicsky.com","twitter_card":"summary_large_image","twitter_misc":{"Written by":"nic@nicsky.com","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pirhome.com\/?p=4179#article","isPartOf":{"@id":"https:\/\/www.pirhome.com\/?p=4179"},"author":{"name":"nic@nicsky.com","@id":"https:\/\/www.pirhome.com\/#\/schema\/person\/41049b5236f9c77c9314997d070db3e3"},"headline":"Case Study: Homeowner Saves 30% on Energy with DIY PIR Sensors","datePublished":"2026-06-16T09:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pirhome.com\/?p=4179"},"wordCount":413,"commentCount":0,"publisher":{"@id":"https:\/\/www.pirhome.com\/#organization"},"articleSection":["Case Studies"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pirhome.com\/?p=4179#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pirhome.com\/?p=4179","url":"https:\/\/www.pirhome.com\/?p=4179","name":"Case Study: Homeowner Saves 30% on Energy with DIY PIR Sensors - PIRHOME","isPartOf":{"@id":"https:\/\/www.pirhome.com\/#website"},"datePublished":"2026-06-16T09:00:00+00:00","breadcrumb":{"@id":"https:\/\/www.pirhome.com\/?p=4179#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pirhome.com\/?p=4179"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pirhome.com\/?p=4179#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pirhome.com\/"},{"@type":"ListItem","position":2,"name":"Case Study: Homeowner Saves 30% on Energy with DIY PIR Sensors"}]},{"@type":"WebSite","@id":"https:\/\/www.pirhome.com\/#website","url":"https:\/\/www.pirhome.com\/","name":"PIRHOME","description":"PIR &amp; Motion Sensor","publisher":{"@id":"https:\/\/www.pirhome.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pirhome.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pirhome.com\/#organization","name":"PIRHOME","url":"https:\/\/www.pirhome.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pirhome.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.pirhome.com\/wp-content\/uploads\/2026\/02\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg","contentUrl":"https:\/\/www.pirhome.com\/wp-content\/uploads\/2026\/02\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg","width":512,"height":512,"caption":"PIRHOME"},"image":{"@id":"https:\/\/www.pirhome.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.pirhome.com\/#\/schema\/person\/41049b5236f9c77c9314997d070db3e3","name":"nic@nicsky.com","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g","caption":"nic@nicsky.com"},"sameAs":["http:\/\/www.pirhome.com"],"url":"https:\/\/www.pirhome.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4179"}],"version-history":[{"count":1,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4179\/revisions"}],"predecessor-version":[{"id":4770,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4179\/revisions\/4770"}],"wp:attachment":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}