Update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user