Skip to content

feat: add circuitType property to IOPortConfig #1377

Merged
ndorin merged 7 commits intomainfrom
feature/circuittype-property-versiport
Feb 9, 2026
Merged

feat: add circuitType property to IOPortConfig #1377
ndorin merged 7 commits intomainfrom
feature/circuittype-property-versiport

Conversation

@equinoy
Copy link
Contributor

@equinoy equinoy commented Jan 22, 2026

This pull request adds support for configuring the input circuit type (normally open "NO" or normally closed "NC") for digital input devices, allowing the input state to be automatically inverted if the circuit is set to "NC". This improves flexibility when integrating different hardware configurations.

Digital Input State Inversion Support:

  • Added a new CircuitType property to the IOPortConfig class, allowing configuration of input circuit type ("NO" or "NC"). Defaults to "NO" if not specified.
  • Updated GenericDigitalInputDevice to use the CircuitType property: if set to "NC", the input state is inverted when reporting feedback. [1] [2]
  • Updated GenericVersiportDigitalInputDevice to use the CircuitType property: if set to "NC", the digital input state is inverted when reporting feedback. [1] [2]…version in digital input devices

ngenovese11 and others added 3 commits January 1, 2026 09:02
- adds a config value that mutes the display when the screen is in the up position
- screens will now mute/unmute based on their position if the config is set
Enhanced error and warning message generation to use monitor names when available, include counts, proper pluralization, and append "Offline" when issues are present. Avoided multiple enumerations by converting to lists. "Room Ok." is shown when no issues are detected.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for configuring the circuit type (Normally Open "NO" or Normally Closed "NC") for digital input devices, enabling automatic state inversion for NC circuits. This enhances flexibility when integrating different hardware configurations.

Changes:

  • Added a CircuitType property to IOPortConfig class with a default value of "NO"
  • Updated GenericDigitalInputDevice to invert input state when CircuitType is set to "NC"
  • Updated GenericVersiportDigitalInputDevice to invert digital input state when CircuitType is set to "NC"

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
src/PepperDash.Essentials.Core/CrestronIO/IOPortConfig.cs Added CircuitType property with JSON serialization to support NO/NC configuration
src/PepperDash.Essentials.Core/CrestronIO/GenericDigitalInputDevice.cs Added invertState field and logic to conditionally invert input state based on circuit type
src/PepperDash.Essentials.Core/CrestronIO/GenericVersiportInputDevice.cs Added invertState field and logic to conditionally invert input state based on circuit type

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

equinoy and others added 3 commits January 22, 2026 15:36
…c' into feature/circuittype-property-versiport
The default config for a Fusion room will now NOT subscribe for Fusion schedule push updates unless explicitly
requested.
andrew-welker
andrew-welker previously approved these changes Feb 9, 2026
ndorin
ndorin previously approved these changes Feb 9, 2026
@andrew-welker andrew-welker dismissed stale reviews from ndorin and themself via 3ed0bd5 February 9, 2026 19:58
@ndorin ndorin merged commit 39ebf6f into main Feb 9, 2026
2 checks passed
@ndorin ndorin deleted the feature/circuittype-property-versiport branch February 9, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants