I ran it all through a YAML ‘checker’ and it was all valid and I have no errors in the file itself… But yes great suggestion!!!
I used ALL the examples from the ESPHome page… including that one.
They are the C3 and according to ESPHome page you should use the arduino
The esp-idf is for ESP32-C2, ESP32-C5, ESP32-C6, ESP32-C61, ESP32-H2, and ESP32-P4 variants… I’m running the C3
I’m not getting a compile log… I try to ‘install’ it via ESPHome in HA and get that error immediately… it doesn’t go past that or show that it even tries to install
Configuration does not match the platform of the connected device. Expected an ESP32 device.
Ok so I’ve gotten this far… I installed a VERY basic install and it went in…
So then I added the sensors and that’s where my issues are now…
INFO ESPHome 2025.12.5
INFO Reading configuration /config/esphome/seed.yaml...
WARNING 'bathroom_presence': Using the '_' (underscore) character in the hostname is discouraged as it can cause problems with some DHCP and local name services. For more information, see https://esphome.io/guides/faq/#why-shouldnt-i-use-underscores-in-my-device-name
Failed config
binary_sensor.ld2450: [source /config/esphome/seed.yaml:43]
platform: ld2450
ld2450_id: living_room_ld2450
[presence] is an invalid option for [binary_sensor.ld2450]. Please check the indentation.
presence:
name: Bath Room Presence
This the mostly working version now:
esphome:
name: bathroom_presence
friendly_name: Bathroom Presence
esp32:
board: esp32-c3-devkitm-1
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "Vcx13szTj4YSavM3kQ7qzMIxdtdNSnyfZkaV4oKkb3U="
ota:
- platform: esphome
password: "58fefe151295d120f5573cae40fb6132"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Bathroom fallback Hotspot"
password: "JUpMdnuNhj9n"
captive_portal:
uart:
id: uart_ld2450
tx_pin: GPIO21 # example - update to your wiring
rx_pin: GPIO20 # example - update to your wiring
baud_rate: 256000
ld2450:
uart_id: uart_ld2450
id: bath_room_ld2450
binary_sensor:
- platform: ld2450
ld2450_id: living_room_ld2450
presence:
name: "Bath Room Presence"
The stuff int he active portal is the issue as the errors above show… still not understanding why
See LD2450 Sensor - ESPHome - Smart Home Made Simple and I quote:
The UART is required to be set up in your configuration for this sensor to work, parity and stop_bitsmust be respectively NONE and 1. Use of hardware a UART is highly recommended in order to properly support the default 256000 baud rate of the LD2450 module.
True, then why is it spelt out specifically? Is the documentation wrong and inconsistent? Assuming will not close any doubts, and it is only two more lines.