Files
HomeAssistant/PowerMonitor.Manager/Models/PowerMonitorOptions.cs
T
gitea_admin 24729ee267 Apply code formatting cleanup across monitor projects
- Reindent appsettings.json and the MSBuild project files
- Collapse single-statement guard blocks and tidy using and member order
- Normalize XML doc indentation and file endings
- Reorder BatteryMonitor test-data helpers and move the exclusion tests into
  their own region
- Carry the same formatting through the boiler config, control, entity and
  test files
2026-11-30 11:52:06 +02:00

23 lines
1.2 KiB
C#

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