Advertisement
Azuria

Untitled

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