24729ee267
- 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
37 lines
1.7 KiB
C#
37 lines
1.7 KiB
C#
namespace PowerMonitorManager.Models.Consts;
|
|
|
|
public static class PowerMonitorConsts
|
|
{
|
|
public const int DefaultPollIntervalSeconds = 15;
|
|
public const int DefaultSmoothingWindowSize = 10;
|
|
public const double DefaultAnomalyThresholdWatts = 500.0;
|
|
public const int SecondsPerHour = 3600;
|
|
public const double WattsPerKilowatt = 1000.0;
|
|
|
|
public const string PowerDeviceClass = "power";
|
|
public const string WattUnit = "W";
|
|
public const string KilowattUnit = "kW";
|
|
public const string EurUnit = "EUR";
|
|
public const string MonetaryDeviceClass = "monetary";
|
|
public const string TotalStateClass = "total";
|
|
public const string MeasurementStateClass = "measurement";
|
|
|
|
public const int MainMeterMaxConsecutiveFailures = 5;
|
|
|
|
public const double DefaultHighPowerThresholdWatts = 6000.0;
|
|
|
|
public const double DefaultPowerLimitWatts = 5500.0;
|
|
public const int DefaultRecoverySeconds = 600;
|
|
public const int DefaultLimitCooldownSeconds = 30;
|
|
|
|
public const string HighPowerNotificationId = "power_monitor_high_power";
|
|
public const string HighPowerNotificationTitle = "High Power Usage Alert";
|
|
public const string PowerLimitNotificationId = "power_monitor_power_limit";
|
|
public const string PowerLimitNotificationTitle = "Power Limit Enforced";
|
|
public const string PersistentNotificationDomain = "persistent_notification";
|
|
public const string PersistentNotificationCreateService = "create";
|
|
public const string PersistentNotificationDismissService = "dismiss";
|
|
public const string SwitchDomain = "switch";
|
|
public const string TurnOnService = "turn_on";
|
|
public const string TurnOffService = "turn_off";
|
|
} |