Various changes to layout and sensors.

This commit is contained in:
Marcus Scholz 2021-12-02 15:23:28 +01:00
parent 75c7c918fe
commit a54654226b
1 changed files with 347 additions and 320 deletions

View File

@ -50,6 +50,22 @@ binary_sensor:
format: 'Button pressed, refreshing screen!'
- component.update: epaper
# Switch to next page
- platform: gpio
pin:
number: GPIO13
mode: INPUT_PULLUP
inverted: True
name: "Next page"
internal: True
on_click:
then:
- logger.log:
level: INFO
format: 'Button pressed, rendering next page!'
- display.page.show_next: epaper
- component.update: epaper
# DHT22 sensor
sensor:
- platform: dht
@ -268,6 +284,11 @@ font:
'󰀦' # mdi-alert
]
image:
- file: "epaperframe/C1024_logo_flat.png"
id: c1024_logo
type: binary
spi:
clk_pin: 23
mosi_pin: 32
@ -282,6 +303,8 @@ display:
model: 7.50in
# full_update_every: 30 # not supported on this display
update_interval: never
pages:
- id: environment
lambda: |-
int pm25_danger_thres = 40;
@ -634,3 +657,7 @@ display:
ESP_LOGI("WiFi", "Unlikely");
}
}
- id: logo
lambda: |-
it.image(1, 48, id(c1024_logo));