Shifted GPIOs around for final breakout board. Removed a pushbutton. Click/doubleclick for 1 button.

This commit is contained in:
Marcus Scholz 2022-02-02 23:43:34 +01:00
parent 8d6c5737b0
commit 1d32067ef8

View File

@ -43,32 +43,28 @@ binary_sensor:
inverted: True inverted: True
name: "Refresh screen" name: "Refresh screen"
internal: True internal: True
on_click: on_multi_click:
then: - timing:
- logger.log: - ON for at most 1s
level: INFO - OFF for at most 0.3s
format: 'Button pressed, refreshing screen!' - ON for at most 1s
- component.update: epaper - OFF for at least 0.2s
then:
- logger.log:
level: INFO
format: 'Button doubleclick, rendering next page!'
- display.page.show_next: epaper
- component.update: epaper
- timing:
- ON for at most 1s
- OFF for at least 0.5s
then:
- logger.log:
level: INFO
format: 'Button click, 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: sensor:
# WiFi signal strength # WiFi signal strength
- platform: wifi_signal - platform: wifi_signal
name: "WiFi Signalstärke" name: "WiFi Signalstärke"
@ -165,17 +161,6 @@ text_sensor:
entity_id: sensor.wohnzimmer_feinstaub_warnstufe entity_id: sensor.wohnzimmer_feinstaub_warnstufe
id: wzpm id: wzpm
# Webserver configuration
web_server:
port: 80
# css_include: "esphome-docs/_static/webserver-v1.min.css"
# css_url: ""
# js_include: "../../../esphome-docs/_static/webserver-v1.min.js"
# js_url: ""
auth:
username: admin
password: !secret web_server_password
time: time:
- platform: homeassistant - platform: homeassistant
id: homeassistant_time id: homeassistant_time
@ -312,15 +297,15 @@ image:
spi: spi:
clk_pin: 23 clk_pin: 23
mosi_pin: 32 mosi_pin: 22
display: display:
- platform: waveshare_epaper - platform: waveshare_epaper
id: epaper id: epaper
cs_pin: 27 cs_pin: 19
dc_pin: 26 dc_pin: 21
busy_pin: 33 busy_pin: 16
reset_pin: 25 reset_pin: 17
model: 7.50in model: 7.50in
# full_update_every: 30 # not supported on this display # full_update_every: 30 # not supported on this display
update_interval: never update_interval: never