Advertisement
DPYUD

LD4020.yaml

Feb 16th, 2025 (edited)
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.82 KB | Source Code | 0 0
  1. # Esempio di configurazione per sensore LD4020
  2. esphome:
  3.   name: ld4020
  4.   platform: ESP32
  5.   board: wemos_d1_mini32
  6.  
  7. api:
  8.   encryption:
  9.     key: !secret api_secret
  10.  
  11. ota:
  12.   platform: esphome
  13.   password: !secret ota_password
  14.  
  15. wifi:
  16.   networks:
  17.   - ssid: !secret wifi_essid1
  18.     password: !secret wifi_password1
  19.   - ssid: !secret wifi_essid2
  20.     password: !secret wifi_password2
  21.  
  22.   manual_ip:
  23.     static_ip: 192.168.1.125
  24.     gateway: 192.168.1.1
  25.     subnet: 255.255.255.0
  26.     dns1: 192.168.1.1
  27.  
  28.   ap:
  29.     ssid: "EspHomeLD4020"
  30.     password: !secret fallback_password
  31.  
  32. captive_portal:
  33. web_server:
  34.   port: 80
  35.   auth:
  36.     username: admin
  37.     password: !secret web_password
  38.  
  39. # Enable logging
  40. logger:
  41. uart:
  42.   id: ld2420_uart
  43.   # was GPIO22
  44.   tx_pin: GPIO5
  45.   rx_pin: GPIO23
  46.   baud_rate: 115200
  47.   parity: NONE
  48.   stop_bits: 1
  49.  
  50. ld2420:
  51.  
  52. text_sensor:
  53.   - platform: ld2420
  54.     fw_version:
  55.       name: Versione firmware
  56.  
  57. sensor:
  58.   - platform: ld2420
  59.     moving_distance:
  60.       name : Distanza di movimento
  61.  
  62. switch:
  63.   - platform: restart
  64.     name: Riavvio nodo ESPHome
  65.  
  66. select:
  67.   - platform: ld2420
  68.     operating_mode:
  69.       name: Modalità operativa
  70.  
  71. number:
  72.   - platform: ld2420
  73.     presence_timeout:
  74.       name: Timeout di rilevazione presenza
  75.     min_gate_distance:
  76.       name: Distanza minima gate
  77.     max_gate_distance:
  78.       name: Distanza massima gate
  79.     gate_select:
  80.       name: Selezione gate
  81.     still_threshold:
  82.       name: Impostazione soglia immobilità
  83.     move_threshold:
  84.       name: Impostazione soglia movimento
  85. button:
  86.   - platform: ld2420
  87.     apply_config:
  88.       name: Applica configurazione
  89.     factory_reset:
  90.       name: Reset a impostazioni di fabbrica
  91.     restart_module:
  92.       name: Riavvio modulo
  93.     revert_config:
  94.       name: Undo modifiche
  95.      
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement