This commit is contained in:
fuenmao
2026-10-09 18:06:11 +08:00
parent e6b90a06ab
commit 2d44cc3966
17 changed files with 1161 additions and 264 deletions
@@ -38,6 +38,7 @@ public sealed class HomeAssistantDiscoveredDeviceOutput
public string Category { get; set; } = nameof(HealthDeviceCategory.Other);
public bool Online { get; set; }
public string? PrimaryControlEntityId { get; set; }
public string? DefaultLightEffect { get; set; }
public List<HomeAssistantEntityOutput> Entities { get; set; } = [];
public Dictionary<string, object?> Metrics { get; set; } = [];
}
@@ -120,12 +121,14 @@ public sealed class HomeAssistantDeviceSwitchOutput
public sealed class HomeAssistantLightTransitionOutput
{
public string EntityId { get; set; } = string.Empty;
public bool Success { get; set; } = true;
public bool Running { get; set; }
public string Mode { get; set; } = "none";
public int BrightnessPercent { get; set; }
public int TargetPercent { get; set; }
public string Message { get; set; } = string.Empty;
public List<HomeAssistantLightTransitionOutput> Lights { get; set; } = [];
}
public sealed class HomeAssistantSetParameterInput