Overview Switch universal


With this control element a button with the states on/off is realized. The state on applies when the value of the connected variable matches the parameter value for on, otherwise the state is off. With this function, this control element can also send, for example, 0 and 100 for on/off.



Display

Text when off
Text to be displayed in the off state. The size of the text is scaled automatically with the control element. Line breaks can be inserted with the special character "\n", for example "Line1\nLine2"
Text when onText to be displayed in the on state. The size of the text is scaled automatically with the control element. Line breaks can be inserted with the special character "\n", for example "Line1\nLine2"
Background when off
Background color in the off state
Background when onBackground color in the on state
Font when off
Font color in the off state
Font when on Font color in the on state


Function

Value type
  • Toggle: The value is toggled between the parameters value for on/off.
  • Push button (on/off): When pressed, the value for on is sent, when released the value for off.
  • Value on (static): Send value on only. When released, the value on is sent.
  • Push button (on only): Send value on only. When pressed the value for on is sent. Otherwise behaves like a push button.

Important: The push-button function with a longer press-and-hold is not possible on all operating systems; for example, under Windows 10 in tablet mode the long key press via touch is managed by the operating system as a selection.
Switch on when Display of button pressed (on):
  • Value equals value on:  The button is displayed as pressed when the value of the connected variable equals the parameter value on.
  • Value not equal to value off: The button is displayed as pressed when the value of the connected variable is not equal to the parameter value off.

The difference between the two parameters is that in the first case the button is only displayed as pressed when the current value matches the value on, otherwise not pressed. If value on is, for example, 1 and the current value is 10, the button is not displayed as pressed. With the second option the button is displayed as pressed (button pressed is any value except 0).

Value for off
Value for the off state.
Value for onValue for the on state.
Type switch Triggering of the switching function:
  • Short: Switching on a short key press.
  • Long: Switching only on a longer press-and-hold.
PIN Optionally, a 4-digit PIN query can be entered here. Switching is then only possible after entering the correct PIN.

Graphic

Graphic when off
Graphic for the off state
Graphic when onGraphic for the on state
Alignment hor.
Horizontal alignment of the graphic (left, centered, right)
Alignment ver. Vertical alignment of the graphic (top, middle, bottom).
Zoom
Scaling of the graphic in %.
OffsetX Horizontal offset of the graphic in % of the width.
OffsetY Vertical offset of the graphic in % of the height.

Frame

Frame See general properties


Connected variables

Switch
Switching address.
Switch status Optional status feedback.


See also General properties of all control elements