111
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user