Skip to content
Stand with Ukraine flag

Right Flow Meter

Right flow meter SCADA symbol

The Right flow meter widget displays a numeric flow rate value on a square display face positioned to the right of a vertical pipe segment. Use it to show live flow measurements at a point where the meter is mounted on the right side of the pipe run.

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 ThingsBoard dashboards. It combines a numeric flow display with a live pipe segment, showing both the measured flow rate and the real-time fluid state on a single symbol.

  • Display a numeric flow rate value on the widget face.
  • Indicate warning and critical states with configurable border colors.
  • Animate a blinking effect when the device is in critical state.
  • Show a broken indicator when the device is in a fault condition.
  • Trigger a dashboard action when the display is clicked.
  • Visualize fluid presence and flow state through the integrated pipe segment.
  • Animate fluid flow in either direction at configurable speed.
  • Indicate leak conditions on the pipe.
  • Apply custom colors to fluid, pipe, and display border elements independently.
  • Receive state data from 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 device. This 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 flow meter 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.

Behavior parameters are organized into two groups: Display and Pipe. Each parameter supports the same set of actions — see Behavior configuration for the full list.

Display parameters control the numeric readout and state indicators shown on the widget face.

ParameterDefaultValuesDescription
ValueUse time series 'flowRate'numberNumeric flow rate value shown on the display.
Warning stateUse alarm statusTrue, FalseWhether the component is in warning state.
Critical stateUse alarm statusTrue, FalseWhether the component is in critical state.
Critical state animationFalseTrue, FalseWhether to enable blinking animation when the component is in critical state.
BrokenFalseTrue, FalseWhether the component is in a broken or fault state.
On display clickDo nothingAction triggered when the user clicks on the display face.

Defines what happens when the user clicks the display face on the dashboard. Select one action type from the list below.

  • Do nothing

    The display is clickable but performs no action. Use while testing styles or as a placeholder.

  • Navigate to new dashboard state

    Switches to a different view within the same dashboard, like opening a device details screen.

    ParameterDescription
    Target dashboard stateThe state to open (required).
    Open right dashboard layout (mobile view)Opens a side panel instead of replacing the view (mobile only).
    Set entity from widgetPasses the current entity to the target state.
    State entity parameter nameThe key the entity is passed under.
    Dashboard state display optionNormal (same view), In separate dialog (popup), or In popover (inline overlay).
  • Update current dashboard state

    Updates the context of the current view, like switching the selected device, without navigating away.

    ParameterDescription
    Target dashboard stateThe state to switch to (optional).
    Open right dashboard layout (mobile view)Opens a side panel on mobile.
    Set entity from widgetPasses the current entity to the updated state.
    State entity parameter nameThe key the entity is passed under.
  • Navigate to other dashboard

    Opens a completely different dashboard, like jumping from this system view to a global alarms view.

    ParameterDescription
    Target dashboardThe dashboard to open (required).
    Target dashboard stateThe specific view to open within that dashboard.
    Open in a new browser tabOpens the dashboard without leaving the current page.
    Set entity from widgetPasses the current entity to the other dashboard.
    State entity parameter nameThe key the entity is passed under.
  • Custom action

    Runs custom JavaScript on click to implement any behavior not covered by the built-in options. Use it to make HTTP requests, open custom dialogs, call other widget APIs, or interact with external services. The function receives: $event, widgetContext, entityId, entityName, additionalParams, entityLabel.

  • Custom action (with HTML template)

    Same as Custom action, but also renders a custom HTML panel or dialog when the display is clicked. The function receives an additional htmlTemplate parameter: $event, widgetContext, entityId, entityName, htmlTemplate, additionalParams, entityLabel.

    ParameterDescription
    ResourcesExternal scripts and styles loaded before the action runs.
    CSSStyling for the HTML template.
    HTMLLayout of the rendered dialog or panel.
    JSAction logic.
  • Mobile action

    Triggers a native device feature inside a ThingsBoard mobile app, like the camera or QR scanner.

    ParameterDescription
    Mobile action typeTake picture from gallery, Take photo, Open map directions, Open map location, Scan QR Code, Make phone call, Get phone location, Take screenshot, or Device provision.
  • Open URL

    Opens a website or external link when clicked.

    ParameterDescription
    URLThe address to open (required).
    Open in a new browser tabKeeps the current dashboard open while opening the link.

Pipe parameters control the fluid animation through the integrated pipe segment.

ParameterDefaultValuesDescription
Fluid presenceAbsentPresent, AbsentWhether fluid is present in the pipe.
Flow presenceAbsentPresent, AbsentWhether fluid is flowing through the pipe.
Flow directionForwardForward, ReverseDirection of the fluid flow animation.
Flow animation speed1numberSpeed of the flow animation. 1 is normal speed, 0 disables animation, < 1 - slower animation, > 1 - faster animation.
LeakFalseTrue, FalseWhether a leak is present on the pipe.

To configure a parameter, click its edit icon.

Display parameters — Do nothing values:

ParameterValue
ValueAny number — value shown on the display until the device sends data.
Warning stateTrue or False
Critical stateTrue or False
Critical state animationTrue or False
BrokenTrue or False

Pipe parameters — Do nothing values:

ParameterValue
Fluid presencePresent or Absent
Flow presencePresent or Absent
Flow directionForward or Reverse
Flow animation speedAny number — 1 for normal speed, 0 to stop, < 1 - slower animation, > 1 - faster animation.
LeakTrue or False

For all other actions, the configuration dialog works the same way regardless of which parameter you are editing:

  • Execute RPC

    Read the parameter value from an RPC response.

    ParameterDescription
    MethodRPC method to call, like getState or getFlowRate.
    Action result converterNone — parameter is activated when the result matches the value you specify; Function — parameter is activated when your f(data) returns true.
    ’[parameter]’ when result isThe value or condition that activates this parameter (not shown for Value, which uses the raw numeric result).
    RPC request timeout (ms)How long to wait for a device response before timing out (Advanced settings).
    RPC request persistentStores and retries the command until the device comes online (Advanced settings).
  • Get attribute

    Read the parameter value from a device attribute.

    ParameterDescription
    Attribute scopeWhere the attribute is stored: Any, Client, Server, or Shared.
    Attribute keyAttribute name to read, like state or flowRate.
    Action result converterNone — parameter is activated when the attribute equals the value you specify; Function — parameter is activated when your f(data) returns true.
    ’[parameter]’ when result isThe value or condition that activates this parameter (not shown for Value, which uses the raw numeric result).
  • Get time series

    Read the parameter value from the latest telemetry reading.

    ParameterDescription
    Time series keyTelemetry key to monitor, like flowRate or warningState.
    Action result converterNone — parameter is activated when the telemetry value equals what you specify; Function — parameter is activated when your f(data) returns true.
    ’[parameter]’ when result isThe value or condition that activates this parameter (not shown for Value, which uses the raw numeric result).
  • Get alarm status

    Activate the parameter when a specific alarm is active on the device.

    ParameterDescription
    Alarm severityWhich severity levels trigger the active state: Critical, Major, Minor, Warning, or Indeterminate.
    Alarm typesAny alarm, or a specific alarm type.
  • Get dashboard state id

    Activate the parameter based on which dashboard state is currently open.

    ParameterDescription
    Action result converterNone — parameter is activated when the state name matches the text you enter; Function — parameter is activated when your f(data) returns true.
    ’[parameter]’ when result isThe state name or condition that activates this parameter.
  • Get dashboard state object

    Activate the parameter using the full dashboard state context; use this when you need to evaluate multiple state parameters at once.

    ParameterDescription
    Parse value functionWrite a f(data) function that returns the parameter value.

The Appearance section controls the widget title, display colors, and pipe element colors.

SettingDefaultDescription
TitleWidget nameWidget title displayed in the header. Supports entityName and entityLabel variables.
Card iconIcon shown in the widget header. Configure its size and color.
Unitsm³/hrUnit label displayed next to the numeric value on the display face.
Decimals0Number of decimal places shown in the numeric value.
Default border colorBlackBorder color of the display face when no alarm is active.
Active border colorGreenBorder color when the device is in normal active state.
Warning border colorOrangeBorder color when the device is in warning state.
Critical border colorRedBorder color when the device is in critical state.
Background colorTransparentBackground color of the display area.
Fluid colorColor of the fluid rendered inside the pipe segment.
Pipe colorColor of the pipe structure itself.

Each border color supports four color modes: Constant (a fixed color), Gradient (a color range mapped to the value), Range (discrete color stops), or Function (a JavaScript function that returns a color string based on the current value).

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.

Display shows no value or incorrect value

CauseSolution
Value action is set to Do nothingOpen the Value edit dialog, set the correct Action, and specify the telemetry or attribute key.
Telemetry key mismatchVerify that the key name in the behavior configuration matches exactly what the device reports.
Target device is not connectedConfirm that the selected device is online and actively sending data.

Warning or critical border color does not appear

CauseSolution
Warning state or Critical state action is Do nothing and value is FalseConfigure the state parameter to read from an alarm status or a device attribute.
Alarm is not active on the deviceConfirm that the device has an active alarm of the expected severity.

Flow animation does not play

CauseSolution
Flow animation speed is 0Set Flow animation speed to a non-zero value (e.g. 1 for normal speed).
Flow presence is AbsentConfigure the Flow presence behavior to read from the device and verify the device reports an active flow state.

These widgets are used in the following ready-made solution templates built on the Traditional SCADA fluid system bundle:

  • SCADA Swimming pool — a complete swimming pool monitoring dashboard built with pipe, pump, valve, and gauge widgets from the Traditional SCADA fluid system bundle.