From 3b209ec96d0ebc446d7576f3d1d425465130ecdf Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sat, 9 Apr 2022 19:37:25 +0200 Subject: [PATCH] Added 2 buttons, which enable next screen / refresh vom HA. --- esphome/epaperframe.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/esphome/epaperframe.yaml b/esphome/epaperframe.yaml index acf8d30..1340db5 100644 --- a/esphome/epaperframe.yaml +++ b/esphome/epaperframe.yaml @@ -75,6 +75,28 @@ binary_sensor: format: 'Button click, refreshing screen!' - component.update: epaper +# HA pushbutton configuration +button: + - platform: template + name: Refresh screen + id: refresh_button + icon: "mdi:refresh" + on_press: + - logger.log: + level: INFO + format: 'HA Button click, refreshing screen!' + - component.update: epaper + - platform: template + name: Next screen + id: next_button + icon: "mdi:skip-next" + on_press: + - logger.log: + level: INFO + format: 'HA Button click, rendering next page!' + - display.page.show_next: epaper + - component.update: epaper + sensor: # WiFi signal strength - platform: wifi_signal