Compare commits

..

2 Commits

2 changed files with 26 additions and 41 deletions

View File

@ -1 +1 @@
2021.12.7 2021.12.10

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:
- timing:
- ON for at most 1s
- OFF for at most 0.3s
- ON for at most 1s
- OFF for at least 0.2s
then: then:
- logger.log: - logger.log:
level: INFO level: INFO
format: 'Button pressed, refreshing screen!' format: 'Button doubleclick, rendering next page!'
- 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 - display.page.show_next: epaper
- component.update: 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
# 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