Update
This commit is contained in:
@@ -11,18 +11,20 @@ public static class BoilerMonitorConsts
|
||||
public const double DefaultHeatingPowerThresholdWatts = 5.0;
|
||||
|
||||
/// <summary>
|
||||
/// Grace period after the boiler switch is turned on, during which
|
||||
/// low power readings are ignored for "water ready" detection.
|
||||
/// This prevents false positives caused by the heating element ramp-up delay.
|
||||
/// 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 static readonly TimeSpan WarmUpGracePeriod = TimeSpan.FromMinutes(2);
|
||||
public const int ConsecutiveReadingsRequired = 2;
|
||||
|
||||
public const string ShowerStateEntityId = "sensor.showermonitor_state";
|
||||
public const string ShowerActiveState = "Active";
|
||||
|
||||
/// <summary>
|
||||
/// Cooldown period after the water has been detected as ready,
|
||||
/// during which the boiler will not be turned back on.
|
||||
/// This prevents wasteful on/off cycling when water is already heated.
|
||||
/// 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 WaterReadyCooldownPeriod = TimeSpan.FromHours(1);
|
||||
public static readonly TimeSpan WaterReadyNotificationCooldown = TimeSpan.FromHours(1);
|
||||
|
||||
public const int MinPollIntervalSeconds = 5;
|
||||
public const int MaxPollIntervalSeconds = 300;
|
||||
@@ -49,6 +51,12 @@ public static class BoilerMonitorConsts
|
||||
public const string SessionCountEntityId = "sensor.boilermonitor_session_count";
|
||||
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).
|
||||
/// </summary>
|
||||
public const string AutoManagementEntityId = "switch.boilermonitor_auto_management";
|
||||
|
||||
public const string NordPoolCheapestIntervalsEntityId = "sensor.nordpool_cheapest_intervals";
|
||||
|
||||
public const string BoilerDailyHoursEntityId = "input_number.boiler_daily_hours";
|
||||
@@ -61,6 +69,8 @@ public static class BoilerMonitorConsts
|
||||
|
||||
public const string SwitchOnState = "on";
|
||||
|
||||
public const string SwitchOffState = "off";
|
||||
|
||||
public const string DeviceIdentifier = "boiler_monitor";
|
||||
public const string DeviceName = "Boiler Monitor";
|
||||
public const string DeviceManufacturer = "HomeAssistant App Daemon";
|
||||
|
||||
Reference in New Issue
Block a user