Number control¶
A Number control changes a numeric entity or local input in fixed steps with minus and plus buttons. It is useful when exact step-by-step changes are clearer than dragging a slider.
This page shows how to connect a numeric value, choose the control appearance and orientation, replace the symbols with icons, and add a label.
Add a Number control¶
Use a Number control when a numeric value is best changed in exact steps rather than by dragging.
The range and step come from the connected numeric entity/input.
Change the appearance¶
show.item_style accepts four button appearances:
filled_round— filled buttons with rounded corners.filled_square— filled buttons with square corners.outlined_round— border-only buttons with rounded corners.outlined_square— border-only buttons with square corners.
The Number control uses show.item_variant: stepper and show.item_viz: buttons.
Change spacing and press feedback¶
padding controls the inset inside the complete Number control and gap controls the space between the decrease button, value, and increase button. The defaults are 0.5 for both padding directions and 0.5 for the gap.
The complete control background defaults to radius 2 with a transparent fill. Button presses briefly scale the pressed button to 0.9; the default press animation lasts 140 ms with ease-out.
Use icons instead of minus and plus text¶
Icons can make the decrease/increase buttons more compact while keeping the same step behavior.
Add a label¶
Add a label when the value alone does not make the purpose of the Number control obvious.
Use a Home Assistant or local number¶
Use a Home Assistant Number/Input number when the value must exist outside the card. Use a Local input number when the value only controls the card locally.
Configuration options¶
Required applies to the specific form described by that table: Yes means you need the field for that form; No means you can leave it out. Not set means the card adds no explicit value when the option is omitted.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
type: number | string | Yes | — | Selects the Number control. |
entity_index | entity index | Yes | — | Numeric entity/input changed by the control. |
xpos, ypos | number | Yes | — | Position of the complete Number control on the card. |
width | number | No | 30 | Width available for the minus button, current value, and plus button together. |
height | number | No | 10 | Height of the complete Number control. |
orientation | horizontal, vertical | No | horizontal | horizontal places decrease/value/increase left-to-right; vertical stacks them bottom/value/top with matching directional icons. |
show.item_variant | stepper | No | stepper | Uses the minus/value/plus stepper form. |
show.item_viz | buttons | No | buttons | Uses separate decrease and increase button areas around the value. |
show.item_style | filled_round, filled_square, outlined_round, outlined_square | No | filled_square | Chooses filled/outlined buttons with rounded/square corners. |
content | mapping | No | Horizontal − / value / + layout | Minus/plus symbols/icons and value presentation. |
padding | mapping | No | x: 0.5, y: 0.5 | Insets the content from the outer Number-control bounds. |
gap | number | No | 0.5 | Space between the decrease button, value, and increase button. |
background | mapping | No | Radius 2, transparent fill | Styles the complete Number-control background. |
animation.press | mapping | No | Scale 0.9, 140 ms, ease-out | Sets the scale, duration, and easing of the button press feedback. |
label | mapping | No | Not set | Optional label. label.position accepts start, end, top, or bottom. |
visibility | visible, hidden, unavailable / template | No | visible | Shows the control normally, hides it, or displays its unavailable appearance. |