Files
HomeAssistant/PowerMonitor.Manager/Models/PowerMonitorOptions.cs
T
2026-06-28 13:58:35 +03:00

17 lines
765 B
C#

using PowerMonitorManager.Models.Consts;
namespace PowerMonitorManager.Models;
public sealed class PowerMonitorOptions
{
public const string SectionName = "PowerMonitor";
public bool Enabled { get; set; } = true;
public string MainMeterEntityId { get; set; } = string.Empty;
public int PollIntervalSeconds { get; set; } = PowerMonitorConsts.DefaultPollIntervalSeconds;
public int SmoothingWindowSize { get; set; } = PowerMonitorConsts.DefaultSmoothingWindowSize;
public double AnomalyThresholdWatts { get; set; } = PowerMonitorConsts.DefaultAnomalyThresholdWatts;
public string[] ExcludedSensorPatterns { get; set; } = [];
public double HighPowerThresholdWatts { get; set; } = PowerMonitorConsts.DefaultHighPowerThresholdWatts;
}