Also Im having issues seeing though glass, any recommendations on sensitivity settings?
EDIT Ignore this one, looking though the doco it says enable engineering mode and check the values under diagnostics, from the device page in HA . Ill try that
Also Im having issues seeing though glass, any recommendations on sensitivity settings?
EDIT Ignore this one, looking though the doco it says enable engineering mode and check the values under diagnostics, from the device page in HA . Ill try that
And lastly lol, is anyone using gates for automations? Is it reliable?
Or value temples for distance?
Thanks all
We did a simultaneous comparison of all three sensors from hlk and it seems that the overall reliability of the LD2410 for distance display is good.
Cool, thanks for that. I’ll check that out tonight
Sorry but i´m a bit noob here… should i replace the “vars” with the name of the entity? or how should i use this? i have already downloaded both custom templat card and bars card… thanks in advance!
Hi all,
I have tried to build my first presence detector but I found my Esp32 S2 mini off line this morning although the device seems to work correctly.
I explained the issue here:
Thanks for your support
Fail to open device. This is the message when I try to open my LD2410
As i know no.
In my experience not all esp32 boards works great with ld2410b.
Esp32-c3 works the best for me.
If it was working, have you tried restarting it? Unplug and plug
Which ESP32 have you got?
This one?
This is what I’m using for my S2s and they have been super reliable.
Your mileage may vary though lol
esp32:
board: lolin_s2_mini
variant: ESP32S2
framework:
type: arduino
version: 2.0.6
platform_version: 5.3.0
I have tried to restart it several times but without success.
I have also Esp Reboot with the integration but it cointinues to appear offline in Esphome.
I’m using the ESP32 S2 mini wemos (maybe a clone) like in your picture.
esp32:
board: lolin_s2_mini
framework:
type: arduino
version: 2.0.9
platform_version: 6.3.2
The yaml seems similar to your one but without
variant: ESP32S2
What I should do now? restart the installation process via USB?
If I were you, I would make sure that you have the same esp32, do some digging and make sure and then here is my complete config file.
Upload Instructions
Tool
https://adafruit.github.io/Adafruit_WebSerial_ESPTool/
esphome:
name: put_your_own
friendly_name: put_your_own
platformio_options:
board_build.extra_flags:
- "-DARDUINO_USB_CDC_ON_BOOT=0"
esp32:
board: lolin_s2_mini
variant: ESP32S2
framework:
type: arduino
version: 2.0.6
platform_version: 5.3.0
# Enable logging
logger:
create a new device and copy the keys and wifi settings here and delete this line
captive_portal:
uart:
id: ld2410_uart
tx_pin: GPIO39
rx_pin: GPIO40
baud_rate: 256000
parity: NONE
stop_bits: 1
ld2410:
number:
- platform: ld2410
timeout:
name: timeout
light_threshold:
name: light threshold
max_move_distance_gate:
name: max move distance gate
max_still_distance_gate:
name: max still distance gate
g0:
move_threshold:
name: g0 move threshold
still_threshold:
name: g0 still threshold
g1:
move_threshold:
name: g1 move threshold
still_threshold:
name: g1 still threshold
g2:
move_threshold:
name: g2 move threshold
still_threshold:
name: g2 still threshold
g3:
move_threshold:
name: g3 move threshold
still_threshold:
name: g3 still threshold
g4:
move_threshold:
name: g4 move threshold
still_threshold:
name: g4 still threshold
g5:
move_threshold:
name: g5 move threshold
still_threshold:
name: g5 still threshold
g6:
move_threshold:
name: g6 move threshold
still_threshold:
name: g6 still threshold
g7:
move_threshold:
name: g7 move threshold
still_threshold:
name: g7 still threshold
g8:
move_threshold:
name: g8 move threshold
still_threshold:
name: g8 still threshold
sensor:
- platform: ld2410
moving_distance:
name : Moving Distance
still_distance:
name: Still Distance
moving_energy:
name: Move Energy
still_energy:
name: Still Energy
detection_distance:
name: Detection Distance
g0:
move_energy:
name: g0 move energy
still_energy:
name: g0 still energy
g1:
move_energy:
name: g1 move energy
still_energy:
name: g1 still energy
g2:
move_energy:
name: g2 move energy
still_energy:
name: g2 still energy
g3:
move_energy:
name: g3 move energy
still_energy:
name: g3 still energy
g4:
move_energy:
name: g4 move energy
still_energy:
name: g4 still energy
g5:
move_energy:
name: g5 move energy
still_energy:
name: g5 still energy
g6:
move_energy:
name: g6 move energy
still_energy:
name: g6 still energy
g7:
move_energy:
name: g7 move energy
still_energy:
name: g7 still energy
g8:
move_energy:
name: g8 move energy
still_energy:
name: g8 still energy
switch:
- platform: ld2410
engineering_mode:
name: "engineering mode"
bluetooth:
name: "control bluetooth"
binary_sensor:
- platform: ld2410
has_target:
name: "Occupancy"
has_moving_target:
name: "Movement"
has_still_target:
name: "Still"
Also a question to everyone else. The config that I pasted, are there any cool things I could be doing differently? Im not sure what lol, but im always open to make it better or what the latest things are.
Well you can use setting for device internal temperature uptime and wifi signal like
sensor:
- platform: internal_temperature
name: "Internal Temperature"
- platform: uptime
name: Uptime
entity_category: "diagnostic"
update_interval: 300s
- platform: wifi_signal
name: "WiFi Signal"
accuracy_decimals: 1
entity_category: "diagnostic"
update_interval: 5s
Then it will be nice to have some light sensor for it like bh1750fvl
i2c:
sda: GPIO18
scl: GPIO19
scan: True
id: bus_a
...
sensor:
- platform: bh1750
name: "Illuminance"
address: 0x23
update_interval: 1s
accuracy_decimals: 2
And some restart and reset buttons
button:
- platform: ld2410
factory_reset:
name: "factory reset"
restart:
name: "restart"
These may be possible with LD2420, which has somehow a lighter component, on ESP32,with ld2410 it will crash with insufficient ram.
How are you using the internal temp sensor? This thing runs pretty hot
Thanks for all that
Ive seen this referenced, but cant find out any info?
I ever have some kind of reference in the config for it
light_threshold:
name: light threshold
Right so it looks like the light sensor only works in engineering mode?
from the ESPHome doco
light (Optional, int): When in engineering mode, indicates the light sensitivity, otherwise unknown. Value between 0 and 255 inclusive. Though it seems that the value 85 is the lowest value at complete darkness. All options from Sensor.
yes, to use the builtin light sensor aka ldr you have to use engineering mode.
the internal temperature sensor is on the esp board, not the sensor itself.
can’t find bar-card in hacs.