vejvik

presence

Mar 26th, 2026
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. esphome:
  2. name: ld2410b-mw-presence
  3. friendly_name: LD2410B mw presence
  4.  
  5. esp32:
  6. board: esp32-s2-saola-1
  7. variant: esp32s2
  8.  
  9. # Enable logging
  10. logger:
  11.  
  12. # Enable Home Assistant API
  13. api:
  14. encryption:
  15. key: "3ZvBgnUumHsG2AqwJOtZReCDlp4hlI/JW3WDD7/FZEI="
  16.  
  17. ota:
  18. - platform: esphome
  19. password: "b109060ece06c98231b79ff5fc70bb1e"
  20.  
  21. wifi:
  22. ssid: !secret wifi_ssid
  23. password: !secret wifi_password
  24.  
  25. # Enable fallback hotspot (captive portal) in case wifi connection fails
  26. ap:
  27. ssid: "Ld2410B-Mw-Presence"
  28. password: "O2s6DuzguWyl"
  29.  
  30. uart:
  31. tx_pin: GPIO17 # → RX senzoru
  32. rx_pin: GPIO18 # → TX senzoru
  33. baud_rate: 256000
  34. parity: NONE
  35. stop_bits: 1
  36.  
  37. ld2410:
  38.  
  39. # Senzory
  40. sensor:
  41. - platform: ld2410
  42. light:
  43. name: Light
  44. moving_distance:
  45. name: Moving Distance
  46. still_distance:
  47. name: Still Distance
  48. moving_energy:
  49. name: Move Energy
  50. still_energy:
  51. name: Still Energy
  52. detection_distance:
  53. name: Detection Distance
  54. g0:
  55. move_energy:
  56. name: G0 move energy
  57. still_energy:
  58. name: G0 still energy
  59. g1:
  60. move_energy:
  61. name: G1 move energy
  62. still_energy:
  63. name: G1 still energy
  64. g2:
  65. move_energy:
  66. name: G2 move energy
  67. still_energy:
  68. name: G2 still energy
  69. g3:
  70. move_energy:
  71. name: G3 move energy
  72. still_energy:
  73. name: G3 still energy
  74. g4:
  75. move_energy:
  76. name: G4 move energy
  77. still_energy:
  78. name: G4 still energy
  79. g5:
  80. move_energy:
  81. name: G5 move energy
  82. still_energy:
  83. name: G5 still energy
  84. g6:
  85. move_energy:
  86. name: G6 move energy
  87. still_energy:
  88. name: G6 still energy
  89. g7:
  90. move_energy:
  91. name: G7 move energy
  92. still_energy:
  93. name: G7 still energy
  94. g8:
  95. move_energy:
  96. name: G8 move energy
  97. still_energy:
  98. name: G8 still energy
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105. binary_sensor:
  106. - platform: ld2410
  107. has_target:
  108. name: Presence
  109. has_moving_target:
  110. name: Moving Target
  111. has_still_target:
  112. name: Still Target
  113. out_pin_presence_status:
  114. name: Out pin presence status
  115.  
  116. number:
  117. - platform: ld2410
  118. timeout:
  119. name: Timeout
  120. light_threshold:
  121. name: Light threshold
  122. max_move_distance_gate:
  123. name: Max move distance gate
  124. max_still_distance_gate:
  125. name: Max still distance gate
  126. g0:
  127. move_threshold:
  128. name: G0 move threshold
  129. still_threshold:
  130. name: G0 still threshold
  131. g1:
  132. move_threshold:
  133. name: G1 move threshold
  134. still_threshold:
  135. name: G1 still threshold
  136. g2:
  137. move_threshold:
  138. name: G2 move threshold
  139. still_threshold:
  140. name: G2 still threshold
  141. g3:
  142. move_threshold:
  143. name: G3 move threshold
  144. still_threshold:
  145. name: G3 still threshold
  146. g4:
  147. move_threshold:
  148. name: G4 move threshold
  149. still_threshold:
  150. name: G4 still threshold
  151. g5:
  152. move_threshold:
  153. name: G5 move threshold
  154. still_threshold:
  155. name: G5 still threshold
  156. g6:
  157. move_threshold:
  158. name: G6 move threshold
  159. still_threshold:
  160. name: G6 still threshold
  161. g7:
  162. move_threshold:
  163. name: G7 move threshold
  164. still_threshold:
  165. name: G7 still threshold
  166. g8:
  167. move_threshold:
  168. name: G8 move threshold
  169. still_threshold:
  170. name: G8 still threshold
  171.  
  172.  
  173. select:
  174. - platform: ld2410
  175. distance_resolution:
  176. name: Distance resolution
  177. light_function:
  178. name: Light function
  179.  
  180.  
  181. switch:
  182. - platform: ld2410
  183. engineering_mode:
  184. name: Engineering mode
  185.  
  186. captive_portal:
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
Advertisement
Add Comment
Please, Sign In to add comment