Add input_boolean for water heater preparation logic

Refreshed logic to allow users to toggle hot water preparation. Introduced new `input_boolean.boiler_prepare_hot_water` and updated config, services, and tests to ensure water readiness only when required.
This commit is contained in:
Marius
2026-03-16 11:42:49 +02:00
parent 5cc0ab29a6
commit 53eb53539a
13 changed files with 434 additions and 39 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
namespace NordPoolManager.Models;
namespace NordPoolManager.Models;
public class BoilerConfig
{
public int IntervalCount { get; set; }
public double PriceCap { get; set; }
public DateTime Deadline { get; set; }
public bool SkipPriceCap { get; set; }
}
@@ -15,6 +15,7 @@ public record EntityUpdateContext
public required double ConfiguredHours { get; init; }
public required int ConfiguredIntervalCount { get; init; }
public required double ConfiguredPriceCap { get; init; }
public required bool SkipPriceCap { get; init; }
public required string? ConfiguredReadyBy { get; init; }
public required bool IsNowCheap { get; init; }
public required DateTime? NextCheapIntervalStart { get; init; }