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,38 @@
using HomeAssistant.Entities.Interfaces;
using HomeAssistant.Models;
using Microsoft.Extensions.Logging;
namespace HomeAssistant.HistoryReplay.Replay;
public sealed class NoOpEntityManager(ILogger<NoOpEntityManager> logger) : IEntityManager
{
public Task CreateEntitiesAsync(ICollection<EntityCreateModel> entities)
{
logger.LogDebug("[REPLAY] Would create {Count} entities", entities.Count);
return Task.CompletedTask;
}
public Task CreateEntityAsync(EntityCreateModel createModel)
{
logger.LogDebug("[REPLAY] Would create entity: {EntityId}", createModel.EntityId);
return Task.CompletedTask;
}
public Task SetEntityState(string entityId, string state)
{
logger.LogDebug("[REPLAY] Would set state for {EntityId}: {State}", entityId, state);
return Task.CompletedTask;
}
public Task SetEntityAttributes(string entityId, object attributes)
{
logger.LogDebug("[REPLAY] Would set attributes for {EntityId}", entityId);
return Task.CompletedTask;
}
public Task RemoveEntity(string entityId)
{
logger.LogDebug("[REPLAY] Would remove entity: {EntityId}", entityId);
return Task.CompletedTask;
}
}