Skip to content
Stand with Ukraine flag

Pool

Pool SCADA symbol

This widget belongs to the Traditional SCADA fluid system bundle — a collection of components for building interactive SCADA dashboards for water treatment, fluid distribution, and process monitoring on ThingsBoard.

It represents a rectangular pool or open basin with a fill level visualization and volume readout. Use it to monitor liquid volume in fluid system diagrams where a wide, shallow vessel — such as a swimming pool, reservoir, equalisation basin, or holding tank — matches the physical equipment. The widget shows the current fill level as a proportional fill inside the pool symbol and displays the exact volume value alongside.

  • Display the current liquid volume as a visual fill level inside the pool symbol.
  • Show the exact volume value in a configurable value box with unit suffix.
  • Trigger a dashboard action when the widget is clicked.
  • Read pool data from device attributes, time series, or alarm status.
  1. Open the dashboard and switch to edit mode.
  2. Click Add widget at the top, or the Add new widget icon in the center of the screen.
  3. Open the Traditional SCADA fluid system widget bundle.
  4. Select Pool.
  5. Configure the widget settings, then click Add.

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. The Pool 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 define what the widget displays, driven by real-time data from the connected device.

ParameterDefaultDescription
Tank capacityUse attribute 'tankCapacity'Total capacity of the pool. Used together with Current volume to compute the fill level. See Data source configuration.
Current volumeUse time series 'liquidVolume'Current volume of liquid in the pool. See Data source configuration.
On clickDo nothingAction triggered when the user clicks the widget. See Click action configuration.

Applies to On click. Select one action type from the list below.

  • Do nothing

    The widget 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 pool 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 pool, 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 a facility overview to a pool monitoring dashboard.

    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 widget 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.

Applies to Tank capacity and Current volume. Click the edit icon next to a parameter to open its configuration dialog. When Action is set to Do nothing, the Value field accepts a static number for both parameters.

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 getVolume or getPoolState.
    Action result converterNone — uses the result directly as the numeric value; Function — applies a f(data) function that returns the value.
    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 tankCapacity.
    Action result converterNone — uses the result directly as the numeric value; Function — applies a f(data) function that returns the value.
  • Get time series

    Read the parameter value from the latest telemetry reading.

    ParameterDescription
    Time series keyTelemetry key to monitor, like liquidVolume.
    Action result converterNone — uses the result directly as the numeric value; Function — applies a f(data) function that returns the value.
  • 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 functionA f(data) function that receives the current dashboard state object. Use data.id to read the active state name, or data.params to inspect state parameters.
    ’[parameter]’ when result isThe expected type and value that activates the parameter. Choose String, Integer, Double, Boolean (then select True or False), or JSON.

The Appearance section controls the widget title, pool and fluid colors, and volume display.

SettingDefaultDescription
TitlePoolWidget title displayed in the header. Supports entityName and entityLabel variables.
Card iconIcon shown in the widget header. Configure its size and color.
Tank colorColor of the pool body.
Fluid colorTransparentColor of the liquid fill inside the pool.
Value boxEnabledShow or hide the current volume value display on the widget.
Value textFont and color for the value label. The Units field (default: gal) sets the unit suffix shown next to the value.
Transparent modeDisabledMake the pool body background transparent, showing only the fluid fill.

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.

Pool fill level does not change

CauseSolution
Current volume action is Do nothing with a static valueConfigure Current volume to read from a time series key (e.g. liquidVolume) or an attribute.
Tank capacity is not set or resolves to zeroEnsure Tank capacity is reading a valid numeric value greater than zero.
Target device is not connectedConfirm the selected device is online and actively sending data.

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.