Switch Facelet

The Switch Facelet renders a toggle switch button that can be tapped to change between on and off states.

Configuration

  • Position
    X, Y position of the top-left corner in screen coordinates [mil].

  • Width
    Width of the switch in [mil]. The height is automatically calculated.

  • Input
    The input source expression. Values 1, on switch to on state; values 0, off or empty switch to off state.

  • Output On
    The provider output expression that is triggered when the switch is turned on.

  • Output Off
    The provider output expression that is triggered when the switch is turned off.

  • Color On
    The background color when the switch is in the on state.

  • Color Off
    The background color when the switch is in the off state.

  • Handle Color
    The color of the switch handle.

  • Smooth
    Enable smooth transition animation between on and off states.

  • Visibility
    A condition expression. The Facelet is displayed if this evaluates to 1.

  • Display Mode

    Mode Description

    Normal

    This Facelet is only displayed in interactive (normal) mode.

    Ambient

    This Facelet is only displayed in ambient mode.

    Always

    This Facelet is displayed in both interactive and ambient mode.

  • Ambient Color
    Select a color for the ambient mode.
    0 uses the common ambient color of the face settings.