This commit is contained in:
2026-06-28 13:58:35 +03:00
parent 8f45028715
commit e6bf8258bb
114 changed files with 4365 additions and 874 deletions
@@ -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;
}