Skip to main content

Toggle Switch

The Toggle Switch widget provides a minimal display for boolean states such as on/off, open/closed, or active/inactive. Supply the value from device capabilities, Homey variables, or DataVista action cards.

Toggle switch animation

Add the widget to your dashboard

  1. Open the Homey app and go to Dashboards.
  2. Enter Edit Mode and select Add Widget.
  3. Choose Apps and select DataVista.
  4. Pick the Toggle switch widget.
  5. Click the preview to add it to your dashboard.

Toggle switch widget preview

Configure the widget

SettingDescription
DatasourceSelect a DataVista boolean value*, device capability, or Homey variable.
Refresh intervalPolling frequency when using device capabilities or variables.
Overwrite nameReplace the datasource name with custom text.
Color if trueColor when the value is true.
Color if falseColor when the value is false.
FA icon code if trueFont Awesome 6 (free, solid) Unicode for the true state icon.
FA icon code if falseFont Awesome 6 (free, solid) Unicode for the false state icon.
Show iconDisplay the capability or device icon (capability takes priority).
warning

To use a DataVista boolean value, run the DataVista action card that sets the value at least once so it appears in the widget settings.

FAQ

Why does the switch animate between on and off?

The datasource is missing or unavailable. Reconfigure the datasource setting and select a valid source.

Why is my toggle icon a square box?

Ensure you entered a valid Unicode value for a free Font Awesome v6 solid icon.