feat: add BatteryMonitor implementation with discovery, notification, and scheduling services

This commit is contained in:
Marius
2026-04-01 10:55:33 +03:00
parent 11c2574235
commit 6e4d684359
114 changed files with 22820 additions and 527 deletions
@@ -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>
+19
View File
@@ -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";
}