-
Notifications
You must be signed in to change notification settings - Fork 0
/
heatbuffer.yaml
95 lines (82 loc) · 1.75 KB
/
heatbuffer.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
esphome:
name: termostat_bufora
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
password: ""
ota:
password: ""
wifi:
ssid: "realme 8 Pro"
password: "dupa1234"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Termostat Bufora"
password: "BpqkX634mwBV"
captive_portal:
#//
font:
- file: "arial.ttf"
id: arial
size: 10
i2c:
sda: D2
scl: D1
display:
- platform: ssd1306_i2c
model: "SSD1306 64x48"
reset_pin: D0
address: 0x3C
lambda: |-
it.printf(0, 0, id(arial), "Top : %.1f °C", id(upperTemp).state);
it.printf(0, 9, id(arial), "Bot.: %.1f °C", id(lowerTemp).state);
it.printf(0, 18, id(arial), "SET: %.1f °C", id(targetTemp).state);
it.printf(0, 27, id(arial), "set: %.1f °C", id(minimalTemp).state);
it.printf(0, 36, id(arial), "Relay: %s", "ON");
number:
- platform: template
name: "Temperatura zadana"
id: "targetTemp"
restore_value: True
initial_value: 75
optimistic: True
min_value: 40
max_value: 80
step: 1
- platform: template
name: "Temperatura minimalna"
id: "minimalTemp"
optimistic: True
restore_value: True
initial_value: 35
min_value: 30
max_value: 45
step: 1
- platform: template
name: "Temperatura maksymalna"
id: "maximalTemp"
optimistic: True
restore_value: True
initial_value: 75
min_value: 75
max_value: 85
step: 1
dallas:
- pin: D3
update_interval: 2s
sensor:
- platform: dallas
index: 0
name: "Sensor górny"
id: "upperTemp"
- platform: dallas
index: 1
name: "Sensor dolny"
id: "lowerTemp"
output:
- platform: gpio
pin: D4
id: gpio_relay