Skip to content

Horizontal Ball Valve

Horizontal ball valve SCADA symbol

The Horizontal ball valve widget represents a quarter-turn ball valve mounted on a horizontal pipe segment in a SCADA fluid system diagram. It visualizes the open or closed state of the valve and supports click-to-open and click-to-close commands sent directly to the connected HMI Device.

This widget belongs to the Traditional SCADA fluid system bundle — a collection of pipe segments, fittings, valves, pumps, and gauges designed for building fluid system diagrams on iRis Cloud dashboards. It connects to a HMI Device and reflects the real-time valve state through open/close animation and configurable state colors.

  • Visualize the open or closed state of a valve in real time.
  • Animate the valve symbol between open and closed positions using configurable rotation angles.
  • Send open or close commands to the HMI Device when the user clicks the valve symbol.
  • Apply custom colors for the open and closed states independently.
  • Receive state data from HMI Device attributes, time series, alarm status, or dashboard state.

The widget connects to a single data source: either a Device or an Entity alias that resolves to a HMI Device. This HMI Device provides the telemetry or attribute values used to drive the widget’s visual state.

The SCADA symbol defines the visual shape of the widget. Each valve widget has a pre-selected symbol from the Traditional SCADA fluid system bundle. To use a different symbol, click Browse SCADA symbol from gallery and choose one from the library, or upload your own.

The widget has three behavior parameters: one that reads the current valve state from the HMI Device, and two that define the commands sent to the HMI Device when the user opens or closes the valve.

ParameterDefaultDescription
OpenedUse attribute 'open'Whether the valve is currently open. True = open state (symbol rotates to the opened angle and shows the opened color); False = closed state.
OpenSet 'open' attribute to: trueCommand sent to the HMI Device when the user clicks the valve to open it.
CloseSet 'open' attribute to: falseCommand sent to the HMI Device when the user clicks the valve to close it.

To configure the Opened parameter, click its edit icon. This parameter reads the current valve state from the connected HMI Device.

When Action is Do nothing, set the Value directly:

ValueEffect
TrueWidget always shows the valve as open.
FalseWidget always shows the valve as closed.

For all other actions, the widget reads the valve state dynamically from the HMI Device:

  • Get attribute — Read the state from a HMI Device attribute.

    ParameterDescription
    Attribute scopeWhere the attribute is stored: Any, Client, Server, or Shared.
    Attribute keyAttribute name to read, like open or valveOpen.
    ‘Opened’ when result isThe attribute value that activates the open state.
  • Get time series — Read the state from the latest telemetry value.

    ParameterDescription
    Time series keyTelemetry key to monitor, like open or state.
    ‘Opened’ when result isThe telemetry value that activates the open state.
  • Get alarm status — Activate the open state when a specific alarm is active on the HMI Device.

    ParameterDescription
    Alarm severitySeverity levels that trigger the state: Critical, Major, Minor, Warning, or Indeterminate.
    Alarm typesAny alarm, or a specific alarm type.
  • Get dashboard state id — Activate the state based on which dashboard state is currently open.

    ParameterDescription
    ’Opened’ when result isThe dashboard state name that activates the open state.
  • Get dashboard state object — Activate the state using the full dashboard state context.

    ParameterDescription
    Parse value functionA f(data) function that returns true when the valve should show as open.

The Open and Close parameters define the command sent to the HMI Device when the user clicks the valve symbol. Click each parameter’s edit icon to configure the action.

  • Set attribute — Write a value to a HMI Device attribute.

    ParameterDescription
    Attribute scopeWhere the attribute is stored: Shared, Client, or Server.
    Attribute keyAttribute name to write, like open.
    ValueAttribute value: true for Open, false for Close.
  • Add time series — Write a value to a time series key.

    ParameterDescription
    Time series keyTime series key to write, like state.
    ValueTime series value: true for Open, false for Close.

The Appearance section controls the widget title, valve state colors, and the rotation angle of the symbol in each state.

SettingDefaultDescription
TitleWidget nameWidget title displayed in the header. Supports entityName and entityLabel variables.
Card icon—Icon shown in the widget header. Configure its size and color.
Opened colorGreenColor of the valve symbol when in the open state.
Closed colorGrayColor of the valve symbol when in the closed state.
Opened rotation angle0Rotation angle (degrees) of the symbol when the valve is open.
Closed rotation angle90Rotation angle (degrees) of the symbol when the valve is closed.

The Card appearance section controls the widget container style.

SettingDefaultDescription
BackgroundTransparentCard background color.
Show card buttonsFullscreenButtons shown on the card when hovered.
Card border radius0pxRounding of card corners.
Card padding12pxInner spacing between the card edge and widget content.

Widget shows no state change or shows the wrong state

CauseSolution
Opened action is set to Do nothingOpen the Opened edit dialog, set the correct Action, and specify the attribute or time-series key.
Attribute or telemetry key mismatchVerify that the key name in the Opened configuration matches exactly what the HMI Device reports.
Target HMI Device is not connectedConfirm that the selected HMI Device is online and actively sending data.

Clicking the valve does not send a command to the HMI Device

CauseSolution
Open or Close action is not configuredOpen the Open or Close edit dialog and set the action type (Set attribute, or Add time series).
Target HMI Device is not connectedConfirm that the selected HMI Device is online.