From 07c9dca64937ebc441a9b65dd6d4a80321b0abd5 Mon Sep 17 00:00:00 2001 From: ESPHome Device Builder Date: Thu, 22 Oct 2026 22:27:40 +0200 Subject: [PATCH] Edit the-saloon.yaml --- the-saloon.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/the-saloon.yaml b/the-saloon.yaml index 92cec74..5565199 100644 --- a/the-saloon.yaml +++ b/the-saloon.yaml @@ -82,9 +82,10 @@ display: int x = 10, y = 135, w = 300, h = 22; Color c = pct > 90 ? Color(255, 0, 0) : (pct > 75 ? Color(255, 165, 0) : Color(0, 200, 0)); it.filled_rectangle(x + 2, y + 2, (int)((w - 4) * pct / 100.0f), h - 4, c); - it.printf(10, 105, id(roboto), "%.1f%%", pct); + it.printf(10, 50, id(roboto), "%.1f%%", pct); } - + + it.printf(10, 105, id(roboto), id(lights_str)); script: - id: update_brightness then: