We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems to be communicating but not displaying data Last Command Success indicates that it was successful but for some reason it doesn't work :c
yaml code:
`esphome: name: ld2410 includes: - ld2410_uart.h on_boot: priority: 600 # ... then: - lambda: |- auto uart_component = static_cast<LD2410 *>(ld2410); uart_component->setNumbers(maxMovingDistanceRange, maxStillDistanceRange, noneDuration);
esp8266: board: d1_mini
logger: baud_rate: 0
api: encryption: key: "4Kj4sNABDrN46FgZnpoAIq8F9JuWIhyAsJ1cyfDQDNk="
ota: password: "1de48b236576374f6b05c1defb961212"
wifi: ssid: !secret wifi_ssid password: !secret wifi_password
ap: ssid: "LD2410 Fallback Hotspot"
captive_portal:
uart: id: soros tx_pin: TX rx_pin: RX baud_rate: 115200 # Change this according to your setting parity: NONE stop_bits: 1 debug: direction: BOTH dummy_receiver: false after: delimiter: [0xF8,0xF7,0xF6,0xF5]
custom_component:
binary_sensor:
sensor:
number:
button:
`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It seems to be communicating but not displaying data
Last Command Success indicates that it was successful
but for some reason it doesn't work :c
yaml code:
`esphome:
name: ld2410
includes:
- ld2410_uart.h
on_boot:
priority: 600
# ...
then:
- lambda: |-
auto uart_component = static_cast<LD2410 *>(ld2410);
uart_component->setNumbers(maxMovingDistanceRange, maxStillDistanceRange, noneDuration);
esp8266:
board: d1_mini
logger:
baud_rate: 0
api:
encryption:
key: "4Kj4sNABDrN46FgZnpoAIq8F9JuWIhyAsJ1cyfDQDNk="
ota:
password: "1de48b236576374f6b05c1defb961212"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "LD2410 Fallback Hotspot"
captive_portal:
uart:
id: soros
tx_pin: TX
rx_pin: RX
baud_rate: 115200 # Change this according to your setting
parity: NONE
stop_bits: 1
debug:
direction: BOTH
dummy_receiver: false
after:
delimiter: [0xF8,0xF7,0xF6,0xF5]
custom_component:
return {new LD2410(id(soros))};
components:
binary_sensor:
lambda: |-
auto uart_component = static_cast<LD2410 *>(ld2410);
return {uart_component->hasTarget,uart_component->hasMovingTarget,uart_component->hasStillTarget,uart_component->lastCommandSuccess};
binary_sensors:
sensor:
lambda: |-
auto uart_component = static_cast<LD2410 *>(ld2410);
return {uart_component->movingTargetDistance,uart_component->movingTargetEnergy,uart_component->stillTargetDistance,uart_component->stillTargetEnergy,uart_component->detectDistance};
sensors:
unit_of_measurement: "cm"
accuracy_decimals: 0
unit_of_measurement: "%"
accuracy_decimals: 0
unit_of_measurement: "cm"
accuracy_decimals: 0
unit_of_measurement: "%"
accuracy_decimals: 0
unit_of_measurement: "cm"
accuracy_decimals: 0
number:
name: "Max Moving Distance Range"
id: maxMovingDistanceRange
min_value: 1
max_value: 8
step: 1
update_interval: never
optimistic: true
set_action:
auto uart_component = static_cast<LD2410 *>(ld2410);
uart_component->setMaxDistancesAndNoneDuration(x,id(maxStillDistanceRange).state,id(noneDuration).state);
name: "Max Still Distance Range"
id: maxStillDistanceRange
min_value: 1
max_value: 8
step: 1
update_interval: never
optimistic: true
set_action:
auto uart_component = static_cast<LD2410 *>(ld2410);
uart_component->setMaxDistancesAndNoneDuration(id(maxMovingDistanceRange).state,x,id(noneDuration).state);
name: "None Duration"
id: noneDuration
min_value: 0
max_value: 32767
step: 1
mode: box
update_interval: never
optimistic: true
set_action:
auto uart_component = static_cast<LD2410 *>(ld2410);
uart_component->setMaxDistancesAndNoneDuration(id(maxMovingDistanceRange).state,id(maxStillDistanceRange).state,x);
button:
name: "Reboot LD2410"
on_press:
lambda: 'static_cast<LD2410 *>(ld2410)->reboot();'
name: "Turn on config mode"
on_press:
name: "Turn off config mode"
on_press:
name: "Get config"
on_press:
name: "Set baud rate to 256000"
on_press:
name: "Set baud rate to 115200"
on_press:
name: "Set baud rate to 9600"
on_press:
`
The text was updated successfully, but these errors were encountered: