-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharbeitszimmer-klima.yaml
112 lines (96 loc) · 2.26 KB
/
arbeitszimmer-klima.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
101
102
103
104
105
106
107
108
109
110
111
112
esphome:
name: arbeitszimmerklima
platform: ESP8266
board: d1_mini
on_boot:
- switch.turn_off: onboardled
wifi:
ssid: "add your own ssid"
password: "add your own password"
reboot_timeout: 18000s
manual_ip:
static_ip: 192.168.xx.yyy
gateway: 192.168.16.1
subnet: 255.255.255.0
dns1: 192.168.16.1
dns2: 8.8.8.8
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Arbeitszimmerklima"
password: "0DdCkdYrhZqp"
mqtt:
broker: 192.168.16.42
username: lancremqttuser
password: NjQ2MWZj
discovery: True
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
reboot_timeout: 18000s
ota:
i2c:
sda: D2
scl: D1
scan: False
switch:
- platform: gpio
pin: GPIO2
name: "Wemos LED"
id: onboardled
inverted: true
sensor:
- platform: bme280
temperature:
name: "Arbeitszimmer Temperatur"
id: temperature
oversampling: 16x
pressure:
name: "Arbeitszimmer Luftdruck"
id: pressure
humidity:
name: "Arbeitszimmer Luftfeuchtigkeit"
id: humidity
address: 0x76
update_interval: 300s
- platform: adc
pin: A0
id: battery
name: "Arbeitszimmer Klima Battery"
update_interval: 600s
unit_of_measurement: "%"
filters:
- lambda: |-
if (x >= 0) return ((x*4.2) - 3.2)*100.0;
else return 0;
time:
- platform: sntp
id: sntp_time
font:
- file: "OpenSansBold.ttf"
id: my_font
size: 20
- file: "OpenSansBold.ttf"
id: my_font_b
size: 30
spi:
clk_pin: D5
mosi_pin: D7
display:
- platform: waveshare_epaper
cs_pin: D8
dc_pin: D0
busy_pin: D6
reset_pin: D3
model: 1.54in
update_interval: 60s
full_update_every: 60
rotation: 90
lambda: |-
if (id(battery).state >= 0) it.printf(10, 20, id(my_font), "Schreibtisch %.0f%%", id(battery).state);
else it.printf(10, 20, id(my_font), "Schreibtisch %.0f%%", 0.0);
it.strftime(10, 40, id(my_font), "%H:%M %d.%m.%y", id(sntp_time).now());
it.printf(10, 90, id(my_font_b), "T: %.0f°C", id(temperature).state);
it.printf(10, 130, id(my_font_b), "H: %.0f%%", id(humidity).state);
it.printf(10, 170, id(my_font_b), "P: %.0f mbar", id(pressure).state);