feat: add BatteryMonitor implementation with discovery, notification, and scheduling services
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace HomeAssistant.McpServer.Services;
|
||||
|
||||
public interface IHomeAssistantApiClient
|
||||
{
|
||||
Task<JsonElement> GetApiStatusAsync(CancellationToken cancellationToken = default);
|
||||
Task<JsonElement> GetConfigAsync(CancellationToken cancellationToken = default);
|
||||
Task<JsonElement> GetAllStatesAsync(CancellationToken cancellationToken = default);
|
||||
Task<JsonElement> GetEntityStateAsync(string entityId, CancellationToken cancellationToken = default);
|
||||
Task<JsonElement> GetServicesAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
Task<JsonElement> GetHistoryAsync(
|
||||
string entityIds,
|
||||
DateTimeOffset? startTime = null,
|
||||
DateTimeOffset? endTime = null,
|
||||
bool minimalResponse = true,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<JsonElement> GetLogbookAsync(
|
||||
string? entityId = null,
|
||||
DateTimeOffset? startTime = null,
|
||||
DateTimeOffset? endTime = null,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<JsonElement> CallServiceAsync(
|
||||
string domain,
|
||||
string service,
|
||||
JsonElement? serviceData = null,
|
||||
CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user