I have a strange issue on a few of my esp devices where after I update the code and upload it over OTA the LD2420 sensor fails.
The sensor starts working after I unplug the USB and plug it back again (energy cut).
This happens on various devices (esp32-c6, S3, regular esp32)
substitutions:
name: office-stairs-sensor
friendly_name: Office Stairs Sensor
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: esphome.web
version: '1.0'
on_boot:
priority: 250
then:
- wait_until:
condition:
wifi.connected:
timeout: 5s
esp32:
board: esp32-c6-devkitc-1
variant: esp32c6
framework:
type: esp-idf
logger:
level: VERBOSE
api:
encryption:
key: "XXX"
ota:
- platform: esphome
password: "XXX"
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
- ssid: !secret wifi_ssid2
password: !secret wifi_password2
captive_portal:
improv_serial:
uart:
tx_pin: GPIO6
rx_pin: GPIO5
baud_rate: 115200
parity: NONE
stop_bits: 1
ld2420:
number:
- platform: ld2420
presence_timeout:
name: Detection Presence Timeout
min_gate_distance:
name: Detection Gate Minimum
max_gate_distance:
name: Detection Gate Maximum
gate_select:
name: Select Gate to Set
still_threshold:
name: Set Still Threshold Value
move_threshold:
name: Set Move Threshold Value
sensor:
# - platform: wifi_signal
# name: "WiFi Signal"
# update_interval: 3s
- platform: ld2420
moving_distance:
name : Moving Distance
binary_sensor:
- platform: ld2420
has_target:
name: Presence
text_sensor:
- platform: ld2420
fw_version:
name: LD2420 Firmware
select:
- platform: ld2420
operating_mode:
name: Operating Mode
button:
- platform: ld2420
apply_config:
name: Apply Config
factory_reset:
name: Factory Reset
restart_module:
name: Restart Module
revert_config:
name: Undo Edits
light:
- platform: esp32_rmt_led_strip
name: "On board LED"
num_leds: 1
pin: GPIO8
rgb_order: GRB
chipset: ws2812
rmt_symbols: 48
- platform: esp32_rmt_led_strip
id: led_accent
rgb_order: GRB
is_rgbw: true
chipset: SK6812
pin: GPIO7
num_leds: 24
name: "Main light"
rmt_symbols: 48