-
Notifications
You must be signed in to change notification settings - Fork 1
/
driveway_monitor.yaml
76 lines (65 loc) · 1.46 KB
/
driveway_monitor.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
esphome:
name: driveway_monitor
platform: ESP32
board: nodemcu-32s
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Driveway Monitor"
password: !secret hotspot_pass
#mqtt:
# broker: !secret mqtt_broker
# username: !secret mqtt_user
# password: !secret mqtt_pass
captive_portal:
web_server:
port: 80
# Enable logging
logger:
# Enable Home Assistant API
#api:
# password: !secret esphome_password
ota:
password: !secret esphome_password
binary_sensor:
- platform: gpio
pin:
number: GPIO25
inverted: True
mode: INPUT_PULLUP
name: "Driveway Monitor Power"
device_class: power
- platform: gpio
pin:
number: GPIO26
inverted: True
mode: INPUT_PULLUP
name: "Driveway Monitor Visitor"
device_class: door
- platform: gpio
pin:
number: GPIO27
inverted: True
mode: INPUT_PULLUP
name: "Driveway Monitor Battery Low"
device_class: battery
switch:
- platform: gpio
pin: 17
inverted: True
id: driveway_relay
# name: "Driveway Monitor Relay"
- platform: template
name: "Driveway Monitor Reset"
icon: "mdi:electric-switch"
turn_on_action:
- switch.turn_on: driveway_relay
- delay: 500ms
- switch.turn_off: driveway_relay
esp32_ble_beacon:
type: iBeacon
uuid: '08aefa77-f322-8c05-128a-47288f860293'
major: 10167
minor: 61958