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