feat: add device relay and telemetry support
This commit is contained in:
@@ -7,7 +7,17 @@ public sealed class RelayConditionDto
|
||||
{
|
||||
public int Enabled { get; set; }
|
||||
public int TimeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// شناسه رله برای سازگاری با فریمور قبلی (مثلاً R1)
|
||||
/// </summary>
|
||||
public string Relay { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// نام نمایشی رله (فن، هیتر و ...)
|
||||
/// </summary>
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public List<RelayRuleDto> Rules { get; set; } = new();
|
||||
}
|
||||
|
||||
@@ -20,4 +30,14 @@ public sealed class RelayRuleDto
|
||||
public string Op { get; set; } = string.Empty;
|
||||
public decimal V1 { get; set; }
|
||||
public decimal? V2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// اقدام: 0 = روشن، 1 = خاموش
|
||||
/// </summary>
|
||||
public int Action { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// زمان اعمال: 0 = روز، 1 = شب، 2 = همیشه
|
||||
/// </summary>
|
||||
public int TimeType { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user