-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwine_minder.yaml
100 lines (86 loc) · 2.06 KB
/
wine_minder.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
# -------------------------------------
# ---- Implemented on ESP07 in Box ----
# -------------------------------------
substitutions:
devicename: wine_minder
esphome:
name: ${devicename}
platform: ESP8266
#board: esp07
board: esp01_1m
wifi:
#power_save_mode: light # power reduced from ?.?w to ?.?w
#fast_connect: true
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
hidden: True
manual_ip:
static_ip: !secret ip_wine_minder
gateway: !secret ip_gateway
subnet: 255.255.255.0
domain: .homelan
ap: # Enable fallback hotspot (captive portal) in case wifi connection fails
ssid: "${devicename} Hotspot"
password: !secret password
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
reboot_timeout: 0s # Dont reboot..
encryption:
key: !secret encryption_key
ota:
password: !secret password
web_server:
port: 80
auth:
username: admin
password: !secret password
sensor:
- platform: dht
pin: GPIO4
model: AM2302
temperature:
name: "${devicename} Outside Temperature"
humidity:
name: "${devicename} Outside Humidity"
update_interval: 1min
- platform: dht
pin: GPIO0
model: AM2302
temperature:
name: "${devicename} Bottom Temperature"
humidity:
name: "${devicename} Bottom Humidity"
id: humBot
update_interval: 5min
- platform: dht
pin: GPIO3
model: AM2302
temperature:
name: "${devicename} Top Temperature"
humidity:
name: "${devicename} Top Humidity"
id: humTop
update_interval: 5min
binary_sensor:
- platform: template
name: "${devicename} Bottom Problem"
device_class: moisture
lambda: |-
if (id(humBot).state >= 45 && id(humBot).state <= 55) {
return false;
} else {
return true;
}
- platform: template
name: "${devicename} Top Problem"
device_class: moisture
lambda: |-
if (id(humTop).state >= 45 && id(humTop).state <= 55) {
return false;
} else {
return true;
}