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
									
									
									
									
									
								
							| @ -28,6 +28,9 @@ wifi: | |||||||
|     ssid: "Display Fallback Hotspot" |     ssid: "Display Fallback Hotspot" | ||||||
|     password: "ajRx8MZPIszl" |     password: "ajRx8MZPIszl" | ||||||
| 
 | 
 | ||||||
|  | web_server: | ||||||
|  | 
 | ||||||
|  |      | ||||||
| spi: | spi: | ||||||
|   clk_pin: 18 |   clk_pin: 18 | ||||||
|   mosi_pin: 23 |   mosi_pin: 23 | ||||||
| @ -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" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user