-
Notifications
You must be signed in to change notification settings - Fork 4
/
example.yml
57 lines (46 loc) · 1.01 KB
/
example.yml
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
esphome:
name: ble-pinpad-example
esp32:
board: esp32dev
external_components:
- source:
type: local
path: components
components: [ esp32_ble_pinpad ]
output:
- platform: ledc
pin: GPIO2
id: onboard_status_led
esp32_ble_pinpad:
status_indicator: onboard_status_led
security_mode: hotp
secret_passcode: changeme
on_pinpad_accepted:
- logger.log: "Rad! Correct pin was given!"
on_pinpad_rejected:
- logger.log: "Bummer! Incorrect pin was given."
# Enable logging
logger:
level: VERBOSE
logs:
esp32_ble_pinpad.component: VERBOSE
# Enable Home Assistant API
api:
password: ""
ota:
password: ""
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: !secret fallback_wifi_ssid
password: !secret fallback_wifi_password
captive_portal:
time:
- platform: sntp
id: sntp_time
servers:
- 0.pool.ntp.org
- 1.pool.ntp.org
- 2.pool.ntp.org