Advertisement
captain380

ld2410

Apr 11th, 2024
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1.  
  2.  
  3.  
  4. esphome:
  5. name: ${name}
  6. name_add_mac_suffix: false
  7. friendly_name: ${friendly_name}
  8. platform: ESP32
  9. board: esp32dev
  10.  
  11.  
  12.  
  13.  
  14. api:
  15. encryption:
  16. key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  17.  
  18.  
  19. wifi:
  20. networks:
  21. - ssid: "xxxxxx"
  22. password: "xxxxxx"
  23. output_power: 19.5db
  24. fast_connect: True
  25. power_save_mode: light
  26. manual_ip:
  27. static_ip: 192.168.1.90
  28. gateway: 192.168.1.1
  29. subnet: 255.255.255.0
  30. dns1: 192.168.1.1
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37. # Enable logging
  38. logger:
  39. level: DEBUG
  40.  
  41. ota:
  42.  
  43. uart:
  44. id: uart_1
  45. tx_pin: GPIO17
  46. rx_pin: GPIO16
  47. baud_rate: 256000
  48. parity: NONE
  49. stop_bits: 1
  50.  
  51. ld2410:
  52. uart_id: uart_1
  53. throttle: 1500ms
  54. id: ld2410_comp
  55.  
  56.  
  57. select:
  58. - platform: ld2410
  59. distance_resolution:
  60. name: distance resolution
  61. baud_rate:
  62. name: baud rate
  63. light_function:
  64. name: light function
  65. out_pin_level:
  66. name: out pin level
  67.  
  68. button:
  69. - platform: ld2410
  70. factory_reset:
  71. name: "factory reset"
  72. restart:
  73. name: "restart"
  74. query_params:
  75. name: query params
  76.  
  77. number:
  78. - platform: ld2410
  79. timeout:
  80. name: timeout
  81. max_move_distance_gate:
  82. name: max move distance gate
  83. max_still_distance_gate:
  84. name: max still distance gate
  85. g0:
  86. move_threshold:
  87. name: g0 move threshold
  88. still_threshold:
  89. name: g0 still threshold
  90. g1:
  91. move_threshold:
  92. name: g1 move threshold
  93. still_threshold:
  94. name: g1 still threshold
  95. g2:
  96. move_threshold:
  97. name: g2 move threshold
  98. still_threshold:
  99. name: g2 still threshold
  100. g3:
  101. move_threshold:
  102. name: g3 move threshold
  103. still_threshold:
  104. name: g3 still threshold
  105. g4:
  106. move_threshold:
  107. name: g4 move threshold
  108. still_threshold:
  109. name: g4 still threshold
  110. g5:
  111. move_threshold:
  112. name: g5 move threshold
  113. still_threshold:
  114. name: g5 still threshold
  115. g6:
  116. move_threshold:
  117. name: g6 move threshold
  118. still_threshold:
  119. name: g6 still threshold
  120. g7:
  121. move_threshold:
  122. name: g7 move threshold
  123. still_threshold:
  124. name: g7 still threshold
  125. g8:
  126. move_threshold:
  127. name: g8 move threshold
  128. still_threshold:
  129. name: g8 still threshold
  130. light_threshold:
  131. name: light threshold
  132.  
  133. text_sensor:
  134. - platform: ld2410
  135. version:
  136. name: "presenece sensor version"
  137. mac_address:
  138. name: "presenece sensor mac address"
  139.  
  140. switch:
  141. - platform: ld2410
  142. engineering_mode:
  143. name: "engineering mode"
  144. bluetooth:
  145. name: control Bluetooth
  146.  
  147. binary_sensor:
  148. - platform: ld2410
  149. has_target:
  150. name: "presence"
  151. has_moving_target:
  152. name: "movement"
  153. has_still_target:
  154. name: "still"
  155. out_pin_presence_status:
  156. name: out pin presence status
  157. - platform: gpio
  158. pin: GPIO13
  159. name: gpio out pin presence
  160. device_class: presence
  161.  
  162. sensor:
  163. - platform: ld2410
  164. moving_distance:
  165. name: "Moving distance (cm)"
  166. still_distance:
  167. name: "Still Distance (cm)"
  168. moving_energy:
  169. name: "Move Energy (%)"
  170. still_energy:
  171. name: "Still Energy (%)"
  172. detection_distance:
  173. name: "Distance Detection (cm)"
  174. g0:
  175. move_energy:
  176. name: g0 move energy
  177. still_energy:
  178. name: g0 still energy
  179. g1:
  180. move_energy:
  181. name: g1 move energy
  182. still_energy:
  183. name: g1 still energy
  184. g2:
  185. move_energy:
  186. name: g2 move energy
  187. still_energy:
  188. name: g2 still energy
  189. g3:
  190. move_energy:
  191. name: g3 move energy
  192. still_energy:
  193. name: g3 still energy
  194. g4:
  195. move_energy:
  196. name: g4 move energy
  197. still_energy:
  198. name: g4 still energy
  199. g5:
  200. move_energy:
  201. name: g5 move energy
  202. still_energy:
  203. name: g5 still energy
  204. g6:
  205. move_energy:
  206. name: g6 move energy
  207. still_energy:
  208. name: g6 still energy
  209. g7:
  210. move_energy:
  211. name: g7 move energy
  212. still_energy:
  213. name: g7 still energy
  214. g8:
  215. move_energy:
  216. name: g8 move energy
  217. still_energy:
  218. name: g8 still energy
  219. light:
  220. name: light
  221.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement