Skip to content

Controls card

Switches, sliders, choices and buttons. Each control names an action on the same integration.

1 sample, each at every size that draws differently, then in chat, in the light theme, and as a ring where it has a headline.

controls, medium size
Medium
controls, large size
Large
controls, in chat
In chat
controls, light theme
Light theme

Small draws the same as medium. Wide draws the same as medium. Tall draws the same as medium, so they aren't shown. Only the empty space changes.

Every card also takes the fields all cards share.

FieldTypeWhat it does
type'controls'
itemsControl[]
FieldTypeWhat it does
idstring
labelstring
kind'toggle' | 'slider' | 'select' | 'button' | 'value'value: read-only, e.g. a sensor reading
value?boolean | number | string
options?string[]
min?number
max?number
step?number
color?stringswatch, e.g. a light’s current colour
action?stringaction name on the same integration instance (not needed for ‘value’)
sub?stringsecond line under the label, e.g. “Office · 80%”
args?Record<string, unknown>

Home Assistant · To-do list