本帖最后由 tanhanjiu 于 2023-3-23 22:17 编辑
esphome:
name: esphome-web-cb568c
friendly_name: ESPHome Web cb568c
esp8266:
board: nodemcuv2
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
encryption:
key: "GX0rPi9teOIPEEE37M73xD6NNYIePyC4CMCd8F5EYXQ="
ota:
wifi:
ssid: "???"
password: "!!!!!!!!!!!"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esphome-Web-Cb568C"
password: "12345678"
captive_portal:
uart:
id: uart1
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 256000
parity: NONE
stop_bits: 1
ld2410:
timeout: 61s
max_move_distance : 6m
max_still_distance: 0.75m
g0_move_threshold: 50
g0_still_threshold: 0
g1_move_threshold: 50
g1_still_threshold: 0
g2_move_threshold: 40
g2_still_threshold: 40
g3_move_threshold: 30
g3_still_threshold: 40
g4_move_threshold: 20
g4_still_threshold: 30
g5_move_threshold: 15
g5_still_threshold: 30
g6_move_threshold: 15
g6_still_threshold: 20
g7_move_threshold: 15
g7_still_threshold: 20
g8_move_threshold: 15
g8_still_threshold: 20
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
无法使用,显示未知状态
|