From b6ed5840ea639cf3ad81b5b59c193ecba418de02 Mon Sep 17 00:00:00 2001 From: Jeff Sandberg Date: Thu, 20 Nov 2025 13:35:49 -0700 Subject: [PATCH 1/2] Add general occupancy sensor Adds a general occupancy sensor that serves as a union of all three zone sensors --- Integrations/ESPHome/Core.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index 18ef8c6..bdccacf 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -320,6 +320,17 @@ binary_sensor: id(testScript).execute(); } + - platform: template + name: "Occupancy" + id: "general_occupancy" + device_class: occupancy + icon: mdi:motion-sensor + lambda: |- + bool zone1 = id(radar_zone_1_occupancy).state; + bool zone2 = id(radar_zone_2_occupancy).state; + bool zone3 = id(radar_zone_3_occupancy).state; + return zone1 || zone2 || zone3; + ld2410: id: ld2410_radar From 2aa81eec8b44d1f119f490e09c65b72bfd93ee49 Mon Sep 17 00:00:00 2001 From: Jeff Sandberg Date: Sat, 6 Dec 2025 19:58:36 -0700 Subject: [PATCH 2/2] Rename general occupancy sensor based on discussion in discord --- Integrations/ESPHome/Core.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index bdccacf..bb3c6f9 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -321,8 +321,8 @@ binary_sensor: } - platform: template - name: "Occupancy" - id: "general_occupancy" + name: "Radar Zone Occupancy" + id: "radar_zone_occupancy" device_class: occupancy icon: mdi:motion-sensor lambda: |-