Refactor boot sequence: adjust on_boot priority and delay for backlight; change display update interval to 2s; set logger level to DEBUG
This commit is contained in:
@@ -6,11 +6,11 @@ esphome:
|
||||
name: ${name}
|
||||
friendly_name: ${friendly_name}
|
||||
on_boot:
|
||||
- priority: -10
|
||||
then:
|
||||
- light.turn_on: backlight
|
||||
- delay: 1s
|
||||
- component.update: my_display
|
||||
priority: 100
|
||||
then:
|
||||
- light.turn_on: backlight
|
||||
- delay: 500ms
|
||||
- component.update: my_display
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
@@ -19,7 +19,7 @@ esp32:
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
level: INFO
|
||||
level: DEBUG
|
||||
logs:
|
||||
xpt2046: WARN
|
||||
|
||||
@@ -79,7 +79,7 @@ display:
|
||||
height: 320
|
||||
id: my_display
|
||||
auto_clear_enabled: false
|
||||
update_interval: never
|
||||
update_interval: 2s
|
||||
color_palette: 8BIT
|
||||
lambda: |-
|
||||
// Colors
|
||||
@@ -222,6 +222,12 @@ light:
|
||||
id: backlight
|
||||
restore_mode: ALWAYS_ON
|
||||
|
||||
# Keep display drawing if boot timing is tight
|
||||
interval:
|
||||
- interval: 2s
|
||||
then:
|
||||
- component.update: my_display
|
||||
|
||||
# Medication state switches (exposed to Home Assistant)
|
||||
switch:
|
||||
- platform: template
|
||||
|
||||
Reference in New Issue
Block a user