feat: migrate boiler control implementation to BoilerMonitor namespace and add budget handling logic

This commit is contained in:
Marius
2026-03-24 15:29:59 +02:00
parent c4015277a3
commit 11c2574235
61 changed files with 3250 additions and 728 deletions
-9
View File
@@ -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;
}