This commit is contained in:
2026-06-28 13:58:35 +03:00
parent 8f45028715
commit e6bf8258bb
114 changed files with 4365 additions and 874 deletions
@@ -4,5 +4,10 @@ namespace BoilerMonitorManager.Interface;
public interface IBoilerControlService
{
BoilerAction DetermineAction(bool isNowCheap, bool waterReady, string? currentSwitchState, bool budgetExhausted, bool budgetOverride);
BoilerAction DetermineAction(
bool isNowCheap,
bool waterReady,
string? currentSwitchState,
bool budgetExhausted,
bool budgetOverride);
}
@@ -1,3 +1,4 @@
using BoilerMonitor.Models;
using BoilerMonitorManager.Models;
namespace BoilerMonitorManager.Interface;
@@ -11,4 +12,5 @@ public interface IBoilerMonitorEntityService
Task CleanupEntitiesAsync(CancellationToken cancellationToken = default);
Task SetStatusAsync(string status);
PersistedBoilerState? ReadPersistedState();
DateTimeOffset? ReadPersistedCooldownTimestamp();
}
@@ -4,6 +4,9 @@ public interface IWaterReadyService
{
bool IsWaterReady(string? switchState, double? powerWatts, double heatingThresholdWatts);
bool IsInCooldown { get; }
DateTimeOffset? WaterReadySince { get; }
void NotifyTurnedOn();
void RecordHeatingObserved();
void ResetCooldown();
void RestoreCooldownState(DateTimeOffset waterReadySince);
}