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
@@ -0,0 +1,15 @@
namespace BoilerMonitorManager.Models;
public record BoilerMonitorConfig
{
public string? BoilerPowerEntityId { get; init; }
public string? BoilerSwitchEntityId { get; init; }
public int? PollIntervalSeconds { get; init; }
public double? HeatingPowerThresholdWatts { get; init; }
public bool IsFullyConfigured =>
!string.IsNullOrWhiteSpace(BoilerPowerEntityId) &&
!string.IsNullOrWhiteSpace(BoilerSwitchEntityId) &&
PollIntervalSeconds is > 0 &&
HeatingPowerThresholdWatts is > 0;
}