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,35 @@
namespace BatteryMonitor.Models;
public static class BatteryMonitorConsts
{
public const int DefaultBatteryThresholdPercent = 5;
public const string BatteryDeviceClass = "battery";
public const string SensorDomainPrefix = "sensor.";
public const string NotificationId = "battery_monitor_low_battery";
public const string NotificationTitle = "Low Battery Alert";
public const string PersistentNotificationDomain = "persistent_notification";
public const string PersistentNotificationCreateService = "create";
public const string PersistentNotificationDismissService = "dismiss";
public const string DailyCheckCron = "0 8 * * *";
public static readonly string[] ExcludedKeywords =
[
"iphone",
"phone",
"watch",
"galaxy",
"sm_s",
"sm_a",
"pixel",
"oneplus",
"ipad"
];
}