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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user