Skip to content

Automation Badge

The Automation Badge is a small icon that tells the control mode, the lock state or the alert state of a device. It is found in the Automation - OpenBridge section of the Perspective Component Palette as Automation Badge.

Automation Badge

It is the same badge that the automation buttons draw in their corners (see Badges), as a component of its own. Use it where there is no automation button to carry the badge: beside a text, in a table row, in a faceplate or in a legend. For a badge on a pump, valve, switch or tank, use the badge properties of that component instead.

The badge shows the type it is given; it does not read tags or alarms itself.

An Automation Badge dropped from the palette with default properties:

Automation Badge with default properties

type selects the icon, and mode selects how much it stands out:

  • flat (default) — only the icon.
  • regular — the icon on a light chip with a border.
  • enhanced — the icon on a filled, dark chip.

The level-*, alarm, warning and caution types have their own colours and are drawn the same way in all three modes.

type Meaning flat regular enhanced
auto (default) Automatic control. auto, flat auto, regular auto, enhanced
manual Manual control. manual, flat manual, regular manual, enhanced
manual-only Manual control is the only mode available. manual-only, flat manual-only, regular manual-only, enhanced
local Local control. local, flat local, regular local, enhanced
local-only Local control is the only mode available. local-only, flat local-only, regular local-only, enhanced
command-locked Commands are locked. command-locked, flat command-locked, regular command-locked, enhanced
interlock An interlock is active. interlock, flat interlock, regular interlock, enhanced
interlock-inhibit The interlock is inhibited. interlock-inhibit, flat interlock-inhibit, regular interlock-inhibit, enhanced
alert-silenced The alert of the device is silenced. alert-silenced, flat alert-silenced, regular alert-silenced, enhanced
level-critical Alert with priority level critical. level-critical, flat level-critical, regular level-critical, enhanced
level-high Alert with priority level high. level-high, flat level-high, regular level-high, enhanced
level-medium Alert with priority level medium. level-medium, flat level-medium, regular level-medium, enhanced
level-low Alert with priority level low. level-low, flat level-low, regular level-low, enhanced
level-diagnostic Alert with priority level diagnostic. level-diagnostic, flat level-diagnostic, regular level-diagnostic, enhanced
alarm Alarm. alarm, flat alarm, regular alarm, enhanced
warning Warning. warning, flat warning, regular warning, enhanced
caution Caution. caution, flat caution, regular caution, enhanced

Use the level-* values in a project that uses priority levels, or alarm, warning and caution in a project that follows Bridge Alert Management.

The badge always shows an icon: there is no empty type. To show a badge only while a condition is true, bind meta.visible of the component to that condition.

Name Description Property Type
type The icon of the badge, one of the values in the table above. Default auto. value
mode How much the badge stands out: flat, regular or enhanced. Default flat. value

The badge is 16 px at the regular size and is centred in the component’s box; resizing the component does not resize the badge. componentSize sets the size of the badge, in the same steps as the automation buttons:

regular medium large
Regular size Medium size Large size

The colours follow the OpenBridge palette of the session:

Automation Badge in the night palette

Name Description Property Type
componentSize Size of the badge: regular, medium or large. Default regular. value
style Standard Perspective style object. object

The Automation Badge has no component events of its own. The standard Perspective events, such as onClick, are available in the component’s event configuration.

Example 1 — Show the Control Mode of a Device

Section titled “Example 1 — Show the Control Mode of a Device”
  1. Drop an Automation Badge next to the name of the device, and set mode to regular.

  2. Bind type to the control mode with an expression, for example:

    if({[default]Pump01/Local}, 'local', if({[default]Pump01/Auto}, 'auto', 'manual'))

Example 2 — Show the Highest Alarm of a System

Section titled “Example 2 — Show the Highest Alarm of a System”
  1. Drop an Automation Badge and bind type to an expression that gives the severity of the most severe active alarm of the system, as one of level-critical, level-high, level-medium, level-low or level-diagnostic.
  2. Bind meta.visible to an expression that is true while the system has an active alarm, so that the badge is hidden otherwise.

Built on the OpenBridge Design System