LD2420
public
Sep 11, 2023
Never
597
1 external_components: 2 - source: github://pr#4847 3 components: [ ld2420 ] 4 refresh: 0s 5 6 esphome: 7 name: "mmwave01" 8 friendly_name: "mmwave01" 9 10 esp32: 11 board: esp32dev 12 framework: 13 type: arduino 14 15 # Enable logging 16 logger: 17 18 # Enable Home Assistant API 19 api: 20 encryption: 21 key: "cTy9RiVi61wyb1dnvAQqiPMNTyl5jviJO4lQ/aC7jXc=" 22 23 ota: 24 password: "20755a16743d40176874c4f8625013a0" 25 26 wifi: 27 ssid: !secret wifi_ssid 28 password: !secret wifi_password 29 30 # Enable fallback hotspot (captive portal) in case wifi connection fails 31 ap: 32 ssid: "Teste Fallback Hotspot" 33 password: "mtem1GYyg9YP" 34 35 captive_portal: 36 37 esp32_ble_tracker: 38 39 uart: 40 id: ld2420_uart 41 tx_pin: 22 42 rx_pin: 19 43 baud_rate: 115200 44 parity: NONE 45 stop_bits: 1 46 47 ld2420: 48 presence_time_window: 30s 49 detection_gate_min: 1 50 detection_gate_max: 12 51 g0_move_threshold: 60000 52 g0_still_threshold: 40000 53 g1_move_threshold: 30000 54 g1_still_threshold: 20000 55 g2_move_threshold: 400 56 g2_still_threshold: 200 57 g3_move_threshold: 250 58 g3_still_threshold: 200 59 g4_move_threshold: 250 60 g4_still_threshold: 200 61 g5_move_threshold: 250 62 g5_still_threshold: 200 63 g6_move_threshold: 250 64 g6_still_threshold: 200 65 g7_move_threshold: 250 66 g7_still_threshold: 150 67 g8_move_threshold: 250 68 g8_still_threshold: 150 69 g9_move_threshold: 250 70 g9_still_threshold: 100 71 g10_move_threshold: 250 72 g10_still_threshold: 100 73 g11_move_threshold: 250 74 g11_still_threshold: 100 75 g12_move_threshold: 250 76 g12_still_threshold: 100 77 g13_move_threshold: 200 78 g13_still_threshold: 100 79 g14_move_threshold: 200 80 g14_still_threshold: 100 81 g15_move_threshold: 200 82 g15_still_threshold: 100 83 84 sensor: 85 - platform: ld2420 86 moving_distance: 87 name : Distancia do Movimento 88 89 binary_sensor: 90 - platform: ld2420 91 has_target: 92 name: Presenca 93 94 - platform: gpio 95 pin: 96 number: 26 97 mode: INPUT_PULLUP 98 name: "Interruptor mmwave" 99 device_class: light 100 #on_press: 101 # - homeassistant.service: 102 # service: light.turn_off 103 # data: 104 # entity_id: light.escritorio_mesa 105 #on_release: 106 # - homeassistant.service: 107 # service: light.turn_on 108 # data: 109 # entity_id: light.escritorio_mesa 110 - platform: gpio 111 pin: 112 number: 39 113 inverted: false 114 name: Botão 115 on_press: 116 then: 117 - light.toggle: status_led 118 119 light: 120 - platform: fastled_clockless 121 chipset: WS2812B 122 pin: 27 123 num_leds: 1 124 rgb_order: GRB 125 id: status_led 126 name: Luz 127 effects: 128 - random: 129 - flicker: 130 - addressable_rainbow: 131 132 switch: 133 - platform: restart 134 name: Restart