From cd08c25fe77f2b13b988ff523053c8173805c9c5 Mon Sep 17 00:00:00 2001 From: ZareMate <0.zaremate@gmail.com> Date: Tue, 4 Feb 2025 08:33:53 +0100 Subject: [PATCH] Add web server configuration and light button binary sensor to display.yaml --- display.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/display.yaml b/display.yaml index c23e4b2..5d8920a 100644 --- a/display.yaml +++ b/display.yaml @@ -27,6 +27,9 @@ wifi: ap: ssid: "Display Fallback Hotspot" password: "ajRx8MZPIszl" + +web_server: + spi: clk_pin: 18 @@ -246,6 +249,20 @@ text_sensor: entity_id: switch.3d_printer_light id: printer_light + +binary_sensor: + - platform: gpio + pin: 14 + name: "light_button" + internal: true + on_press: + then: + - logger.log: "Button pressed" + - homeassistant.service: + action: switch.toggle + data: + entity_id: switch.3d_printer_light + font: - id: my_font file: "fonts/Roboto.ttf"