feat: add BatteryMonitor implementation with discovery, notification, and scheduling services
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>LightMonitor.Models</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\HomeAssistant.Models\HomeAssistant.Models.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NetDaemon.Extensions.Mqtt" Version="26.11.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,19 @@
|
||||
namespace LightMonitor.Models;
|
||||
|
||||
public static class LightMonitorConsts
|
||||
{
|
||||
public const string DefaultLightEntityId = "light.sonoff_1002214d40";
|
||||
public const string DefaultSunEntityId = "sun.sun";
|
||||
|
||||
public static readonly string[] DefaultPersonEntityIds =
|
||||
[
|
||||
"person.marius",
|
||||
"person.erika",
|
||||
"person.home_phone"
|
||||
];
|
||||
|
||||
public const string SunBelowHorizon = "below_horizon";
|
||||
public const string SunAboveHorizon = "above_horizon";
|
||||
public const string PersonHomeState = "home";
|
||||
public const string LightOnState = "on";
|
||||
}
|
||||
Reference in New Issue
Block a user