Number control¶
A number control gives the user minus and plus buttons for changing a numeric value in fixed steps. Use it for settings such as a history duration, target value, threshold, scale limit, or display size.
Connect it to a Home Assistant Number or Input number when the value is also used by Home Assistant. Use an Flexible Horseshoe Card input number when the value only controls Flexible Horseshoe Card cards in the current browser.
Basic configuration¶
This example lets the user choose a history period between 1 and 14 days:
The control uses the current value, minimum, maximum, step, and unit from the connected entity.
Entity and input settings
entity_index: 0 connects the control to the first entry in entities. The initial, min, max, step, unit, and scope settings configure the Flexible Horseshoe Card input, not the Number control. See Flexible Horseshoe Card input number for all input settings and Entities for entity indexes and optional slots.
Configuration options¶
| Option | Description |
|---|---|
type: number | Adds a number control. |
entity_index | Numeric entity or Flexible Horseshoe Card input changed by the control. |
xpos, ypos | Position of the control in the card. |
width, height | Size of the complete control. |
orientation | Places the buttons horizontally or vertically. |
show.item_style | Uses filled_round, filled_square, outlined_round, or outlined_square. |
content | Changes the minus and plus symbols, icons, or value presentation. |
label | Optional text positioned beside or above the control. |
visibility | Shows, hides, or disables the control. |
The number range and step belong to the connected entity or Flexible Horseshoe Card input.
Choose an appearance¶
Use icons for minus and plus¶
The default buttons show minus and plus as text. Use icons when they fit the card better:
When icon mode is used, a vertical control uses directional icons appropriate for its orientation.
Show a label¶
Place a label beside the control when the value needs a short description: