Edit the-saloon.yaml

This commit is contained in:
ESPHome Device Builder 2026-10-22 11:37:01 +02:00
parent 7418fd4f7a
commit ffe6d283a6

View File

@ -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<float>() / 1048576.0f);
id(nas_ram_free).publish_state(root["available"].as<float>() / 1073741824.0f);
return true;
});
- http_request.get: