From c79bdd8ca1d0ed77d27126e4e41de9578b52709a Mon Sep 17 00:00:00 2001 From: ESPHome Device Builder Date: Thu, 22 Oct 2026 12:24:34 +0200 Subject: [PATCH] Edit the-saloon.yaml --- the-saloon.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/the-saloon.yaml b/the-saloon.yaml index cc69506..a9cc6ea 100644 --- a/the-saloon.yaml +++ b/the-saloon.yaml @@ -71,16 +71,15 @@ display: lambda: |- // RAM if (id(nas_ram_free).has_state()) - it.printf(10, 36, id(roboto_big), "%.1f GB", id(nas_ram_free).state); + it.printf(10, 10, id(roboto), "%.1f GB", id(nas_ram_free).state); // Disk bar if (id(nas_disk_percent).has_state()) { float pct = id(nas_disk_percent).state; 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.rectangle(x, y, w, h, Color(255, 255, 255)); it.filled_rectangle(x + 2, y + 2, (int)((w - 4) * pct / 100.0f), h - 4, c); - it.printf(w - 30, 105, id(roboto), TextAlign::TOP_RIGHT, "%.0f%%", pct); + it.printf(10, 105, id(roboto), TextAlign::TOP_RIGHT, "%.0f%%", pct); } font: