Add web server configuration and light button binary sensor to display.yaml
This commit is contained in:
parent
97a5eae2d8
commit
cd08c25fe7
17
display.yaml
17
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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user