This commit is contained in:
fuenmao
2026-10-09 16:46:30 +08:00
parent 4a634ef4c2
commit e6b90a06ab
63 changed files with 4170 additions and 1518 deletions
@@ -114,6 +114,11 @@ public sealed class MattressComfortOutput
public string? WeatherObservedAt { get; set; }
public string WeatherReason { get; set; } = string.Empty;
public string FirmnessReason { get; set; } = string.Empty;
public double? IndoorTemperatureCelsius { get; set; }
public bool IndoorTemperatureAvailable { get; set; }
public DateTimeOffset? IndoorTemperatureObservedAt { get; set; }
public string HeatingReason { get; set; } = string.Empty;
public ClimateAdviceOutput ClimateAdvice { get; set; } = new();
}
public sealed class TcmAssessmentInput
@@ -161,6 +166,17 @@ public sealed class PersonalizedSceneConfig
public bool EnableSpeakerSleepMode { get; set; } = true;
public string SpeakerAudioMode { get; set; } = "助眠白噪音";
public int SpeakerVolumePercent { get; set; } = 50;
public ClimateAdviceOutput ClimateAdvice { get; set; } = new();
}
public sealed class ClimateAdviceOutput
{
public string Mode { get; set; } = "unavailable";
public int RecommendedMinimumCelsius { get; set; }
public int RecommendedMaximumCelsius { get; set; }
public int? TargetTemperatureCelsius { get; set; }
public bool PendingIntegration { get; set; }
public string Reason { get; set; } = "等待有效室温";
}
public sealed class HealthAssessmentAnswers
@@ -9,7 +9,11 @@ public enum HealthDeviceCategory
Fragrance,
Lighting,
Media,
Other
Other,
Climate,
Curtain,
SleepMonitoring,
Outlet
}
public sealed class HomeAssistantEntityOutput
@@ -25,6 +29,7 @@ public sealed class HomeAssistantEntityOutput
public sealed class HomeAssistantDiscoveredDeviceOutput
{
public string ModuleKey { get; set; } = string.Empty;
public string DeviceId { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public string Manufacturer { get; set; } = string.Empty;
@@ -141,6 +146,7 @@ public sealed class HomeAssistantSetParameterOutput
public sealed class HomeAssistantSceneOutput
{
public ClimateAdviceOutput? ClimateAdvice { get; set; }
public string SceneCode { get; set; } = string.Empty;
public string SceneName { get; set; } = string.Empty;
public bool Success { get; set; }