-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetector.yaml
164 lines (148 loc) · 3.67 KB
/
detector.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# ESPHOME SETTINGS / PARAMÈTRES ESPHOME
esphome:
name: detector
friendly_name: Détector
platformio_options:
board_build.extra_flags:
- "-DARDUINO_USB_CDC_ON_BOOT=0" # Override, defaults to '-DARDUINO_USB_CDC_ON_BOOT=1'
# ESP32 SETTINGS / PARAMÈTRES ESP32
esp32:
board: lolin_s2_mini
framework:
type: arduino
# ENABLE LOGGING / ACTIVER LA JOURNALISATION
logger:
# ENABLE HOME ASSISTANT ENCRYPTION API - ACTIVER L'API DE CRYPTAGE HOME ASSISTANT
api:
encryption:
key: !secret DR_api_key
ota:
platform: esphome
password: !secret DR_ota_pw
# WIFI SETTINGS / PARAMÈTRES WIFI
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# If you want a static IP (recommended - You will need to perform the first installation from Esphome via USB)
# Si vous souhaitez une IP statique (recommandé - Vous devrez effectuer la première installation depuis Esphome via USB)
manual_ip:
static_ip: 192.168.1.102
gateway: 192.168.1.1
subnet: 255.255.255.0
power_save_mode: none
# Enable fallback hotspot (captive portal) in case wifi connection fails / Activer le point d'accès de secours (portail captif) en cas d'échec de la connexion Wi-Fi
ap:
ssid: !secret DR_ap_ssid
password: !secret DR_ap_password
captive_portal:
# LD2410 SENSOR SETTINGS / PARAMÈTRES CAPTEUR LD2410
ld2410:
uart:
tx_pin: GPIO18
rx_pin: GPIO33
baud_rate: 256000
parity: NONE
stop_bits: 1
sensor:
- platform: ld2410
light:
name: light
moving_distance:
name : Moving Distance
still_distance:
name: Still Distance
moving_energy:
name: Move Energy
still_energy:
name: Still Energy
detection_distance:
name: Detection Distance
binary_sensor:
- platform: ld2410
has_target:
name: Presence
has_moving_target:
name: Moving Target
has_still_target:
name: Still Target
number:
- platform: ld2410
timeout:
name: timeout
light_threshold:
name: light threshold
max_move_distance_gate:
name: max move distance gate
max_still_distance_gate:
name: max still distance gate
g0:
move_threshold:
name: g0 move threshold
still_threshold:
name: g0 still threshold
g1:
move_threshold:
name: g1 move threshold
still_threshold:
name: g1 still threshold
g2:
move_threshold:
name: g2 move threshold
still_threshold:
name: g2 still threshold
g3:
move_threshold:
name: g3 move threshold
still_threshold:
name: g3 still threshold
g4:
move_threshold:
name: g4 move threshold
still_threshold:
name: g4 still threshold
g5:
move_threshold:
name: g5 move threshold
still_threshold:
name: g5 still threshold
g6:
move_threshold:
name: g6 move threshold
still_threshold:
name: g6 still threshold
g7:
move_threshold:
name: g7 move threshold
still_threshold:
name: g7 still threshold
g8:
move_threshold:
name: g8 move threshold
still_threshold:
name: g8 still threshold
switch:
- platform: ld2410
engineering_mode:
name: "engineering mode"
bluetooth:
name: "control bluetooth"
button:
- platform: ld2410
factory_reset:
name: "factory reset"
restart:
name: "restart"
query_params:
name: query params
text_sensor:
- platform: ld2410
version:
name: "firmware version"
mac_address:
name: "mac address"
select:
- platform: ld2410
distance_resolution:
name: "distance resolution"
light_function:
name: light function