111111
This commit is contained in:
+43
@@ -0,0 +1,43 @@
|
||||
using Furion.ConfigurableOptions;
|
||||
|
||||
namespace Evergreen.Health.Application.Health.Integrations.HomeAssistant;
|
||||
|
||||
public sealed class HomeAssistantOptions : IConfigurableOptions
|
||||
{
|
||||
public bool Enabled { get; set; } = true;
|
||||
public string BaseUrl { get; set; } = string.Empty;
|
||||
public string AccessToken { get; set; } = string.Empty;
|
||||
public int TimeoutSeconds { get; set; } = 15;
|
||||
public HomeAssistantEntityOptions Entities { get; set; } = new();
|
||||
public HomeAssistantSleepSceneOptions SleepScene { get; set; } = new();
|
||||
}
|
||||
|
||||
public sealed class HomeAssistantEntityOptions
|
||||
{
|
||||
public string Dehumidifier { get; set; } = string.Empty;
|
||||
public string DehumidifierFanLevel { get; set; } = string.Empty;
|
||||
public string DehumidifierUv { get; set; } = string.Empty;
|
||||
public string FragranceSwitch { get; set; } = string.Empty;
|
||||
public string FragranceLight { get; set; } = string.Empty;
|
||||
public string AmbientLight { get; set; } = string.Empty;
|
||||
public string Speaker { get; set; } = string.Empty;
|
||||
public string SpeakerSleepMode { get; set; } = string.Empty;
|
||||
public string Temperature { get; set; } = string.Empty;
|
||||
public string Humidity { get; set; } = string.Empty;
|
||||
public string Pm25 { get; set; } = string.Empty;
|
||||
public string Co2 { get; set; } = string.Empty;
|
||||
public string Formaldehyde { get; set; } = string.Empty;
|
||||
public string Tvoc { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public sealed class HomeAssistantSleepSceneOptions
|
||||
{
|
||||
public int TargetHumidity { get; set; } = 55;
|
||||
public string DehumidifierMode { get; set; } = "睡眠";
|
||||
public string FanLevel { get; set; } = "1挡";
|
||||
public int LightBrightnessPercent { get; set; } = 20;
|
||||
public int LightColorTemperatureKelvin { get; set; } = 2700;
|
||||
public bool EnableFragrance { get; set; } = true;
|
||||
public bool EnableSpeakerSleepMode { get; set; }
|
||||
public bool EnableUv { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user