From eafe7b1fb9bbdb65e68ad133131638ce0a420aca Mon Sep 17 00:00:00 2001
From: Aiden
Date: Mon, 19 Jan 2026 14:32:34 +0800
Subject: [PATCH] Modify version number
---
athom-ld2450-sensor.yaml | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/athom-ld2450-sensor.yaml b/athom-ld2450-sensor.yaml
index 08328d2..3dc044b 100644
--- a/athom-ld2450-sensor.yaml
+++ b/athom-ld2450-sensor.yaml
@@ -3,8 +3,8 @@ substitutions:
friendly_name: "PS02C3MZ Sensor"
room: ""
device_description: "athom esp32c3 ld2450 motion target tracking sensor"
- project_name: "Athom Technology.PS02C3MZ LD2450"
- project_version: "v2.0.3"
+ project_name: "China Athom Technology.PS02C3MZ LD2450"
+ project_version: "v2.0.4"
update_interval: 60s
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
dns_domain: ""
@@ -39,9 +39,18 @@ esphome:
esp32:
board: esp32-c3-devkitm-1
flash_size: 4MB
+ variant: ESP32C3
framework:
type: esp-idf
version: recommended
+ sdkconfig_options:
+ # @grigi found in testing that these options resulted in better responsiveness.
+ # BLE 4.2 is supported by ALL ESP32 boards that have bluetooth, the original and derivatives.
+ CONFIG_BT_BLE_42_FEATURES_SUPPORTED: y
+ # Also enable this on any derivative boards (S2, C3 etc) but not the original ESP32.
+ CONFIG_BT_BLE_50_FEATURES_SUPPORTED: y
+ # Extend the watchdog timeout, so the device reboots if the device appears locked up for over 10 seconds.
+ CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10"
# Enable logging
logger:
@@ -73,7 +82,13 @@ captive_portal:
esp32_ble_tracker:
scan_parameters:
+ # Don't auto start BLE scanning, we control it in the `api` block's automation.
continuous: false
+ active: true # send scan-request packets to gather more info, like device name for some devices.
+ interval: 320ms # default 320ms - how long to spend on each advert channel
+ window: 300ms # default 30ms - how long to actually "listen" in each interval. Reduce this if device is unstable.
+ # If the device cannot keep up or becomes unstable, reduce the "window" setting. This may be
+ # required if your device is controlling other sensors or doing PWM for lights etc.
# Enable Home Assistant API
api: