feat: add circuitType property to IOPortConfig and implement state inversion in digital input devices

This commit is contained in:
equinoy
2026-01-22 15:04:25 -06:00
parent 4fa7a42330
commit 8bc6d4392b
3 changed files with 17 additions and 2 deletions

View File

@@ -37,5 +37,12 @@ namespace PepperDash.Essentials.Core.CrestronIO
/// </summary>
[JsonProperty("minimumChange")]
public int MinimumChange { get; set; }
/// <summary>
/// Gets or sets the circuit type: "NO" (Normally Open) or "NC" (Normally Closed)
/// If set to "NC", the input state will be inverted. Defaults to "NO" if not specified.
/// </summary>
[JsonProperty("circuitType")]
public string CircuitType { get; set; } = "NO";
}
}