Detect idle Create boilers without water

This commit is contained in:
2026-07-16 21:18:36 +02:00
parent 543385a880
commit 2eea78980e
2 changed files with 8 additions and 2 deletions
+2
View File
@@ -34,6 +34,8 @@ create_boiler_display
Das Programm liest Online-Status und Heizmodus jedes Boilers ueber dessen Block Reader.
Drehzahl, Kapazitaet, Verbrauch und Auslastung liest es aus den Netzwerkdaten des Gauge-Readers.
Die Monitoraufloesung wird automatisch erkannt und die groesste passende Textskalierung gewaehlt.
Ein Boiler ohne Wasserversorgung oder angeschlossene Engine wird als IDLE angezeigt, selbst wenn
eine Campfire- oder Blaze-Burner-Waermequelle erkannt wird.
Die Boiler-Zuordnung erfolgt nach den internen Peripheral-Namen; die drei Block Reader sollten
deshalb in der Reihenfolge Boiler 1 bis 3 an das Wired Network angeschlossen werden. Jeder Block
Reader muss auf den Controller-Tank des zugeordneten Boiler-Multiblocks zeigen.
+6 -2
View File
@@ -100,11 +100,15 @@ local function readBoiler(entry)
local supply = tonumber(getValueIgnoringCase(boiler, { "Supply", "waterSupply" })) or 0
local engines = tonumber(getValueIgnoringCase(boiler, { "Engines", "attachedEngines" })) or 0
-- A heat source alone does not make the boiler operational. Create reports
-- PassiveHeat even when a campfire boiler has no water and is IDLE.
if supply <= 0 then return "IDLE", "NO WATER", colors.red end
if engines <= 0 then return "IDLE", "NO ENGINE", colors.red end
if passive > 0 then return "ONLINE", "CAMPFIRE", colors.lime end
if heat >= 18 then return "ONLINE", "SUPERHEATED", colors.lime end
if heat > 0 then return "ONLINE", "HEATED", colors.lime end
if engines > 0 and supply > 0 then return "STANDBY", "NO HEAT", colors.orange end
return "STANDBY", "COLD", colors.orange
return "IDLE", "NO HEAT", colors.orange
end
local function readMainShaft(entry)