feat: add device relay and telemetry support

This commit is contained in:
2026-09-03 07:49:10 +03:30
parent 9eaa5b70d1
commit 6297df7dfd
18 changed files with 2077 additions and 20 deletions

View File

@@ -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; }
}