@switch (Replay.Status)
{
case ReplayStatus.FetchingHistory:
@(Replay.ProgressMessage ?? "Fetching history data from Home Assistant...")
break;
case ReplayStatus.Running:
@(Replay.ProgressMessage ?? "Running replay...")
break;
case ReplayStatus.Completed:
Replay completed -- @Replay.Timeline.GetAllEvents().Count event(s)
break;
case ReplayStatus.Failed:
Replay failed: @Replay.ErrorMessage
break;
}
@if (Replay.Status == ReplayStatus.Completed)
{
@if (_activeTab == NordPoolTab)
{
}
else if (_activeTab == BoilerTab)
{
}
else if (_activeTab == ShowerTab)
{
}
else if (_activeTab == PowerTab)
{
}
else if (_activeTab == LightTab)
{
}
else if (_activeTab == ServiceCallsTab)
{
}
}
@code {
private const string NordPoolTab = "NordPool";
private const string BoilerTab = "Boiler";
private const string ShowerTab = "Shower";
private const string PowerTab = "Power";
private const string LightTab = "Light";
private const string ServiceCallsTab = "ServiceCalls";
private const string ServiceCallMonitor = "ServiceCall";
private DateTime _startTime = DateTime.Today.AddDays(-1);
private DateTime _endTime = DateTime.Today.AddHours(23).AddMinutes(59);
private readonly ReplayMonitorFlags _monitors = new();
private bool _isRunning;
private string _activeTab = NordPoolTab;
private IReadOnlyList