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
This commit is contained in:
@@ -5,27 +5,21 @@ public static class BoilerMonitorConsts
|
||||
public const int DefaultPollIntervalSeconds = 30;
|
||||
|
||||
/// <summary>
|
||||
/// Power threshold in watts below which the boiler is considered to have finished heating (water ready).
|
||||
/// Also used as the default threshold above which the boiler is considered actively heating.
|
||||
/// Power threshold in watts below which the boiler is considered to have finished heating (water ready).
|
||||
/// Also used as the default threshold above which the boiler is considered actively heating.
|
||||
/// </summary>
|
||||
public const double DefaultHeatingPowerThresholdWatts = 5.0;
|
||||
|
||||
/// <summary>
|
||||
/// Number of consecutive below-threshold power readings required before
|
||||
/// declaring water as ready. Prevents false positives from transient sensor glitches.
|
||||
/// At 30s poll interval, a value of 2 means 60s of confirmed low power.
|
||||
/// Number of consecutive below-threshold power readings required before
|
||||
/// declaring water as ready. Prevents false positives from transient sensor glitches.
|
||||
/// At 30s poll interval, a value of 2 means 60s of confirmed low power.
|
||||
/// </summary>
|
||||
public const int ConsecutiveReadingsRequired = 2;
|
||||
|
||||
public const string ShowerStateEntityId = "sensor.showermonitor_state";
|
||||
public const string ShowerActiveState = "Active";
|
||||
|
||||
/// <summary>
|
||||
/// Minimum interval between "hot water is ready" push notifications.
|
||||
/// Prevents notification spam when power readings fluctuate around the heating threshold.
|
||||
/// </summary>
|
||||
public static readonly TimeSpan WaterReadyNotificationCooldown = TimeSpan.FromHours(1);
|
||||
|
||||
public const int MinPollIntervalSeconds = 5;
|
||||
public const int MaxPollIntervalSeconds = 300;
|
||||
public const int PollIntervalStepSeconds = 5;
|
||||
@@ -52,8 +46,8 @@ public static class BoilerMonitorConsts
|
||||
public const string BudgetOverrideEntityId = "switch.boilermonitor_budget_override";
|
||||
|
||||
/// <summary>
|
||||
/// When on, the daemon may call the configured boiler switch per price/budget/water-ready logic.
|
||||
/// When off, monitoring continues but automatic turn_on/turn_off calls are suppressed (manual control).
|
||||
/// When on, the daemon may call the configured boiler switch per price/budget/water-ready logic.
|
||||
/// When off, monitoring continues but automatic turn_on/turn_off calls are suppressed (manual control).
|
||||
/// </summary>
|
||||
public const string AutoManagementEntityId = "switch.boilermonitor_auto_management";
|
||||
|
||||
@@ -73,4 +67,10 @@ public static class BoilerMonitorConsts
|
||||
public const string DeviceIdentifier = "boiler_monitor";
|
||||
public const string DeviceName = "Boiler Monitor";
|
||||
public const string DeviceManufacturer = "HomeAssistant App Daemon";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Minimum interval between "hot water is ready" push notifications.
|
||||
/// Prevents notification spam when power readings fluctuate around the heating threshold.
|
||||
/// </summary>
|
||||
public static readonly TimeSpan WaterReadyNotificationCooldown = TimeSpan.FromHours(1);
|
||||
}
|
||||
Reference in New Issue
Block a user