Advertisement
jacekw7

D1MINI+LD2410

Dec 6th, 2023
1,161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.13 KB | None | 0 0
  1. esphome:
  2.   name: esphome-web-55c8f6
  3.   friendly_name: ESP_D1MINI_1
  4.  
  5. esp8266:
  6.   board: esp01_1m
  7.  
  8. # Enable logging
  9. logger:
  10.   baud_rate: 0
  11.  
  12. # Enable Home Assistant API
  13. api:
  14.   encryption:
  15.     key: "6VQdtAN17gnvHp3tb05fPdgeC/3iqXbAytJKRXNBv1M="
  16.  
  17. ota:
  18.  
  19. wifi:
  20.   ssid: !secret wifi_ssid
  21.   password: !secret wifi_password
  22.  
  23.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  24.   ap:
  25.     ssid: "Esphome-Web-55C8F6"
  26.     password: "kx8i6GdzGzxQ"
  27.  
  28. captive_portal:
  29. # ESPHome Example configuration entry
  30. uart:
  31.   id: uart_modbus
  32.   tx_pin: 1
  33.   rx_pin: 3
  34.   baud_rate: 256000
  35.   parity: NONE
  36.   stop_bits: 1
  37.  
  38. binary_sensor:
  39.   - platform: ld2410
  40.     has_target:
  41.       name: Presence
  42.     has_moving_target:
  43.       name: Moving Target
  44.     has_still_target:
  45.       name: Still Target
  46.     out_pin_presence_status:
  47.       name: out pin presence status
  48.  
  49. ld2410:
  50. sensor:
  51.   - platform: ld2410
  52.     light:
  53.       name: light
  54.     moving_distance:
  55.       name : Moving Distance
  56.     still_distance:
  57.       name: Still Distance
  58.     moving_energy:
  59.       name: Move Energy
  60.     still_energy:
  61.       name: Still Energy
  62.     detection_distance:
  63.       name: Detection Distance
  64.     g0:
  65.       move_energy:
  66.         name: g0 move energy
  67.       still_energy:
  68.         name: g0 still energy
  69.     g1:
  70.       move_energy:
  71.         name: g1 move energy
  72.       still_energy:
  73.         name: g1 still energy
  74.     g2:
  75.       move_energy:
  76.         name: g2 move energy
  77.       still_energy:
  78.         name: g2 still energy
  79.     g3:
  80.       move_energy:
  81.         name: g3 move energy
  82.       still_energy:
  83.         name: g3 still energy
  84.     g4:
  85.       move_energy:
  86.         name: g4 move energy
  87.       still_energy:
  88.         name: g4 still energy
  89.     g5:
  90.       move_energy:
  91.         name: g5 move energy
  92.       still_energy:
  93.         name: g5 still energy
  94.     g6:
  95.       move_energy:
  96.         name: g6 move energy
  97.       still_energy:
  98.         name: g6 still energy
  99.     g7:
  100.       move_energy:
  101.         name: g7 move energy
  102.       still_energy:
  103.         name: g7 still energy
  104.     g8:
  105.       move_energy:
  106.         name: g8 move energy
  107.       still_energy:
  108.         name: g8 still energy
  109.  
  110. switch:
  111.   - platform: ld2410
  112.     engineering_mode:
  113.       name: "engineering mode"
  114.     bluetooth:
  115.       name: "control bluetooth"
  116.  
  117. number:
  118.   - platform: ld2410
  119.     timeout:
  120.       name: timeout
  121.     light_threshold:
  122.       name: light threshold
  123.     max_move_distance_gate:
  124.       name: max move distance gate
  125.     max_still_distance_gate:
  126.       name: max still distance gate
  127.     g0:
  128.       move_threshold:
  129.         name: g0 move threshold
  130.       still_threshold:
  131.         name: g0 still threshold
  132.     g1:
  133.       move_threshold:
  134.         name: g1 move threshold
  135.       still_threshold:
  136.         name: g1 still threshold
  137.     g2:
  138.       move_threshold:
  139.         name: g2 move threshold
  140.       still_threshold:
  141.         name: g2 still threshold
  142.     g3:
  143.       move_threshold:
  144.         name: g3 move threshold
  145.       still_threshold:
  146.         name: g3 still threshold
  147.     g4:
  148.       move_threshold:
  149.         name: g4 move threshold
  150.       still_threshold:
  151.         name: g4 still threshold
  152.     g5:
  153.       move_threshold:
  154.         name: g5 move threshold
  155.       still_threshold:
  156.         name: g5 still threshold
  157.     g6:
  158.       move_threshold:
  159.         name: g6 move threshold
  160.       still_threshold:
  161.         name: g6 still threshold
  162.     g7:
  163.       move_threshold:
  164.         name: g7 move threshold
  165.       still_threshold:
  166.         name: g7 still threshold
  167.     g8:
  168.       move_threshold:
  169.         name: g8 move threshold
  170.       still_threshold:
  171.         name: g8 still threshold
  172.  
  173. button:
  174.   - platform: ld2410
  175.     factory_reset:
  176.       name: "factory reset"
  177.     restart:
  178.       name: "restart"
  179.     query_params:
  180.       name: query params
  181.  
  182. text_sensor:
  183.   - platform: ld2410
  184.     version:
  185.       name: "firmware version"
  186.     mac_address:
  187.       name: "mac address"
  188.  
  189. select:
  190.   - platform: ld2410
  191.     distance_resolution:
  192.       name: "distance resolution"
  193.     baud_rate:
  194.       name: "baud rate"
  195.     light_function:
  196.       name: light function
  197.     out_pin_level:
  198.       name: out pin level
  199.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement