Update
This commit is contained in:
@@ -16,4 +16,6 @@ public static class LightMonitorConsts
|
||||
public const string SunAboveHorizon = "above_horizon";
|
||||
public const string PersonHomeState = "home";
|
||||
public const string LightOnState = "on";
|
||||
public const string UnavailableState = "unavailable";
|
||||
public const string UnknownState = "unknown";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using static LightMonitor.Models.LightMonitorConsts;
|
||||
|
||||
namespace LightMonitorManager.Models;
|
||||
|
||||
public sealed class LightMonitorOptions
|
||||
{
|
||||
public const string SectionName = "LightMonitor";
|
||||
|
||||
public bool Enabled { get; set; }
|
||||
public string LightEntityId { get; set; } = DefaultLightEntityId;
|
||||
public string SunEntityId { get; set; } = DefaultSunEntityId;
|
||||
public string[] PersonEntityIds { get; set; } = DefaultPersonEntityIds;
|
||||
}
|
||||
Reference in New Issue
Block a user