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