This commit is contained in:
fuenmao
2026-09-22 15:01:29 +08:00
parent a063be61cd
commit c1c86b56b6
5 changed files with 797 additions and 45 deletions
@@ -73,6 +73,15 @@ public sealed class HomeAssistantStatusOutput
public HomeAssistantSceneDevicesSummaryOutput SceneDevices { get; set; } = new();
public HomeAssistantEnvironmentOutput Environment { get; set; } = new();
public List<HomeAssistantScenePresetItem> ScenePresets { get; set; } = [];
public Dictionary<string, HomeAssistantParameterStateOutput> ControlParameters { get; set; } = [];
}
public sealed class HomeAssistantParameterStateOutput
{
public string EntityId { get; set; } = string.Empty;
public string State { get; set; } = string.Empty;
public bool Available { get; set; }
public Dictionary<string, object?>? Attributes { get; set; }
}
public sealed class HomeAssistantScenePresetItem
@@ -103,6 +112,22 @@ public sealed class HomeAssistantDeviceSwitchOutput
public string Message { get; set; } = string.Empty;
}
public sealed class HomeAssistantSetParameterInput
{
public string DeviceId { get; set; } = string.Empty;
public string? EntityId { get; set; }
public string ParameterType { get; set; } = string.Empty;
public object? Value { get; set; }
}
public sealed class HomeAssistantSetParameterOutput
{
public bool Success { get; set; }
public string DeviceId { get; set; } = string.Empty;
public string ParameterType { get; set; } = string.Empty;
public string Message { get; set; } = string.Empty;
}
public sealed class HomeAssistantSceneOutput
{
public string SceneCode { get; set; } = string.Empty;