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"