-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
it seems that there has been changes made to the way the LD2410 is being configured in ESP Home and therefor my old config is not valid anymore. I tried changing them by looking at examples here and the documentation on the esp page which states that the use of numbers is now needed, but somehow I am unable to get the config working
the new config is being accepted, but fails to compile with tons of errors (which is basically a config taken from one of the issues here stating it should work).
my old config:
esphome:
name: naambord-esp8266
friendly_name: Naambord-ESP8266
esp8266:
board: esp01_1m
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
encryption:
key: "api-key"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: x.x.x.x
gateway: x.x.x.x
subnet: x.x.x.x
dns1: x.x.x.x
dns2: x.x.x.x
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Naambord-ESP8266"
password: "wifi-ap-pass"
captive_portal:
ota:
password: "ota-pass"
# LED strip
light:
- platform: neopixelbus
type: GRB
variant: WS2812X
pin: GPIO2
num_leds: 34
name: "NeoPixel Light"
# LD2410 sensor
uart:
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 256000
parity: NONE
stop_bits: 1
ld2410:
timeout: 150s
max_move_distance : 2.25m
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: 46
#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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
