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,25 @@
using HomeAssistant.Models;
using NetDaemon.Extensions.MqttEntityManager;
namespace ShowerMonitor.Models;
public class ShowerMonitorEntity : EntityCreateModel
{
public string Domain { get; set; }
public string Identifier { get; set; }
public string Name { get; set; }
public ShowerMonitorEntity(string domain, string identifier, string name)
{
Domain = domain;
Identifier = identifier;
EntityId = $"{Domain}.{Identifier}";
Name = string.IsNullOrWhiteSpace(name) ? identifier : name;
Options = new EntityCreationOptions
{
UniqueId = EntityId,
Name = Name
};
}
}