-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathesphome_code.yaml
52 lines (42 loc) · 1.26 KB
/
esphome_code.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
esphome:
name: esp-waterlevel
comment: "Check Water-Level in water tank"
esp32:
board: esp32dev # Change to fit your Board
framework:
type: arduino # Change to fit your Board
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "<PUT_ENCRYPTION_KEY_HERE>" # Put in your own encryption-key or use the one esphome creates for you
ota:
password: "<PUT_OTA_PASSWORD_HERE>" # Put you own OTA-Password here or use the one esphome creates for you
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp-Waterlevel Fallback Hotspot"
password: "<PUT_FALLBACK_PASSWORD_HERE>" # Put your Fallback-Password here or use the one esphome creates for you
captive_portal:
web_server:
local: true
binary_sensor:
- platform: gpio
pin: GPIO19 # Change this to the PIN you use on your Board
name: "Moisture Sensor Top"
device_class: moisture
filters:
- delayed_on: 10ms
- delayed_off: 200ms
- invert:
- platform: gpio
pin: GPIO18 # Change this to the PIN you use on your Board
name: "Moisture Sensor Bottom"
device_class: moisture
filters:
- delayed_on: 10ms
- delayed_off: 200ms
- invert: