88 lines
2.0 KiB
YAML
88 lines
2.0 KiB
YAML
esphome:
|
|
name: detect-r-salon
|
|
friendly_name: detect-r-salon
|
|
platformio_options:
|
|
board_build.extra_flags:
|
|
- "-DARDUINO_USB_CDC_ON_BOOT=0" # Override, de
|
|
|
|
esp32:
|
|
board: lolin_s2_mini
|
|
framework:
|
|
type: arduino
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
ld2410:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: "bQWJo/Qpunqtwx5TG9iSIGhYPGKBQV/9twIO2D1xsJo="
|
|
|
|
ota:
|
|
password: "2d2b526b266905b83ffaa822fee69a37"
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Detect-R-Salon Fallback Hotspot"
|
|
password: "KFmnhREAtb9M"
|
|
|
|
captive_portal:
|
|
|
|
web_server:
|
|
port: 80
|
|
|
|
uart:
|
|
tx_pin: GPIO18
|
|
rx_pin: GPIO33
|
|
baud_rate: 256000
|
|
parity: NONE
|
|
stop_bits: 1
|
|
|
|
sensor:
|
|
- platform: ld2410
|
|
moving_distance: #Distance cible en mouvement
|
|
name : Moving Distance
|
|
still_distance: #Distance cible immobile
|
|
name: Still Distance
|
|
moving_energy: #Quantité de mouvement
|
|
name: Move Energy
|
|
still_energy: #Quantité d'immobilité
|
|
name: Still Energy
|
|
detection_distance: #Détection de la distance
|
|
name: Detection Distance
|
|
g0:
|
|
move_energy:
|
|
name: g0 move energy
|
|
still_energy:
|
|
name: g0 still energy
|
|
|
|
binary_sensor:
|
|
- platform: ld2410
|
|
has_target: #Présence
|
|
name: Presence
|
|
has_moving_target: #Cible mobile
|
|
name: Moving Target
|
|
has_still_target: #Cible immobile
|
|
name: Still Target
|
|
out_pin_presence_status:
|
|
name: out pin presence status
|
|
|
|
number:
|
|
- platform: ld2410
|
|
timeout: #Temps pour passer le binary sensor Présence à faux
|
|
name: timeout
|
|
max_move_distance_gate: #Distance maximum de détection du mouvemenet 2-8
|
|
name: max move distance gate
|
|
max_still_distance_gate: #Distance maximum de détection d'immobilité 2-8
|
|
name: max still distance gate
|
|
g0:
|
|
move_threshold: #Déplacer de seuil
|
|
name: g0 move threshold
|
|
still_threshold: #Seuil de déclenchement
|
|
name: g0 still threshold |