-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwemos-d1-mini.yaml
63 lines (53 loc) · 1.18 KB
/
wemos-d1-mini.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
esphome:
name: wemos_d1
platform: ESP8266
board: d1_mini
wifi:
ssid: '<wifi_nazev>'
password: '<wifi_heslo>'
logger:
api:
ota:
i2c:
sda: D1
scl: D2
scan: True
sensor:
- platform: bme280
temperature:
name: "BME Teplota"
oversampling: 16x
id: bme_temp
pressure:
name: "BME Tlak"
id: bme_press
humidity:
name: "BME Vlhkost"
id: bme_humid
address: 0x76
update_interval: 60s
- platform: sht3xd
temperature:
id: sht31_temp
name: "SHT31 Teplota"
humidity:
id: sht31_humid
name: "SHT31 Vlhkost"
address: 0x44
update_interval: 60s
web_server:
port: 80
font:
- file: "PTM55FT.ttf"
id: font
size: 10
display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
address: 0x3C
lambda: |-
it.printf(0, 10, id(font), "Teplota je %.1f°C", id(sht31_temp).state);
it.printf(0, 20, id(font), "Vlhkost je %.0f%% ", id(sht31_humid).state);
it.printf(0, 30, id(font), "Teplota je %.1f°C", id(bme_temp).state);
it.printf(0, 40, id(font), "Vlhkost je %.0f%% ", id(bme_humid).state);
it.printf(0, 50, id(font), "Tlak je %.1f hPa", id(bme_press).state);