From eadb67b2fc3350823f047504b394dee1d343dbde Mon Sep 17 00:00:00 2001 From: Joshua King Date: Wed, 4 Mar 2026 19:44:45 -0500 Subject: [PATCH] Enhance boot sequence: turn on backlight and execute display update script; adjust touchscreen update interval to 100ms --- esphome/cat-medication-tracker.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/esphome/cat-medication-tracker.yaml b/esphome/cat-medication-tracker.yaml index 0fec6bd..7f04e0c 100644 --- a/esphome/cat-medication-tracker.yaml +++ b/esphome/cat-medication-tracker.yaml @@ -5,6 +5,12 @@ substitutions: esphome: name: ${name} friendly_name: ${friendly_name} + on_boot: + - priority: -10 + then: + - light.turn_on: backlight + - delay: 1s + - script.execute: update_display esp32: board: esp32dev @@ -13,6 +19,7 @@ esp32: # Enable logging logger: + level: INFO # Enable Home Assistant API api: @@ -70,6 +77,7 @@ display: height: 320 id: my_display auto_clear_enabled: false + update_interval: never color_palette: 8BIT lambda: |- // Colors @@ -136,7 +144,7 @@ touchscreen: id: my_touchscreen spi_id: tft_spi cs_pin: GPIO33 - update_interval: 50ms + update_interval: 100ms threshold: 400 calibration: x_min: 280 @@ -259,4 +267,4 @@ font: - file: "gfonts://Roboto" id: status_font - size: 14 \ No newline at end of file + size: 14