I try integrate the HLK-LD2410C with NODEMCU32 V 3
MY CODE.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
esphome:
name: hlk-ld2410-b
friendly_name: HLK-LD2410-B
esp8266:
board: esp01_1m
Enable logging
logger:
baud_rate: 0
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
Optional Manual IP
manual_ip:
static_ip: 192.168.1.137
gateway : 192.168.1.1
subnet: 255.255.255.0
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: “Hlk-Ld2410-B Fallback Hotspot”
password: “teste@123”
uart:
tx_pin: 1
rx_pin: 3
baud_rate: 256000
parity: NONE
stop_bits: 1
ld2410:
timeout: 150s
max_move_distance : 6m
max_still_distance: 0.75m
g0_move_threshold: 10
g0_still_threshold: 20
g1_move_threshold: 10
g1_still_threshold: 20
g2_move_threshold: 20
g2_still_threshold: 21
g3_move_threshold: 30
g3_still_threshold: 31
g4_move_threshold: 40
g4_still_threshold: 41
g5_move_threshold: 50
g5_still_threshold: 51
g6_move_threshold: 60
g6_still_threshold: 61
g7_move_threshold: 70
g7_still_threshold: 71
g8_move_threshold: 80
g8_still_threshold: 81
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
binary_sensor:
platform: ld2410
has_target:
name: Presence
has_moving_target:
name: Moving Target
has_still_target:
name: Still Target
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pinout
LD-Vcc → MCU-VIN
LD-GND->MCU-GND
LD-RX->MCU-TX
LD-TX->MCU-RX
But all sensors displayed unknown
Please i need HELP
1 Like
zoogara
(Daryl)
June 13, 2023, 11:34am
2
Hi - Have a read of the linked topic - also paying attention to formatting your YAML using preformatted text tags:
Before we begin…
This forum is not a helpdesk
The people here don’t work for Home Assistant, that’s an open source project. We are volunteering our free time to help others. Not all topics may get an answer, never mind one that helps you solve your problem.
[image]
This also isn’t a general home automation forum, this is a forum for Home Assistant and things related to it. Any question about Home Assistant, and about using things with Home Assistant, is welcome here. We can’t help you with e…
Edit your post using the correct tags and someone may be able to help.
alfwro13
(Andre W.)
July 11, 2023, 2:53pm
3
Try TX-TX and RX-RX and it should work just fine.
Hello, This is Annie from Hi-Link. I consulted our technicist and got the solution as follows. You could try to power HLK-2410C alone and try RX-RX, TX-TX and Gnd-Gnd.
1 Like
Bohica93
(Dalan)
September 28, 2023, 2:15pm
5
Hi,
I am having the same issue. Below is my YAML code
esphome:
name: playroom-ps1
friendly_name: PlayRoom PS1
esp8266:
board: esp01_1m
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
encryption:
key: "NO4/pwirUW0rkhe3syv/iEgLTugbjoGejrFxRuqzwMc="
ota:
password: "43ffbe08b7e117093fc72704698cc71c"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Playroom-Ps1 Fallback Hotspot"
password: "CdioIm9PbgAw"
captive_portal:
uart:
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 256000
parity: NONE
stop_bits: 1
ld2410:
binary_sensor:
- platform: ld2410
has_target:
name: Presence
has_moving_target:
name: Moving Target
has_still_target:
name: Still Target
out_pin_presence_status:
name: out pin presence status
sensor:
- platform: ld2410
light:
name: light
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"
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
button:
- platform: ld2410
factory_reset:
name: "factory reset"
restart:
name: "restart"
query_params:
name: query params
text_sensor:
- platform: ld2410
version:
name: Firmware Version
mac_address:
name: MAC
I have it working on an esp32dev board, but can’t get it working on nodemcu32-v-3
Any help would be appreciated - Thanks
1 Like
Has anyone solved this issue?
Thank you!
adnancu
(Adnan)
August 23, 2024, 8:03pm
7
yes i am reslove the issue i change tx and rx pin position in file and work fine for me… im using d32 wemos
1 Like