-
Notifications
You must be signed in to change notification settings - Fork 0
/
basement-temperature.yaml
104 lines (91 loc) · 2.13 KB
/
basement-temperature.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
esphome:
name: basement-temperature
platform: ESP32
board: nodemcu-32s
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
web_server:
port: 80
one_wire:
- platform: gpio
pin: GPIO27
sensor:
- platform: dallas_temp
address: 0x853C01D0753EEC28
name: Temperature 1
id: temperature_1
update_interval: 30s
- platform: dallas_temp
address: 0xBA3C01D07500BD28
name: Temperature 2
id: temperature_2
update_interval: 30s
- platform: dallas_temp
address: 0x913C01D07573F128
name: Temperature 3
id: temperature_3
update_interval: 30s
- platform: dallas_temp
address: 0x3B3C01D075164328
name: Temperature 4
id: temperature_4
update_interval: 30s
- platform: dallas_temp
address: 0xf63ce1d443237728
name: Water to Gas Heater
id: water_to_gas_heater
update_interval: 30s
spi:
clk_pin: GPIO18
mosi_pin: GPIO19
output:
- platform: ledc
pin: GPIO4
id: backlight_pwm
channel: 2
font:
- id: l
file: "fonts/BebasNeue-Regular.ttf"
size: 86
display:
- id: temperature_display
platform: ili9xxx
model: ST7789V
#TTGO TDisplay 135x240
dimensions:
height: 240
width: 135
offset_height: 40
offset_width: 52
cs_pin: GPIO5
dc_pin: GPIO16
reset_pin: GPIO23
rotation: 270°
invert_colors: true
pages:
- lambda: |-
it.printf(20, 20, id(l), "1: %.1f°", id(temperature_1).state);
- lambda: |-
it.printf(20, 20, id(l), "2: %.1f°", id(temperature_2).state);
- lambda: |-
it.printf(20, 20, id(l), "3: %.1f°", id(temperature_3).state);
- lambda: |-
it.printf(20, 20, id(l), "4: %.1f°", id(temperature_4).state);
- lambda: |-
it.printf(20, 20, id(l), "5: %.1f°", id(water_to_gas_heater).state);
interval:
- interval: 10s
then:
- display.page.show_next: temperature_display
- component.update: temperature_display
light:
- platform: monochromatic
output: backlight_pwm
name: "Display Backlight"
id: back_light
restore_mode: ALWAYS_ON
logger:
api:
ota:
platform: esphome