feat: migrate boiler control implementation to BoilerMonitor namespace and add budget handling logic
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
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; }
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace NordPoolManager.Models.Consts;
|
||||
|
||||
public static class PriceConsts
|
||||
{
|
||||
public const int MaxDailyIntervals = 96;
|
||||
public const int IntervalsPerHour = 4;
|
||||
}
|
||||
@@ -19,7 +19,4 @@ public record EntityUpdateContext
|
||||
public required string? ConfiguredReadyBy { get; init; }
|
||||
public required bool IsNowCheap { get; init; }
|
||||
public required DateTime? NextCheapIntervalStart { get; init; }
|
||||
public required bool WaterReady { get; init; }
|
||||
public required string? BoilerSwitchState { get; init; }
|
||||
public required double? BoilerPowerWatts { get; init; }
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace NordPoolManager.Models.Enums;
|
||||
|
||||
public enum BoilerAction
|
||||
{
|
||||
NoChange,
|
||||
TurnOn,
|
||||
TurnOff
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace NordPoolManager.Models;
|
||||
|
||||
public sealed class NordPoolOptions
|
||||
{
|
||||
public const string SectionName = "NordPool";
|
||||
|
||||
/// <summary>
|
||||
/// When true, removes existing NordPool MQTT entities before recreating them on app startup.
|
||||
/// </summary>
|
||||
public bool CleanupEntitiesOnStartup { get; init; } = true;
|
||||
}
|
||||
Reference in New Issue
Block a user