Add web server configuration and light button binary sensor to display.yaml

This commit is contained in:
ZareMate 2025-02-04 08:33:53 +01:00
parent 97a5eae2d8
commit cd08c25fe7
Signed by: zaremate
GPG Key ID: 369A0E45E03A81C3

View File

@ -27,6 +27,9 @@ wifi:
ap: ap:
ssid: "Display Fallback Hotspot" ssid: "Display Fallback Hotspot"
password: "ajRx8MZPIszl" password: "ajRx8MZPIszl"
web_server:
spi: spi:
clk_pin: 18 clk_pin: 18
@ -246,6 +249,20 @@ text_sensor:
entity_id: switch.3d_printer_light entity_id: switch.3d_printer_light
id: 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: font:
- id: my_font - id: my_font
file: "fonts/Roboto.ttf" file: "fonts/Roboto.ttf"