{"id":1892,"date":"2024-10-07T12:00:00","date_gmt":"2024-10-07T12:00:00","guid":{"rendered":"https:\/\/sascha-brockel.de\/?p=1892"},"modified":"2026-06-01T01:00:49","modified_gmt":"2026-05-31T23:00:49","slug":"home-assistant-room-presence-detection-with-esphome","status":"publish","type":"post","link":"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/","title":{"rendered":"Home Assistant room presence detection with ESPHome"},"content":{"rendered":"<p class=\"yoast-reading-time__wrapper\"><span class=\"yoast-reading-time__icon\"><svg aria-hidden=\"true\" focusable=\"false\" data-icon=\"clock\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" style=\"display:inline-block;vertical-align:-0.1em\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 24 24\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z\"><\/path><\/svg><\/span><span class=\"yoast-reading-time__spacer\" style=\"display:inline-block;width:1em\"><\/span><span class=\"yoast-reading-time__descriptive-text\">Estimated reading time: <\/span><span class=\"yoast-reading-time__reading-time\">13<\/span><span class=\"yoast-reading-time__time-unit\"> minutes<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Imagine always knowing exactly who is in which room of your home - and all automatically. With Home Assistant, an ESP32 and BLE (Bluetooth Low Energy) tracking, you can implement precise room presence detection. In this blog article, I explain step by step how you can do this with the ESPHome extension and the <strong><a href=\"https:\/\/github.com\/formatBCE\/Format-BLE-Tracker\" target=\"_blank\" rel=\"noreferrer noopener\">Format BLE Tracker<\/a><\/strong> realizes. You will learn how to <a href=\"https:\/\/github.com\/esphome\/esphome\" target=\"_blank\" rel=\"noreferrer noopener\">ESPHome<\/a> install, set up your ESP32, activate the BLE transmitter in the Home Assistant app and then merge everything into one big one in Home Assistant.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For detailed instructions and explanations of all configuration options, I recommend watching the YouTube video linked below. This video goes into detail about each individual setting, providing you with comprehensive instructions on how to set everything up correctly. Any code from the video can be found in this article, so you can use it directly without having to type it out.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Was_ist_Home_Assistant\" >What is Home Assistant?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Was_ist_ESPHome_ESP32\" >What is ESPHome \/ ESP32?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Voraussetzungen\" >Requirements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#ESPHome_Installation_Zwei_einfache_Moglichkeiten\" >ESPHome installation: Two simple options<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Option_1_ESPHome_als_Addon_in_Home_Assistant_installieren\" >Option 1: Install ESPHome as an add-on in Home Assistant<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Option_2_ESPHome_als_Docker_Container_installieren\" >Option 2: Install ESPHome as a Docker container<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Deinen_ESP32_mit_ESPHome_einrichten\" >Set up your ESP32 with ESPHome<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Format_BLE_Tracker_installieren\" >Install Format BLE Tracker<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Was_ist_der_Format_BLE_Tracker\" >What is the Format BLE Tracker?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Installation_von_HACS_und_Integration_von_Format-BLE-Tracker_in_Home_Assistant\" >Installation of HACS and integration of format BLE tracker in Home Assistant<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Schritt_1_Installation_von_HACS_in_Home_Assistant\" >Step 1: Installing HACS in Home Assistant<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Schritt_2_Format-BLE-Tracker-Integration_uber_HACS_hinzufugen\" >Step 2: Add format BLE tracker integration via HACS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Abschluss\" >Conclusion<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#BLE_Transmitter_in_der_Home_Assistant_App_aktivieren\" >Activate BLE transmitter in the Home Assistant app<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#BLE_Tracker_in_Home_Assistant_einrichten\" >Set up BLE Tracker in Home Assistant<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Umsetzung_im_YouTube-Video\" >YouTube video implementation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/#Fazit\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-was-ist-home-assistant\"><span class=\"ez-toc-section\" id=\"Was_ist_Home_Assistant\"><\/span>What is Home Assistant?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Home Assistant is an open-source platform for home automation that aims to connect all devices in the home and control them centrally. It was developed to provide a unified user interface and simple, flexible control for a wide range of smart home devices from different ecosystems. Here are some points in favor of Home Assistant:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Compatibility<\/strong>Home Assistant supports thousands of devices and services from various manufacturers, including lighting, air conditioning, heating, cameras, weather sensors, voice assistants and more.<\/li>\n\n\n\n<li><strong>Local control<\/strong>Unlike many commercial smart home platforms that rely on cloud services, Home Assistant runs locally on your network. This means increased privacy and reliability, as your smart home devices work even without an active internet connection.<\/li>\n\n\n\n<li><strong>Automation and scenes<\/strong>One of the main features of Home Assistant is the ability to create complex automations and scenarios. For example, you can have lights turn on automatically when it gets dark, or turn on the heating when the temperature drops below a certain level.<\/li>\n\n\n\n<li><strong>Simple user interface<\/strong>Home Assistant offers a user-friendly interface that makes it easy to monitor and control devices. This interface is fully customizable.<\/li>\n\n\n\n<li><strong>Integration with voice assistants<\/strong>Home Assistant can be integrated with voice assistants such as Amazon Alexa or Google Assistant to enable voice-controlled control of your smart home devices.<\/li>\n\n\n\n<li><strong>Open source and community-driven<\/strong>Since Home Assistant is open source, it is supported by an active community that is constantly developing new integrations and improving existing ones.<\/li>\n\n\n\n<li><strong>Data protection and security<\/strong>As a locally running platform, Home Assistant has the advantage that the data remains within its own network. This protects privacy and increases security compared to cloud-based solutions.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">In summary, Home Assistant is a powerful and flexible solution for those who want to design their own smart home and control their devices centrally, regardless of the manufacturer or ecosystem.<\/p>\n\n\n\n<h2 id=\"h-was-ist-esphome-esp32\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Was_ist_ESPHome_ESP32\"><\/span>What is ESPHome \/ ESP32?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ESPHome<\/strong> is an open source platform that allows you to easily integrate microcontrollers such as the ESP32 or ESP8266 into your smart home. With ESPHome, you can program these devices to use them as sensors, actuators or control units. You write configuration files in YAML, and ESPHome takes care of creating the firmware and flashing it to the device. ESPHome offers seamless integration with Home Assistant, so you can easily control and automate your devices via the smart home system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>ESP32<\/strong> is a powerful microcontroller with integrated Wi-Fi and Bluetooth that is particularly popular in the IoT (Internet of Things) sector. It is often used to create smart devices that can be wirelessly integrated into a network. With its small size, versatile functions and cost-effective availability, the ESP32 is ideal for projects such as room presence detection or smart lighting. With ESPHome, you can easily program the ESP32 and integrate it into your smart home.<\/p>\n\n\n\n<h2 id=\"h-voraussetzungen\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Voraussetzungen\"><\/span>Requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Home Assistant installed<\/li>\n\n\n\n<li>MQTT installed and set up<\/li>\n\n\n\n<li>ESP32 device with Bluetooth support available (ideally ESP32-S3)<\/li>\n\n\n\n<li>WLAN 2.4GHz network available everywhere<\/li>\n\n\n\n<li>Android smartphone with Home Assistant app or BLE beacon<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-Geraete-27.08.2024-jpg.avif\"><img data-dominant-color=\"467d7f\" data-has-transparency=\"false\" style=\"--dominant-color: #467d7f;\" fetchpriority=\"high\" decoding=\"async\" width=\"4000\" height=\"2252\" src=\"https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-Geraete-27.08.2024-jpg.avif\" alt=\"\" class=\"wp-image-1950 not-transparent\" srcset=\"https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-Geraete-27.08.2024-jpg.avif 4000w, https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-Geraete-27.08.2024-300x169.avif 300w, https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-Geraete-27.08.2024-768x432.avif 768w, https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-Geraete-27.08.2024-1536x865.avif 1536w, https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-Geraete-27.08.2024-2048x1153.avif 2048w, https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-Geraete-27.08.2024-18x10.avif 18w, https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-Geraete-27.08.2024-jpg.avif 2250w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><figcaption class=\"wp-element-caption\">ESP32 devices. The M5NanoC6 does not (yet) work for this purpose as it is too new!<\/figcaption><\/figure>\n\n\n\n<div class=\"atkp-container atkp-grid_3_columns-box  atkp-template-grid_3_columns\">\n            <div class=\"atkp-clearfix atkp-box-3-cols\">\n                            <div class=\"atkp-box atkp-smallbox atkp-box-3-cols-item atkp-clearfix\">\n                    <div class=\"atkp-thumb\">\n                                                    <img decoding=\"async\" class=\"atkp-image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/51dyKlAemCL._SL160_.jpg\"\n                                 alt=\"diymore 2PCS for ESP32-S3 DevKitC-1 N16R8 Module, for ESP32 S3 1-N16R8 Development Board with WiFi, Bluetooth 5.0,USB C Connectable Antenna\"\/>\n                                            <\/div>\n                    <div class=\"atkp-content\">\n                                                    <a class=\"atkp-title\" href=\"https:\/\/www.amazon.de\/dp\/B0F3XMYYQY?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\">diymore 2PCS for ESP32-S3 DevKitC-1 N16R8 Module, for ESP32 S3 1-N16R8 Development Board with WiFi, Bluetooth 5.0,USB C Connectable Antenna*<\/a>\n                                                <div class=\"atkp-author\">by diymore<\/div>\n                    <\/div>\n                    <div class=\"atkp-bottom\">\n                        <div class=\"atkp-ratingbar\">\n                                                            <div class=\"atkp-rating\"><span class=\"atkp-star atkp-star-0 atkp-star-00\" title=\"0.00 of 5 stars\"><\/span><\/div>\n                                                        <div class=\"atkp-primelogo\"><\/div>\n                            <div class=\"atkp-clearfix\"><\/div>\n                        <\/div>\n                                                    <span class=\"atkp-price atkp-saleprice\">\n                                Price: \u20ac 16.98\n                                                                    <span class=\"atkp_price atkp-baseprice\"><\/span>\n                                                            <\/span>\n                                                                            <a href=\"https:\/\/www.amazon.de\/dp\/B0F3XMYYQY?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\" class=\"atkp-button\">Buy now on Amazon*<\/a>\n                        \n                        \n                                                    <span class=\"atkp-priceinfo\">Price incl. VAT, Excl. shipping<\/span>\n                                                                            <div class=\"atkp-shoplogo\">Amazon<\/div>\n                                            <\/div>\n                <\/div>\n                            <div class=\"atkp-box atkp-smallbox atkp-box-3-cols-item atkp-clearfix\">\n                    <div class=\"atkp-thumb\">\n                                                    <img decoding=\"async\" class=\"atkp-image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/31Yd-FIdNYL._SL160_.jpg\"\n                                 alt=\"Seeed Studio XIAO ESP32-S3-2.4 GHz WLAN, BLE 5.0, dual-core, battery charging supported, energy efficiency and rich interface, ideal for smart homes, IoT, wearable devices, robotics, etc\"\/>\n                                            <\/div>\n                    <div class=\"atkp-content\">\n                                                    <a class=\"atkp-title\" href=\"https:\/\/www.amazon.de\/dp\/B0BYSB66S5?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\">Seeed Studio XIAO ESP32-S3-2.4 GHz WLAN, BLE 5.0, dual-core, battery charging supported, energy efficiency and rich interface, ideal for smart homes, IoT, wearable devices, robotics, etc*<\/a>\n                                                <div class=\"atkp-author\">by seeed studio<\/div>\n                    <\/div>\n                    <div class=\"atkp-bottom\">\n                        <div class=\"atkp-ratingbar\">\n                                                            <div class=\"atkp-rating\"><span class=\"atkp-star atkp-star-0 atkp-star-00\" title=\"0.00 of 5 stars\"><\/span><\/div>\n                                                        <div class=\"atkp-primelogo\"><\/div>\n                            <div class=\"atkp-clearfix\"><\/div>\n                        <\/div>\n                                                    <span class=\"atkp-price atkp-saleprice\">\n                                Price: \u20ac 14.66\n                                                                    <span class=\"atkp_price atkp-baseprice\"><\/span>\n                                                            <\/span>\n                                                                            <a href=\"https:\/\/www.amazon.de\/dp\/B0BYSB66S5?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\" class=\"atkp-button\">Buy now on Amazon*<\/a>\n                        \n                        \n                                                    <span class=\"atkp-priceinfo\">Price incl. VAT, Excl. shipping<\/span>\n                                                                            <div class=\"atkp-shoplogo\">Amazon<\/div>\n                                            <\/div>\n                <\/div>\n                            <div class=\"atkp-box atkp-smallbox atkp-box-3-cols-item atkp-clearfix\">\n                    <div class=\"atkp-thumb\">\n                                                    <img decoding=\"async\" class=\"atkp-image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/51fEq7nEVaL._SL160_.jpg\"\n                                 alt=\"diymore 2PCS for ESP32-S3 DevKitC-1 N16R8 Module, for ESP32 S3 1-N16R8 Development Board with WiFi, Bluetooth 5.0,USB C Connectable Antenna with Antenna\"\/>\n                                            <\/div>\n                    <div class=\"atkp-content\">\n                                                    <a class=\"atkp-title\" href=\"https:\/\/www.amazon.de\/dp\/B0FKBPJRQC?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\">diymore 2PCS for ESP32-S3 DevKitC-1 N16R8 module, for ESP32 S3 1-N16R8 development board with WiFi, Bluetooth 5.0,USB C Connectable antenna with antenna*<\/a>\n                                                <div class=\"atkp-author\">by diymore<\/div>\n                    <\/div>\n                    <div class=\"atkp-bottom\">\n                        <div class=\"atkp-ratingbar\">\n                                                            <div class=\"atkp-rating\"><span class=\"atkp-star atkp-star-0 atkp-star-00\" title=\"0.00 of 5 stars\"><\/span><\/div>\n                                                        <div class=\"atkp-primelogo\"><\/div>\n                            <div class=\"atkp-clearfix\"><\/div>\n                        <\/div>\n                                                    <span class=\"atkp-price atkp-saleprice\">\n                                Price: \u20ac 17.99\n                                                                    <span class=\"atkp_price atkp-baseprice\"><\/span>\n                                                            <\/span>\n                                                                            <a href=\"https:\/\/www.amazon.de\/dp\/B0FKBPJRQC?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\" class=\"atkp-button\">Buy now on Amazon*<\/a>\n                        \n                        \n                                                    <span class=\"atkp-priceinfo\">Price incl. VAT, Excl. shipping<\/span>\n                                                                            <div class=\"atkp-shoplogo\">Amazon<\/div>\n                                            <\/div>\n                <\/div>\n                    <\/div>\n            <\/div>\n\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"ESPHome_Installation_Zwei_einfache_Moglichkeiten\"><\/span>ESPHome installation: Two simple options<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before you start with the ESP32, you must install ESPHome. You have two simple options to install ESPHome either as <strong>Addon in Home Assistant<\/strong> or as <strong>Docker Container<\/strong> to install.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Option_1_ESPHome_als_Addon_in_Home_Assistant_installieren\"><\/span>Option 1: Install ESPHome as an add-on in Home Assistant<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open Home Assistant:<\/strong><br>Log in to your Home Assistant dashboard.<\/li>\n\n\n\n<li><strong>Go to Add-ons:<\/strong><br>Click on <strong>Supervisor<\/strong> and then select <strong>Add-on store<\/strong>.<\/li>\n\n\n\n<li><strong>Search for and install ESPHome:<\/strong><br>Search for \"ESPHome\" and click on <strong>Install<\/strong>. As soon as the installation is complete, click on <strong>Start<\/strong>.<\/li>\n\n\n\n<li><strong>Open ESPHome Dashboard:<\/strong><br>After starting, you can open the ESPHome Dashboard via the Home Assistant menu and get started.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Option_2_ESPHome_als_Docker_Container_installieren\"><\/span>Option 2: Install ESPHome as a Docker container<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to install ESPHome as a Docker container, proceed as follows:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. prepare Docker:<br><\/strong>Make sure that Docker is running on your system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. start the Docker ESPHome container:<br><\/strong>Open a terminal and create there e.g. with <code>sudo nano docker-compose-esphome-yml<\/code> a new file with the following content: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>services:\n  esphome:\n    container_name: \"esphome\"\n    image: \"ghcr.io\/esphome\/esphome:stable\"\n    environment:\n      - \"ESPHOME_DATA_DIR=\/data\"\n      - \"TZ=Europe\/Berlin\"\n      - \"ESPHOME_DASHBOARD_USE_PING=false\"\n    expose:\n      - \"6052\/tcp\"\n    network_mode: \"host\"\n    restart: \"unless-stopped\"\n    volumes:\n      - \"\/dev\/shm\/esphome-cache:\/cache\"\n      - \"\/mnt\/cache\/appdata\/smart-home\/esphome-data:\/data\"\n      - \"\/mnt\/cache\/appdata\/smart-home\/esphome:\/config\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">At the end, don't forget to start the container (adjust the path to your path): <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker compose -f \/mnt\/cache\/appdata\/compose\/docker-compose-esphome.yml up -d<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. ESPHome Dashboard:<br><\/strong>Access the dashboard by entering the IP of your server in the browser with the port <code>6052<\/code> call, e.g. <code>http:\/\/192.168.178.100:6052<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now ESPHome is ready and you can set up your ESP32.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Deinen_ESP32_mit_ESPHome_einrichten\"><\/span>Set up your ESP32 with ESPHome<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once ESPHome is running, you can set up your ESP32 as a BLE tracker for room presence detection. The annoying thing is that the initial setup can only be done via the web protocol <code>https:\/\/<\/code> can be made. Accordingly, you have to go to the website <a href=\"https:\/\/web.esphome.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/web.esphome.io\/<\/a> change.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Connect the device to the computer via USB:<\/strong><br>Connect the ESP32 to your computer via USB. There are also other options, but this is by far the easiest and simplest.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Add new device:<\/strong><br>Go to the ESPHome dashboard from <a href=\"https:\/\/web.esphome.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/web.esphome.io\/<\/a> and click on <strong>Connect<\/strong>. Then select the device there. It will say something about USB Serial.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-USB.png?ssl=1\"><img data-recalc-dims=\"1\" data-dominant-color=\"141514\" data-has-transparency=\"true\" style=\"--dominant-color: #141514;\" decoding=\"async\" width=\"750\" height=\"351\" src=\"https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-USB.png?resize=750%2C351&#038;ssl=1\" alt=\"\" class=\"wp-image-1951 has-transparency\" srcset=\"https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-USB.png?w=1500&amp;ssl=1 1500w, https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-USB.png?resize=300%2C140&amp;ssl=1 300w, https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-USB.png?resize=768%2C359&amp;ssl=1 768w, https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-USB.png?resize=18%2C8&amp;ssl=1 18w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Enter name and WLAN access data:<\/strong><br>The ESP32 is now connected. Now click on <strong>Prepare for first use<\/strong> and give your ESP32 a name and enter the WLAN data that the ESP32 should use later.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-First-Install.png?ssl=1\"><img data-recalc-dims=\"1\" data-dominant-color=\"0f0f0f\" data-has-transparency=\"true\" style=\"--dominant-color: #0f0f0f;\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-First-Install.png?resize=750%2C422&#038;ssl=1\" alt=\"\" class=\"wp-image-1952 has-transparency\" srcset=\"https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-First-Install.png?w=1500&amp;ssl=1 1500w, https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-First-Install.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-First-Install.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/ESP32-First-Install.png?resize=18%2C10&amp;ssl=1 18w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Flash firmware to ESP32:<\/strong><br>Connect the ESP32 via USB to your computer or the device on which Home Assistant is running. Click on <strong>Create<\/strong> and then select <strong>Install<\/strong>. Follow the instructions to flash the firmware to the ESP32.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Make ESP32 available in ESPHome:<\/strong><br>As soon as the firmware is installed, the ESP32 connects to your WLAN and is available in the ESPHome dashboard. Your ESP32 is now ready for use.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Change the settings of the ESP32:<\/strong><br>We now need to make a few settings to really turn our ESP32 into a room presence detector.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mqtt:\n  broker: \n  username: \n  password: \n  discovery: true\n\n# For the external build:\nexternal_components:\n  source: github:\/\/formatBCE\/ESP32_BLE_presense@main\n\n# System time configuration - required for accurate timestamps, used during integration:\ntime:\n  - platform: homeassistant\n    id: homeassistant_time\n\n# Initialization:\nesp32_ble_presense:\n  area: \"\" # Replace this with your room name\n  time_id: homeassistant_time<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, we need to comment out or delete part of the existing configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Sets up Bluetooth LE (Only on ESP32) to allow the user\n# to provision wifi credentials to the device.\nesp32_improv:\n  authorizer: none<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you do not do this, you will receive an error message that says: <strong>error: expected type-specifier<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now we need to install the firmware again and the ESP32 is successfully set up. The device has its own small user interface running under its IP address when it is connected to the WLAN, for example http:\/\/192.168.178.78.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Format_BLE_Tracker_installieren\"><\/span>Install Format BLE Tracker<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that your ESP32 is set up, we can use the <strong>Format BLE Tracker<\/strong> install. This tool is perfect for detecting BLE signals and determining the presence of devices in the room.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Was_ist_der_Format_BLE_Tracker\"><\/span>What is the Format BLE Tracker?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>Format BLE Tracker<\/strong> is an extension that turns your ESP32 into a BLE tracker. It scans for Bluetooth signals from devices such as smartphones or BLE beacons and detects whether someone is in the room. This makes it easy to perform accurate presence detection without additional sensors.<\/p>\n\n\n\n<h2 id=\"h-installation-von-hacs-und-integration-von-format-ble-tracker-in-home-assistant\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Installation_von_HACS_und_Integration_von_Format-BLE-Tracker_in_Home_Assistant\"><\/span>Installation of HACS and integration of format BLE tracker in Home Assistant<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Schritt_1_Installation_von_HACS_in_Home_Assistant\"><\/span>Step 1: Installing HACS in Home Assistant<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Home Assistant Community Store (HACS)<\/strong> is a custom add-on for Home Assistant that provides access to a variety of custom integrations and plugins developed by the community. How to install HACS:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Check requirements<\/strong>: Make sure that your Home Assistant is ideally up to date.<\/li>\n\n\n\n<li><strong>Download Execute script<\/strong>: Open a terminal for the Docker container version or the core version.\n<ul class=\"wp-block-list\">\n<li><strong>Docker<\/strong>: Dial into the container with: <code>docker exec -it homeassistant bash<\/code> or (similar)<\/li>\n\n\n\n<li><strong>Core<\/strong>: Switch to the user who is running Home Assistant<\/li>\n\n\n\n<li>Execute the following command for both variants: <br><code>wget -O - https:\/\/get.hacs.xyz | bash -<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Restarting the Home Assistant<\/strong>: After the files have been copied, restart Home Assistant.<\/li>\n\n\n\n<li><strong>Integrate HACS into Home Assistant<\/strong>Go to \"Configuration\" &gt; \"Integrations\" &gt; \"Add\" in the Home Assistant interface and search for HACS. Add it and enter your GitHub token if prompted.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">For the supervised version, please refer to the <a href=\"https:\/\/hacs.xyz\/docs\/setup\/download\" target=\"_blank\" rel=\"noreferrer noopener\">Documentation<\/a> of HACS itself to read about the installation.<\/p>\n\n\n\n<h3 id=\"h-schritt-2-format-ble-tracker-integration-uber-hacs-hinzufugen\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Schritt_2_Format-BLE-Tracker-Integration_uber_HACS_hinzufugen\"><\/span>Step 2: Add format BLE tracker integration via HACS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/my.home-assistant.io\/redirect\/hacs_repository\/?owner=formatBCE&amp;repository=Format-BLE-Tracker&amp;category=Integration\"><img decoding=\"async\" src=\"https:\/\/camo.githubusercontent.com\/8cec5af6ba93659beb5352741334ef3bbee70c4cb725f20832a1b897dfb8fc5f\/68747470733a2f2f6d792e686f6d652d617373697374616e742e696f2f6261646765732f686163735f7265706f7369746f72792e737667\" alt=\"Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.\" style=\"aspect-ratio:37.79774305555556;width:756px;height:auto\"\/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once HACS is installed, you can simply add Format BLE trackers:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open HACS<\/strong>: Go to HACS in the Home Assistant interface.<\/li>\n\n\n\n<li><strong>Search for integration<\/strong>Click on \u201eIntegrations\u201c and click on the three dots at the top right and then on \u201eCustom repositories\u201c.<\/li>\n\n\n\n<li><strong>Add repository<\/strong>: Now copy the GitHub repository <a href=\"https:\/\/github.com\/formatBCE\/Format-BLE-Tracker\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/formatBCE\/Format-BLE-Tracker<\/a> in the repository field and enter \u201eIntegration\u201c as the category.<\/li>\n\n\n\n<li><strong>Install format BLE tracker<\/strong>Find Format-BLE-Tracker in the list and click on \"Install\". This will add the integration to your Home Assistant.<\/li>\n\n\n\n<li><strong>Restarting the Home Assistant<\/strong>: Start Home Assistant again to apply the changes.<\/li>\n\n\n\n<li><strong>Configure format BLE tracker<\/strong>After restarting, you can set up and customize Format BLE Tracker via \"Configuration\" &gt; \"Integrations\" in Home Assistant.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Abschluss\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With these steps, you have successfully installed HACS in your Home Assistant and added the Format BLE tracker integration. This powerful combination opens up a world of additional features and customizations that have been and are being developed by the Home Assistant community. More blog posts and videos on useful integrations to follow. If you don't want to miss out, <a href=\"https:\/\/www.youtube.com\/channel\/UCogo25FboCahP7s8--HDuIQ\" target=\"_blank\" rel=\"noreferrer noopener\">subscribe to my YouTube channel<\/a>!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"BLE_Transmitter_in_der_Home_Assistant_App_aktivieren\"><\/span>Activate BLE transmitter in the Home Assistant app<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For the ESP32 to recognize your smartphone as a BLE signal, you must set the <strong>BLE transmitter<\/strong> in the Home Assistant Companion app. Unfortunately, this option only seems to be available for Android smartphones. The iPhone, on the other hand, is left empty-handed.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open the Home Assistant Companion App:<\/strong><br>Launch the Home Assistant Companion app on your Android smartphone.<\/li>\n\n\n\n<li><strong>Go to the settings:<\/strong><br>Open the app settings and select the item <strong>Companion app<\/strong> and then tap on <strong>Sensors<\/strong> <strong>Manage<\/strong>.<\/li>\n\n\n\n<li><strong>Activate BLE transmitter:<\/strong><br>Search for the <strong>BLE transmitter<\/strong> and activate it. Make sure that the option \"<strong>Only transfer WLAN SSID to the home network<\/strong>\" is switched on and set the \"<strong>Transmitter power\"<\/strong> on <strong>Low<\/strong>instead of very low by default. Your smartphone now regularly sends BLE signals that the ESP32 can receive. <br>Make a note of the UUID at the bottom, as we will need this in the next step.<\/li>\n<\/ol>\n\n\n\n<h2 id=\"h-ble-tracker-in-home-assistant-einrichten\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"BLE_Tracker_in_Home_Assistant_einrichten\"><\/span>Set up BLE Tracker in Home Assistant<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Under Integrations, add the integration <strong>Format BLE Tracker<\/strong> and select in the popup \"<strong>Add New Beacon<\/strong>\". We must now enter the previously noted UUID and enter a name of our choice for the sensor.<\/p>\n\n\n\n<div class=\"atkp-container atkp-grid_3_columns-box  atkp-template-grid_3_columns\">\n            <div class=\"atkp-clearfix atkp-box-3-cols\">\n                            <div class=\"atkp-box atkp-smallbox atkp-box-3-cols-item atkp-clearfix\">\n                    <div class=\"atkp-thumb\">\n                                                    <img decoding=\"async\" class=\"atkp-image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/21inBvlJL1L._SL160_.jpg\"\n                                 alt=\"Joskeijky Beacon Tag with Acceleration Sensor BLE 5.0 Low Power Consumption Waterproof Ibeacon Tag\"\/>\n                                            <\/div>\n                    <div class=\"atkp-content\">\n                                                    <a class=\"atkp-title\" href=\"https:\/\/www.amazon.de\/dp\/B0DQ7J99RY?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\">Joskeijky Beacon Tag with Acceleration Sensor BLE 5.0 Low Power Consumption Waterproof Ibeacon Tag*<\/a>\n                                                <div class=\"atkp-author\">by Joskeijky<\/div>\n                    <\/div>\n                    <div class=\"atkp-bottom\">\n                        <div class=\"atkp-ratingbar\">\n                                                            <div class=\"atkp-rating\"><span class=\"atkp-star atkp-star-0 atkp-star-00\" title=\"0.00 of 5 stars\"><\/span><\/div>\n                                                        <div class=\"atkp-primelogo\"><\/div>\n                            <div class=\"atkp-clearfix\"><\/div>\n                        <\/div>\n                                                    <span class=\"atkp-price atkp-saleprice\">\n                                Price: \u20ac 10.11\n                                                                    <span class=\"atkp_price atkp-baseprice\">(\u20ac 1,263.75 \/ kg)<\/span>\n                                                            <\/span>\n                                                                            <a href=\"https:\/\/www.amazon.de\/dp\/B0DQ7J99RY?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\" class=\"atkp-button\">Buy now on Amazon*<\/a>\n                        \n                        \n                                                    <span class=\"atkp-priceinfo\">Price incl. VAT, Excl. shipping<\/span>\n                                                                            <div class=\"atkp-shoplogo\">Amazon<\/div>\n                                            <\/div>\n                <\/div>\n                            <div class=\"atkp-box atkp-smallbox atkp-box-3-cols-item atkp-clearfix\">\n                    <div class=\"atkp-thumb\">\n                                                    <img decoding=\"async\" class=\"atkp-image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/31X0O8hwb5L._SL160_.jpg\"\n                                 alt=\"DX-CP27 BLE 5.1 Beacon iBeacon Eddystone Asset Personnel Tracking Management Positioning Mini Tag IP67 Waterproof 70m Long range 1 year battery life Customized broadcast data\"\/>\n                                            <\/div>\n                    <div class=\"atkp-content\">\n                                                    <a class=\"atkp-title\" href=\"https:\/\/www.amazon.de\/dp\/B0FYNCKZZN?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\">DX-CP27 BLE 5.1 Beacon iBeacon Eddystone Asset Personnel Tracking Management Positioning Mini Tag IP67 Waterproof 70m Long range 1 year battery life Customized broadcast data*<\/a>\n                                                <div class=\"atkp-author\">by PDDAXLQUE<\/div>\n                    <\/div>\n                    <div class=\"atkp-bottom\">\n                        <div class=\"atkp-ratingbar\">\n                                                            <div class=\"atkp-rating\"><span class=\"atkp-star atkp-star-0 atkp-star-00\" title=\"0.00 of 5 stars\"><\/span><\/div>\n                                                        <div class=\"atkp-primelogo\"><\/div>\n                            <div class=\"atkp-clearfix\"><\/div>\n                        <\/div>\n                                                    <span class=\"atkp-price atkp-saleprice\">\n                                Price: \u20ac 23.35\n                                                                    <span class=\"atkp_price atkp-baseprice\"><\/span>\n                                                            <\/span>\n                                                                            <a href=\"https:\/\/www.amazon.de\/dp\/B0FYNCKZZN?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\" class=\"atkp-button\">Buy now on Amazon*<\/a>\n                        \n                        \n                                                    <span class=\"atkp-priceinfo\">Price incl. VAT, Excl. shipping<\/span>\n                                                                            <div class=\"atkp-shoplogo\">Amazon<\/div>\n                                            <\/div>\n                <\/div>\n                            <div class=\"atkp-box atkp-smallbox atkp-box-3-cols-item atkp-clearfix\">\n                    <div class=\"atkp-thumb\">\n                                                    <img decoding=\"async\" class=\"atkp-image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/31H-o3K9V2L._SL160_.jpg\"\n                                 alt=\"Blue Charm Beacons - Bluetooth BLE iBeacon (BC021-MultiBeacon) with motion detector - Long Range BLE 5.0\"\/>\n                                            <\/div>\n                    <div class=\"atkp-content\">\n                                                    <a class=\"atkp-title\" href=\"https:\/\/www.amazon.de\/dp\/B08PCHJ1KS?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\">Blue Charm Beacons - Bluetooth BLE iBeacon (BC021-MultiBeacon) with motion detector - Long Range BLE 5.0*<\/a>\n                                                <div class=\"atkp-author\">by Blue Charm Beacons<\/div>\n                    <\/div>\n                    <div class=\"atkp-bottom\">\n                        <div class=\"atkp-ratingbar\">\n                                                            <div class=\"atkp-rating\"><span class=\"atkp-star atkp-star-0 atkp-star-00\" title=\"0.00 of 5 stars\"><\/span><\/div>\n                                                        <div class=\"atkp-primelogo\"><\/div>\n                            <div class=\"atkp-clearfix\"><\/div>\n                        <\/div>\n                                                    <span class=\"atkp-price atkp-saleprice\">\n                                Price: \u20ac 43.37\n                                                                    <span class=\"atkp_price atkp-baseprice\"><\/span>\n                                                            <\/span>\n                                                                            <a href=\"https:\/\/www.amazon.de\/dp\/B08PCHJ1KS?tag=sasbro0a-21&linkCode=osi&th=1&psc=1\" rel=\"sponsored nofollow noopener\" target=\"_blank\"  title=\"Buy now at Amazon\" class=\"atkp-button\">Buy now on Amazon*<\/a>\n                        \n                        \n                                                    <span class=\"atkp-priceinfo\">Price incl. VAT, Excl. shipping<\/span>\n                                                                            <div class=\"atkp-shoplogo\">Amazon<\/div>\n                                            <\/div>\n                <\/div>\n                    <\/div>\n            <\/div>\n\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For dumb beacons (e.g. Tile), you can find the MAC address in the official app or use any Bluetooth tracker app on your phone to delete it;<\/li>\n\n\n\n<li>For smart beacons (e.g. Android phone with Home Assistant Companion application and activated BLE tracker), you must copy the Proximity UUID, as the MAC address of the device is not publicly accessible.<\/li>\n\n\n\n<li><strong>Minimum RSSI<\/strong>: If the signal strength is below the value you set in this slider, it will be ignored by the ESP32 tracker node. I have an ESP32 tracker node in most rooms and my rooms are not that big, and I found that setting it to -90 works best for me. You have to play with it to find out what works best in your environment.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The integration creates a device with three entities per beacon:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Device tracker entity for the device. Displays the Home status for this device if the device is visible to at least one of the tracking nodes, or the Away status.<\/li>\n\n\n\n<li>Sensor with the currently nearest node name for this device (basically the current room name).<\/li>\n\n\n\n<li>Input slider for setting the data expiry period (from 1 minute to 10 minutes). This affects the time from the last visibility event until the away mode is switched on. Use larger values if you frequently switch from Home to Away and back. By default, this value is set to 2 minutes.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Now you will quickly see that your new device shows you the room name that you have stored in the firmware of the ESP32 device in ESPHome. Based on this, you can now configure even more automation than was previously possible!<\/p>\n\n\n\n<h2 id=\"youtube\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Umsetzung_im_YouTube-Video\"><\/span>YouTube video implementation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Room presence detection with Home Assistant: ESPHome &amp; ESP32 for precise BLE tracking\" width=\"750\" height=\"422\" src=\"https:\/\/www.youtube.com\/embed\/WLuRdUHhgW8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n<p>\n\n\n\n<h2 id=\"h-fazit\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Fazit\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With Home Assistant, ESPHome and an ESP32, you can create precise room presence detection. The Format BLE Tracker makes it possible to capture BLE signals and trigger specific automations when someone is in a room. By activating the BLE transmitter on your smartphone, you can ensure that your home always knows where you are. Try it out and make your smart home even smarter!<\/p>\n\n\n\n<div id=\"jp-block-themeisle-blocks-font-awesome-icons-8c6d8bc1\" class=\"wp-block-themeisle-blocks-font-awesome-icons jp-block-themeisle-blocks-font-awesome-icons\"><span class=\"wp-block-themeisle-blocks-font-awesome-icons-container\"><a href=\"https:\/\/sascha-brockel.de\/en\/#contact\" target=\"_self\" rel=\"noopener noreferrer\"><i class=\"fas fa-business-time\"><\/i><\/a><\/span><\/div>\n\n\n\n<h4 id=\"jp-block-themeisle-blocks-advanced-heading-baa7fa4c\" class=\"wp-block-themeisle-blocks-advanced-heading jp-block-themeisle-blocks-advanced-heading-baa7fa4c jp-block-themeisle-blocks-advanced-heading ticss-116fe371\">Interested, but lack time or knowledge?<\/h4>\n\n\n\n<p id=\"jp-block-themeisle-blocks-advanced-heading-16f35f43\" class=\"wp-block-themeisle-blocks-advanced-heading jp-block-themeisle-blocks-advanced-heading-16f35f43 jp-block-themeisle-blocks-advanced-heading ticss-0e2b851d\">No problem. Contact me and we will discuss your requirements. No matter if business or private.<\/p>\n\n\n\n<div id=\"jp-block-themeisle-blocks-button-group-77e0455a\" class=\"wp-block-themeisle-blocks-button-group wp-block-buttons align-center jp-block-themeisle-blocks-button-group jp-block-buttons\">\n<div id=\"jp-block-themeisle-blocks-button-c6fb3687\" class=\"wp-block-themeisle-blocks-button wp-block-button jp-block-themeisle-blocks-button jp-block-button\"><a href=\"https:\/\/sascha-brockel.de\/en\/#contact\" target=\"_self\" rel=\"noopener noreferrer\" class=\"wp-block-button__link\"><i class=\"fas fa-fw fa-phone-volume margin-right\"><\/i><span>Contact<\/span><\/a><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Stell dir vor, du wei\u00dft immer genau, wer sich in welchem Raum deines Hauses aufh\u00e4lt \u2013 und das alles automatisch. Mit Home Assistant, einem ESP32 und BLE-Tracking (Bluetooth Low Energy) kannst du eine exakte Raumanwesenheitserkennung realisieren. In diesem Blogartikel erkl\u00e4re ich dir Schritt f\u00fcr Schritt, wie du das mit der [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1893,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Next Level Smart Home. Es wei\u00df, wo du dich befindest und kann dementsprechend automatisch reagieren und bspw. Licht anschalten.","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[32],"tags":[16,46,28],"class_list":["post-1892","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-smart-home","tag-docker","tag-home-assistant","tag-smart-home"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.7 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Home Assistant Raum-Anwesenheitserkennung mit ESPHome - Sascha Brockel<\/title>\n<meta name=\"description\" content=\"Erfahre, wie du mit Home Assistant, ESP32 und BLE-Tracking eine pr\u00e4zise Raumanwesenheitserkennung erstellst.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Home Assistant Raum-Anwesenheitserkennung mit ESPHome\" \/>\n<meta property=\"og:description\" content=\"Erfahre, wie du mit Home Assistant, ESP32 und BLE-Tracking eine pr\u00e4zise Raumanwesenheitserkennung erstellst.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/\" \/>\n<meta property=\"og:site_name\" content=\"Sascha Brockel\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-07T12:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-31T23:00:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/pexels-photo-8369515-jpeg.avif\" \/>\n\t<meta property=\"og:image:width\" content=\"1880\" \/>\n\t<meta property=\"og:image:height\" content=\"1253\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sascha Brockel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@saschabrockel\" \/>\n<meta name=\"twitter:site\" content=\"@saschabrockel\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sascha Brockel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/\"},\"author\":{\"name\":\"Sascha Brockel\",\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/#\\\/schema\\\/person\\\/3675ac2cf16fa04c60aca4dedca5c970\"},\"headline\":\"Home Assistant Raum-Anwesenheitserkennung mit ESPHome\",\"datePublished\":\"2024-10-07T12:00:00+00:00\",\"dateModified\":\"2026-05-31T23:00:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/\"},\"wordCount\":1837,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/#\\\/schema\\\/person\\\/3675ac2cf16fa04c60aca4dedca5c970\"},\"image\":{\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sascha-brockel.de\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/pexels-photo-8369515-jpeg.avif\",\"keywords\":[\"Docker\",\"Home Assistant\",\"Smart Home\"],\"articleSection\":[\"Smart Home\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/#respond\"]}],\"copyrightYear\":\"2024\",\"copyrightHolder\":{\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/en\\\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/\",\"url\":\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/\",\"name\":\"Home Assistant Raum-Anwesenheitserkennung mit ESPHome - Sascha Brockel\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sascha-brockel.de\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/pexels-photo-8369515-jpeg.avif\",\"datePublished\":\"2024-10-07T12:00:00+00:00\",\"dateModified\":\"2026-05-31T23:00:49+00:00\",\"description\":\"Erfahre, wie du mit Home Assistant, ESP32 und BLE-Tracking eine pr\u00e4zise Raumanwesenheitserkennung erstellst.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/#primaryimage\",\"url\":\"https:\\\/\\\/sascha-brockel.de\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/pexels-photo-8369515-jpeg.avif\",\"contentUrl\":\"https:\\\/\\\/sascha-brockel.de\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/pexels-photo-8369515-jpeg.avif\",\"width\":1880,\"height\":1253,\"caption\":\"Photo by cottonbro studio on Pexels.com\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/home-assistant-raum-anwesenheitserkennung-mit-esphome\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/sascha-brockel.de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Home Assistant Raum-Anwesenheitserkennung mit ESPHome\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/#website\",\"url\":\"https:\\\/\\\/sascha-brockel.de\\\/\",\"name\":\"Sascha Brockel\",\"description\":\"Fortschritt kennt keine Grenzen\",\"publisher\":{\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/#\\\/schema\\\/person\\\/3675ac2cf16fa04c60aca4dedca5c970\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sascha-brockel.de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/sascha-brockel.de\\\/#\\\/schema\\\/person\\\/3675ac2cf16fa04c60aca4dedca5c970\",\"name\":\"Sascha Brockel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/sascha-brockel.de\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/Brockel_Sascha_3_3zu4-Grau.png?fit=709%2C945&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/sascha-brockel.de\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/Brockel_Sascha_3_3zu4-Grau.png?fit=709%2C945&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/sascha-brockel.de\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/Brockel_Sascha_3_3zu4-Grau.png?fit=709%2C945&ssl=1\",\"width\":709,\"height\":945,\"caption\":\"Sascha Brockel\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/sascha-brockel.de\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/Brockel_Sascha_3_3zu4-Grau.png?fit=709%2C945&ssl=1\"},\"sameAs\":[\"https:\\\/\\\/sascha-brockel.de\\\/\",\"https:\\\/\\\/www.instagram.com\\\/saschabrockel\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sascha-brockel-b20725164\\\/\",\"https:\\\/\\\/x.com\\\/saschabrockel\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCogo25FboCahP7s8--HDuIQ\"]}]}<\/script>\n<meta property=\"og:video\" content=\"https:\/\/www.youtube.com\/embed\/WLuRdUHhgW8\" \/>\n<meta property=\"og:video:type\" content=\"text\/html\" \/>\n<meta property=\"og:video:duration\" content=\"1254\" \/>\n<meta property=\"og:video:width\" content=\"480\" \/>\n<meta property=\"og:video:height\" content=\"270\" \/>\n<meta property=\"ya:ovs:adult\" content=\"false\" \/>\n<meta property=\"ya:ovs:upload_date\" content=\"2024-10-07T12:00:00+00:00\" \/>\n<meta property=\"ya:ovs:allow_embed\" content=\"true\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Home Assistant room presence detection with ESPHome - Sascha Brockel","description":"Learn how to create precise room presence detection with Home Assistant, ESP32 and BLE tracking.","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:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/","og_locale":"en_US","og_type":"article","og_title":"Home Assistant Raum-Anwesenheitserkennung mit ESPHome","og_description":"Erfahre, wie du mit Home Assistant, ESP32 und BLE-Tracking eine pr\u00e4zise Raumanwesenheitserkennung erstellst.","og_url":"https:\/\/sascha-brockel.de\/en\/home-assistant-room-presence-detection-with-esphome\/","og_site_name":"Sascha Brockel","article_published_time":"2024-10-07T12:00:00+00:00","article_modified_time":"2026-05-31T23:00:49+00:00","og_image":[{"width":1880,"height":1253,"url":"https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/pexels-photo-8369515-jpeg.avif","type":"image\/jpeg"}],"author":"Sascha Brockel","twitter_card":"summary_large_image","twitter_creator":"@saschabrockel","twitter_site":"@saschabrockel","twitter_misc":{"Written by":"Sascha Brockel","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/#article","isPartOf":{"@id":"https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/"},"author":{"name":"Sascha Brockel","@id":"https:\/\/sascha-brockel.de\/#\/schema\/person\/3675ac2cf16fa04c60aca4dedca5c970"},"headline":"Home Assistant Raum-Anwesenheitserkennung mit ESPHome","datePublished":"2024-10-07T12:00:00+00:00","dateModified":"2026-05-31T23:00:49+00:00","mainEntityOfPage":{"@id":"https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/"},"wordCount":1837,"commentCount":0,"publisher":{"@id":"https:\/\/sascha-brockel.de\/#\/schema\/person\/3675ac2cf16fa04c60aca4dedca5c970"},"image":{"@id":"https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/#primaryimage"},"thumbnailUrl":"https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/pexels-photo-8369515-jpeg.avif","keywords":["Docker","Home Assistant","Smart Home"],"articleSection":["Smart Home"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/#respond"]}],"copyrightYear":"2024","copyrightHolder":{"@id":"https:\/\/sascha-brockel.de\/en\/#organization"}},{"@type":"WebPage","@id":"https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/","url":"https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/","name":"Home Assistant room presence detection with ESPHome - Sascha Brockel","isPartOf":{"@id":"https:\/\/sascha-brockel.de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/#primaryimage"},"image":{"@id":"https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/#primaryimage"},"thumbnailUrl":"https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/pexels-photo-8369515-jpeg.avif","datePublished":"2024-10-07T12:00:00+00:00","dateModified":"2026-05-31T23:00:49+00:00","description":"Learn how to create precise room presence detection with Home Assistant, ESP32 and BLE tracking.","breadcrumb":{"@id":"https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/#primaryimage","url":"https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/pexels-photo-8369515-jpeg.avif","contentUrl":"https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/pexels-photo-8369515-jpeg.avif","width":1880,"height":1253,"caption":"Photo by cottonbro studio on Pexels.com"},{"@type":"BreadcrumbList","@id":"https:\/\/sascha-brockel.de\/home-assistant-raum-anwesenheitserkennung-mit-esphome\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/sascha-brockel.de\/"},{"@type":"ListItem","position":2,"name":"Home Assistant Raum-Anwesenheitserkennung mit ESPHome"}]},{"@type":"WebSite","@id":"https:\/\/sascha-brockel.de\/#website","url":"https:\/\/sascha-brockel.de\/","name":"Sascha Brockel","description":"Progress knows no boundaries","publisher":{"@id":"https:\/\/sascha-brockel.de\/#\/schema\/person\/3675ac2cf16fa04c60aca4dedca5c970"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sascha-brockel.de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/sascha-brockel.de\/#\/schema\/person\/3675ac2cf16fa04c60aca4dedca5c970","name":"Sascha Brockel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2023\/10\/Brockel_Sascha_3_3zu4-Grau.png?fit=709%2C945&ssl=1","url":"https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2023\/10\/Brockel_Sascha_3_3zu4-Grau.png?fit=709%2C945&ssl=1","contentUrl":"https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2023\/10\/Brockel_Sascha_3_3zu4-Grau.png?fit=709%2C945&ssl=1","width":709,"height":945,"caption":"Sascha Brockel"},"logo":{"@id":"https:\/\/i0.wp.com\/sascha-brockel.de\/wp-content\/uploads\/2023\/10\/Brockel_Sascha_3_3zu4-Grau.png?fit=709%2C945&ssl=1"},"sameAs":["https:\/\/sascha-brockel.de\/","https:\/\/www.instagram.com\/saschabrockel\/","https:\/\/www.linkedin.com\/in\/sascha-brockel-b20725164\/","https:\/\/x.com\/saschabrockel","https:\/\/www.youtube.com\/channel\/UCogo25FboCahP7s8--HDuIQ"]}]},"og_video":"https:\/\/www.youtube.com\/embed\/WLuRdUHhgW8","og_video_type":"text\/html","og_video_duration":"1254","og_video_width":"480","og_video_height":"270","ya_ovs_adult":"false","ya_ovs_upload_date":"2024-10-07T12:00:00+00:00","ya_ovs_allow_embed":"true"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/sascha-brockel.de\/wp-content\/uploads\/2024\/10\/pexels-photo-8369515-jpeg.avif","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sascha-brockel.de\/en\/wp-json\/wp\/v2\/posts\/1892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sascha-brockel.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sascha-brockel.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sascha-brockel.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sascha-brockel.de\/en\/wp-json\/wp\/v2\/comments?post=1892"}],"version-history":[{"count":10,"href":"https:\/\/sascha-brockel.de\/en\/wp-json\/wp\/v2\/posts\/1892\/revisions"}],"predecessor-version":[{"id":3104,"href":"https:\/\/sascha-brockel.de\/en\/wp-json\/wp\/v2\/posts\/1892\/revisions\/3104"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sascha-brockel.de\/en\/wp-json\/wp\/v2\/media\/1893"}],"wp:attachment":[{"href":"https:\/\/sascha-brockel.de\/en\/wp-json\/wp\/v2\/media?parent=1892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sascha-brockel.de\/en\/wp-json\/wp\/v2\/categories?post=1892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sascha-brockel.de\/en\/wp-json\/wp\/v2\/tags?post=1892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}