-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathld2420.yaml
108 lines (96 loc) · 2.1 KB
/
ld2420.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
## 人在传感器
esphome:
name: presense
name_add_mac_suffix: true
esp8266:
board: esp01_1m
framework:
version: recommended
api:
captive_portal:
logger:
baud_rate: 0 # 和 UART 冲突,关闭日志
ota:
- platform: esphome
password: 123456
web_server:
port: 80
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
output_power: 19.8dB
fast_connect: true
ap:
password: "12345678"
ld2420:
uart:
rx_pin:
number: GPIO3
tx_pin:
number: GPIO1
baud_rate: 9600
sensor:
- platform: uptime
name: "${friendly_name} Uptime"
id: uptime_sensor
update_interval: 15s
- platform: ld2420
moving_distance:
name : Moving Distance
binary_sensor:
- platform: ld2420
has_target:
name: Presence
## 下面都是配置项,可以移除
select:
- platform: ld2420
operating_mode:
name: Operating Mode
number:
- platform: ld2420
presence_timeout:
name: Detection Presence Timeout
min_gate_distance:
name: Detection Gate Minimum
max_gate_distance:
name: Detection Gate Maximum
gate_select:
name: Select Gate to Set
still_threshold:
name: Set Still Threshold Value
move_threshold:
name: Set Move Threshold Value
gate_move_sensitivity:
name: Move Calibration Sensitivity Factor
gate_still_sensitivity:
name: Still Calibration Sensitivity Factor
gate_0:
move_threshold:
name: Gate 0 Move Threshold
still_threshold:
name: Gate 0 Still Threshold
gate_1:
move_threshold:
name: Gate 1 Move Threshold
still_threshold:
name: Gate 1 Still Threshold
gate_2:
move_threshold:
name: Gate 2 Move Threshold
still_threshold:
name: Gate 2 Still Threshold
gate_3:
move_threshold:
name: Gate 3 Move Threshold
still_threshold:
name: Gate 3 Still Threshold
button:
- platform: ld2420
apply_config:
name: Apply Config
factory_reset:
name: Factory Reset
restart_module:
name: Restart Module
revert_config:
name: Undo Edits