{"id":3423,"date":"2026-02-28T08:30:15","date_gmt":"2026-02-28T13:30:15","guid":{"rendered":"https:\/\/pirhome.com\/?p=3419"},"modified":"2026-02-28T08:30:15","modified_gmt":"2026-02-28T13:30:15","slug":"pir-firmware-update-esphome-tasmota","status":"publish","type":"post","link":"http:\/\/www.pirhome.com\/?p=3423","title":{"rendered":"PIR Sensor Not Detecting After Firmware Update (ESPHome\/Tasmota)"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>Many users integrate PIR sensors with ESPHome or Tasmota on ESP8266\/ESP32. After a firmware update, the sensor may stop working. This is usually due to configuration changes, not hardware failure.<\/p>\n<h2>Common Causes<\/h2>\n<h3>1. Pin Mapping Changes<\/h3>\n<p>The new firmware may use different GPIO numbering or the pin function may have changed. In ESPHome, verify that the pin number in your YAML matches the actual connection.<\/p>\n<h3>2. Pull-Up\/Pull-Down Configuration<\/h3>\n<p>Some updates change default pin modes. If your sensor requires a pull-up (open-drain) and it was previously enabled by default, a new version might require explicit configuration.<\/p>\n<h3>3. Debounce Settings<\/h3>\n<p>Newer versions may have different default debounce times. If the debounce is too long, short pulses may be ignored.<\/p>\n<h3>4. Inverted Logic<\/h3>\n<p>Some sensors output active LOW (open-drain) instead of active HIGH. The configuration may need `platform: gpio` with `inverted: true`.<\/p>\n<h3>5. Platform Changes<\/h3>\n<p>Major version updates can change how binary sensors are defined. Always check release notes.<\/p>\n<h2>ESPHome Configuration Fixes<\/h2>\n<p>Example working configuration for PIR sensor:<\/p>\n<pre><code>binary_sensor:\n  - platform: gpio\n    pin: \n      number: GPIO4\n      mode: INPUT_PULLUP\n      inverted: true  # If sensor outputs LOW when triggered\n    name: \"Living Room Motion\"\n    device_class: motion\n    filters:\n      - delayed_on: 50ms\n      - delayed_off: 500ms\n<\/code><\/pre>\n<h2>Tasmota Configuration<\/h2>\n<p>In Tasmota, use:<\/p>\n<pre><code>SetOption114 1  # Enable pulse counter mode\nRule1 on motion#boot do publish stat\/%topic%\/MOTION 1 endon\n<\/code><\/pre>\n<h2>Step-by-Step Troubleshooting<\/h2>\n<ol>\n<li>Revert to previous firmware version to confirm sensor hardware still works.<\/li>\n<li>Check ESPHome logs for errors or warnings about the pin.<\/li>\n<li>Test with a simple configuration that only reads the pin and prints state.<\/li>\n<li>Verify with a multimeter that the sensor output is actually changing.<\/li>\n<li>Compare your current YAML with the example above.<\/li>\n<\/ol>\n<h2>Case Study: ESPHome 2024 to 2025 Upgrade<\/h2>\n<p>After upgrading ESPHome from 2024.12 to 2025.2, a user&#8217;s PIR sensor stopped working. The issue was that the new version required explicit `mode: INPUT_PULLUP` whereas previously it defaulted to pull-up. Adding this line fixed it.<\/p>\n<h2>Conclusion<\/h2>\n<p>Firmware updates can change behavior. Always keep a backup of working configurations and test changes incrementally.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Many users integrate PIR sensors with ESPHome or Tasmota on ESP8266\/ESP32. After a firmware update, the sensor may stop working. This is usually due to configuration changes, not hardware failure. Common Causes 1. Pin Mapping Changes The new firmware may use different GPIO numbering or the pin function may have changed. In ESPHome, verify [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-3423","post","type-post","status-publish","format-standard","hentry","category-troubleshooting"],"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>PIR Sensor Not Detecting After Firmware Update (ESPHome\/Tasmota) - 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=\"http:\/\/www.pirhome.com\/?p=3423\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"PIR Sensor Not Detecting After Firmware Update (ESPHome\/Tasmota) - PIRHOME\" \/>\r\n<meta property=\"og:description\" content=\"Introduction Many users integrate PIR sensors with ESPHome or Tasmota on ESP8266\/ESP32. After a firmware update, the sensor may stop working. This is usually due to configuration changes, not hardware failure. Common Causes 1. Pin Mapping Changes The new firmware may use different GPIO numbering or the pin function may have changed. In ESPHome, verify [&hellip;]\" \/>\r\n<meta property=\"og:url\" content=\"http:\/\/www.pirhome.com\/?p=3423\" \/>\r\n<meta property=\"og:site_name\" content=\"PIRHOME\" \/>\r\n<meta property=\"article:published_time\" content=\"2026-02-28T13:30:15+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\":\"http:\\\/\\\/www.pirhome.com\\\/?p=3423#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=3423\"},\"author\":{\"name\":\"nic@nicsky.com\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/person\\\/41049b5236f9c77c9314997d070db3e3\"},\"headline\":\"PIR Sensor Not Detecting After Firmware Update (ESPHome\\\/Tasmota)\",\"datePublished\":\"2026-02-28T13:30:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=3423\"},\"wordCount\":288,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\"},\"articleSection\":[\"Troubleshooting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/www.pirhome.com\\\/?p=3423#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=3423\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/?p=3423\",\"name\":\"PIR Sensor Not Detecting After Firmware Update (ESPHome\\\/Tasmota) - PIRHOME\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#website\"},\"datePublished\":\"2026-02-28T13:30:15+00:00\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=3423#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/www.pirhome.com\\\/?p=3423\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/?p=3423#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.pirhome.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PIR Sensor Not Detecting After Firmware Update (ESPHome\\\/Tasmota)\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#website\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/\",\"name\":\"PIRHOME\",\"description\":\"PIR &amp; Motion Sensor\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/www.pirhome.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\",\"name\":\"PIRHOME\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg\",\"contentUrl\":\"http:\\\/\\\/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\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/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\":\"http:\\\/\\\/www.pirhome.com\\\/?author=1\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PIR Sensor Not Detecting After Firmware Update (ESPHome\/Tasmota) - 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":"http:\/\/www.pirhome.com\/?p=3423","og_locale":"en_US","og_type":"article","og_title":"PIR Sensor Not Detecting After Firmware Update (ESPHome\/Tasmota) - PIRHOME","og_description":"Introduction Many users integrate PIR sensors with ESPHome or Tasmota on ESP8266\/ESP32. After a firmware update, the sensor may stop working. This is usually due to configuration changes, not hardware failure. Common Causes 1. Pin Mapping Changes The new firmware may use different GPIO numbering or the pin function may have changed. In ESPHome, verify [&hellip;]","og_url":"http:\/\/www.pirhome.com\/?p=3423","og_site_name":"PIRHOME","article_published_time":"2026-02-28T13:30:15+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":"http:\/\/www.pirhome.com\/?p=3423#article","isPartOf":{"@id":"http:\/\/www.pirhome.com\/?p=3423"},"author":{"name":"nic@nicsky.com","@id":"http:\/\/www.pirhome.com\/#\/schema\/person\/41049b5236f9c77c9314997d070db3e3"},"headline":"PIR Sensor Not Detecting After Firmware Update (ESPHome\/Tasmota)","datePublished":"2026-02-28T13:30:15+00:00","mainEntityOfPage":{"@id":"http:\/\/www.pirhome.com\/?p=3423"},"wordCount":288,"commentCount":0,"publisher":{"@id":"http:\/\/www.pirhome.com\/#organization"},"articleSection":["Troubleshooting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.pirhome.com\/?p=3423#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.pirhome.com\/?p=3423","url":"http:\/\/www.pirhome.com\/?p=3423","name":"PIR Sensor Not Detecting After Firmware Update (ESPHome\/Tasmota) - PIRHOME","isPartOf":{"@id":"http:\/\/www.pirhome.com\/#website"},"datePublished":"2026-02-28T13:30:15+00:00","breadcrumb":{"@id":"http:\/\/www.pirhome.com\/?p=3423#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.pirhome.com\/?p=3423"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.pirhome.com\/?p=3423#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.pirhome.com\/"},{"@type":"ListItem","position":2,"name":"PIR Sensor Not Detecting After Firmware Update (ESPHome\/Tasmota)"}]},{"@type":"WebSite","@id":"http:\/\/www.pirhome.com\/#website","url":"http:\/\/www.pirhome.com\/","name":"PIRHOME","description":"PIR &amp; Motion Sensor","publisher":{"@id":"http:\/\/www.pirhome.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.pirhome.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/www.pirhome.com\/#organization","name":"PIRHOME","url":"http:\/\/www.pirhome.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.pirhome.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.pirhome.com\/wp-content\/uploads\/2026\/02\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg","contentUrl":"http:\/\/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":"http:\/\/www.pirhome.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/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":"http:\/\/www.pirhome.com\/?author=1"}]}},"_links":{"self":[{"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/3423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3423"}],"version-history":[{"count":1,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/3423\/revisions"}],"predecessor-version":[{"id":3528,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/3423\/revisions\/3528"}],"wp:attachment":[{"href":"http:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3423"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}