From ffe6d283a60bf41f962db6e520ad457c9f3bb0b9 Mon Sep 17 00:00:00 2001 From: ESPHome Device Builder Date: Thu, 22 Oct 2026 11:37:01 +0200 Subject: [PATCH] Edit the-saloon.yaml --- the-saloon.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/the-saloon.yaml b/the-saloon.yaml index 00c494c..cc69506 100644 --- a/the-saloon.yaml +++ b/the-saloon.yaml @@ -71,7 +71,7 @@ display: lambda: |- // RAM if (id(nas_ram_free).has_state()) - it.printf(10, 36, id(roboto_big), "%.1f GB", id(nas_ram_free).state / 1024); + it.printf(10, 36, id(roboto_big), "%.1f GB", id(nas_ram_free).state); // Disk bar if (id(nas_disk_percent).has_state()) { @@ -99,7 +99,7 @@ sensor: - platform: template id: nas_ram_free name: "NAS RAM libre" - unit_of_measurement: "MB" + unit_of_measurement: "GB" accuracy_decimals: 0 state_class: measurement - platform: template @@ -119,7 +119,7 @@ interval: then: - lambda: |- json::parse_json(body, [](JsonObject root) -> bool { - id(nas_ram_free).publish_state(root["available"].as() / 1048576.0f); + id(nas_ram_free).publish_state(root["available"].as() / 1073741824.0f); return true; }); - http_request.get: