42 lines
1.6 KiB
C#
42 lines
1.6 KiB
C#
namespace Evergreen.Health.Application.Health.Models;
|
|
|
|
public sealed class HomeAssistantDeviceOutput
|
|
{
|
|
public string Code { get; set; } = string.Empty;
|
|
public string Name { get; set; } = string.Empty;
|
|
public string EntityId { get; set; } = string.Empty;
|
|
public string State { get; set; } = string.Empty;
|
|
public string? Value { get; set; }
|
|
public string? Unit { get; set; }
|
|
public bool IsAvailable { get; set; }
|
|
public DateTimeOffset? LastUpdated { get; set; }
|
|
}
|
|
|
|
public sealed class HomeAssistantStatusOutput
|
|
{
|
|
public bool Connected { get; set; }
|
|
public string Message { get; set; } = string.Empty;
|
|
public DateTimeOffset CheckedAt { get; set; } = DateTimeOffset.Now;
|
|
public List<HomeAssistantDeviceOutput> Devices { get; set; } = [];
|
|
public List<HomeAssistantDeviceOutput> Environment { get; set; } = [];
|
|
}
|
|
|
|
public sealed class HomeAssistantSceneOutput
|
|
{
|
|
public string SceneCode { get; set; } = string.Empty;
|
|
public string SceneName { get; set; } = string.Empty;
|
|
public bool Success { get; set; }
|
|
public string Status { get; set; } = string.Empty;
|
|
public string Message { get; set; } = string.Empty;
|
|
public DateTimeOffset ExecutedAt { get; set; } = DateTimeOffset.Now;
|
|
public List<HomeAssistantSceneActionOutput> Actions { get; set; } = [];
|
|
}
|
|
|
|
public sealed class HomeAssistantSceneActionOutput
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
public string EntityId { get; set; } = string.Empty;
|
|
public string Status { get; set; } = string.Empty;
|
|
public string Message { get; set; } = string.Empty;
|
|
}
|