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,15 @@
namespace HomeAssistant.HistoryReplay.HomeAssistantClient;
public sealed class HomeAssistantSettings
{
public const string SectionName = "HomeAssistant";
public const int DefaultPort = 8123;
public const int DefaultTimeoutSeconds = 30;
public string Host { get; set; } = string.Empty;
public int Port { get; set; } = DefaultPort;
public string Token { get; set; } = string.Empty;
public bool Ssl { get; set; }
public Uri BaseUrl => new UriBuilder(Ssl ? "https" : "http", Host, Port).Uri;
}