Skip to content

Automation Button NEW

The Automation Button NEW is a generic symbol for a device in a single-line diagram or mimic: one component that can be a switch or a converter, depending on the icon you select. It is found in the Automation - OpenBridge section of the Perspective Component Palette as Automation Button NEW (Beta).

Note: This component is in beta: its properties may change in a later version.

Automation Button NEW with a tag and two values

  1. Icon — the symbol of the device, drawn for the on or the off state. See Icon and State.
  2. Tag — the name of the device. See Tag and Values.
  3. Values — any number of rows with a number and a unit.

The component shows the state it is given; it does not change it, and clicking it does nothing unless you configure an event.

An Automation Button NEW dropped from the palette with default properties. The blue frame is the component’s box, as the Designer shows it when the component is selected:

Automation Button NEW with default properties

How It Relates to the Other Automation Buttons

Section titled “How It Relates to the Other Automation Buttons”

The automation buttons — Switch, Converter, Pump and the others — are one component per kind of device. Each draws its icon on a button, shows a status row with On or Off, and has an alert frame, badges, a progress ring, three sizes and a choice of positioning.

The Automation Button NEW follows the newer OpenBridge design for automation symbols, and is one component for several kinds of device:

Automation Button NEW Switch, Converter, …
Device Selected with icon: three switches, four converters. One component per kind of device.
Drawing The icon alone, directly on the line. The icon on a button, or alone with the flat variant.
Text A tag and any number of value rows. A status row and a tag.
Number format numberFormat. —
Alert frame No. Yes.
Badges No. Yes.
Progress ring No. Yes.
Sizes One size. componentSize.
Positioning The icon is always centred in the box. positioning.

Use the Automation Button NEW where a device should show measured values, such as voltage and current, next to its symbol. Use the specific components where you need an alert frame, badges or a progress ring, or a device that the Automation Button NEW has no icon for.


icon selects the symbol, and on selects whether it is drawn for the on or the off state. Bind on to the state of the device. orientation rotates the icon 90° counter-clockwise for a vertical line; the text is not rotated.

icon Off On Off, vertical On, vertical
switch-01 (default) switch-01, off switch-01, on switch-01, off, vertical switch-01, on, vertical
switch-02 switch-02, off switch-02, on switch-02, off, vertical switch-02, on, vertical
switch-03 switch-03, off switch-03, on switch-03, off, vertical switch-03, on, vertical
converter-acdc converter-acdc, off converter-acdc, on converter-acdc, off, vertical converter-acdc, on, vertical
converter-dcdc converter-dcdc, off converter-dcdc, on converter-dcdc, off, vertical converter-dcdc, on, vertical
converter-dcac converter-dcac, off converter-dcac, on converter-dcac, off, vertical converter-dcac, on, vertical
converter-filter-1 converter-filter-1, off converter-filter-1, on converter-filter-1, off, vertical converter-filter-1, on, vertical
  • switch-01, switch-02, switch-03 — switching devices: a link, a blade with contact points, and a changeover switch.
  • converter-acdc, converter-dcdc, converter-dcac — converters from AC to DC, DC to DC and DC to AC.
  • converter-filter-1 — a filter, drawn with a diode symbol.

The off drawing is grey, the on drawing is in the colour of an active line. When on, the icon also gets a thin outline in the background colour, which separates it from a line drawn underneath it.

Name Description Property Type
icon The symbol, one of the seven values in the table above. Default switch-01. value
on Whether the device is on. Selects the on or the off drawing of the icon. Default false. value
orientation horizontal, or vertical to rotate the icon for a vertical line. Default horizontal. value

Set hasTag to true and tag to the name of the device to show it next to the icon. readouts is a list of values: each item has a value and a unit and gives one row below the tag. The numbers are right-aligned and the units left-aligned, so the rows line up.

Tag only Values only Tag and values
Tag only Values only Tag and values

Unlike the other automation buttons, this component has no status row: it does not write On or Off.

labelPosition places the tag and the values on one of the four sides. The icon is always in the centre of the component’s box, and the text is drawn outside the box, starting at its edge. The blue frame is the component’s box:

labelPosition
top Label on top
bottom (default) Label at the bottom
left Label to the left
right Label to the right

Keep the box at its default 48 × 48. In a larger box the icon stays in the centre and the text moves away from it with the edge of the box:

Automation Button NEW in a box of 120 × 80

numberFormat is a Java DecimalFormat pattern that is applied to every value. The digits after the decimal point set the number of decimals: a 0 is a decimal that is always shown, a # one that is shown only when needed. A , in the pattern turns on the thousands separator. The separators themselves follow the language of the browser.

The value 1234.5678 with four patterns:

#,##0.## (default) 0.00 #,##0.0 0
Default format Two decimals One decimal, grouped No decimals
Name Description Property Type
hasTag Show the tag. Default false. value
tag Name of the device, for example Q101. Only shown when hasTag is true. value
labelPosition Side the tag and values are on: top, bottom, left or right. Default bottom. value
readouts The value rows. Empty by default. array
readouts[].value The number. Default 0. value
readouts[].unit Text after the number, for example V. Empty by default. value
numberFormat DecimalFormat pattern for the values. Default #,##0.##. value

Name Description Property Type
style Standard Perspective style object. object

The colours follow the OpenBridge palette of the session:

Automation Button NEW in the night palette

The Automation Button NEW has no component events of its own. The standard Perspective events, such as onClick, are available in the component’s event configuration. See Operating a Device.

Example 1 — Rectifier with Voltage and Current

Section titled “Example 1 — Rectifier with Voltage and Current”
  1. Drop an Automation Button NEW into a coordinate container, with the centre of its box on the line.

  2. Set:

    Property Value
    icon converter-acdc
    hasTag true
    tag T101
    labelPosition right
    numberFormat #,##0.0
  3. Add two items to readouts. Set their unit to V and A, and bind their value to the measurements, for example [default]Rectifier01/Voltage and [default]Rectifier01/Current.

  4. Bind on to the state of the converter, for example [default]Rectifier01/Running.

Built on the OpenBridge Design System