Files
hassos_config/esphome/sensors/ld2410.yaml
2023-06-29 16:14:36 +02:00

50 lines
1.2 KiB
YAML
Executable File

uart:
- !include ../interfaces/uart_ld.yaml
# Example configuration entry
ld2410:
uart_id: uart_ld
timeout: 1s
max_move_distance : 6m
max_still_distance: 3m
# 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 : ${device_name} Moving Distance
still_distance:
name: ${device_name} Still Distance
moving_energy:
name: ${device_name} Move Energy
still_energy:
name: ${device_name} Still Energy
detection_distance:
name: ${device_name} Detection Distance
binary_sensor:
- platform: ld2410
has_target:
name: ${device_name} Presence
has_moving_target:
name: ${device_name} Moving Target
has_still_target:
name: ${device_name} Still Target