Toggle control¶
A toggle gives the user a switch for changing an entity between on and off. Use it for lights, switches, Home Assistant Input booleans, and other entities that support a toggle action.
Use an Flexible Horseshoe Card input boolean when the switch controls something inside Flexible Horseshoe Card itself, such as labels, a grid, an extra layer, or another display option in the current browser.
Basic configuration¶
This example controls a Home Assistant input boolean:
Selecting the toggle changes the connected entity between on and off.
Entity settings
entity_index: 0 connects the toggle to the first entry in entities. See Entities for entity indexes and optional slots. For a browser-local on/off value, see Flexible Horseshoe Card input boolean.
Configuration options¶
| Option | Description |
|---|---|
type: toggle | Adds a toggle control. |
entity_index | On/off entity or Flexible Horseshoe Card input changed by the toggle. |
xpos, ypos | Position of the toggle in the card. |
width | Width of the toggle. Its height follows the selected style. |
orientation | Displays the toggle horizontally or vertically. |
show.item_style | Uses the ha, ios, or industrial appearance. |
content | Optionally shows an icon inside the moving thumb. |
label | Optional text positioned beside or above the toggle. |
visibility | Shows, hides, or disables the toggle. |
Choose a style¶
The styles change the appearance while keeping the same on/off behavior.
Show an icon¶
A toggle can show an icon inside its moving thumb. The icon follows the on and off states of the selected style:
Omit content for a toggle without an icon.
Use a vertical toggle¶
Set orientation: vertical when the switch should move from bottom to top:
Use a browser-local setting¶
This toggle changes an Flexible Horseshoe Card display setting without creating a Home Assistant helper:
See Flexible Horseshoe Card input boolean for using the on and off state elsewhere in the card.