Card features

Some dashboard cards have support for features. These widgets add quick controls to the card. Supported features depend on the card and entity capabilities. Multiple features can be added to a single card.

Screenshot of tile cards with features. Screenshot of tile cards with features.

Features can be enabled on the following cards:

Customizing features

  1. Edit the card and open the Features section.

  2. To add an additional feature to your card, select Add feature.

    • Info: The available options for a feature depend on the entity and type of feature.
  3. On tile cards, you can adjust the feature position.

    • Under Features > Feature position, select Bottom or Inline:

    Screen recording showing how you can now reorder the HVAC modes on the thermostat shown in a tile card.

  4. Reordering features:

    • Some features of the tile card, such as the presets or the HVAC modes of a thermostat, can show buttons.
    • To reorder the buttons, enable Customize and drag and drop the buttons into position.
    • If you don’t like the buttons, you can replace them by a Dropdown instead.
      • Under Style, select the Dropdown option.

    Screen recording showing how you can now reorder the HVAC modes on the thermostat shown in a tile card.

Alarm modes

Widget that displays buttons to arm and disarm an alarm.

The tile card with the alarm modes feature.
features:
  - type: "alarm-modes"
    modes:
      - armed_home
      - armed_away
      - armed_night
      - armed_vacation
      - armed_custom_bypass
      - disarmed

Configuration Variables

type string Required

alarm-modes

modes list (Optional)

List of modes to show on the card. The list can contain armed_home, armed_away, armed_night, armed_vacation, armed_custom_bypass, and disarmed. If not set, all modes supported by the entity are shown.

Bar gauge

Widget that displays the state of a numeric sensor as a horizontal bar.

The tile card with the bar gauge feature.
features:
  - type: "bar-gauge"
    min: 0
    max: 100
    segments:
      - from: 0
        color: '#db4437'
      - from: 35.5
        color: '#ffa600'
      - from: 40
        color: '#43a047'
      - from: 60
        color: '#ffa600'
      - from: 65
        color: '#db4437'

Configuration Variables

type string Required

bar-gauge

min integer (Optional, default: 0)

Minimum value for the gauge range.

max integer (Optional, default: 100)

Maximum value for the gauge range.

severity map (Optional)

Allows setting of colors for different numbers.

green float (Optional)

Value from which to start green color.

yellow float (Optional)

Value from which to start yellow color.

red float (Optional)

Value from which to start red color.

segments list (Optional)

List of colors and their corresponding start values. Segments will override the severity settings.

from float Required

Value from which to start the color.

color string Required

Color of the segment, may be any CSS color declaration like “red”, “#0000FF” or “rgb(255, 120, 0)”.

Button

Widget that displays buttons to control button, input_button, scene, or script.

The tile card with the button feature.
features:
  - type: "button"
    action_name: "Press"
    data:
      variable: some_value

Configuration Variables

type string Required

button

action_name string (Optional)

Text inside the button.

data map (Optional)

Additional data to be passed when the action is executed. Only applies to script.

Climate fan modes

Widget that displays buttons or icons to control the fan mode for a climate device.

The tile card with the climate fan modes feature.
features:
  - type: "climate-fan-modes"
    style: "icons"
    fan_modes:
      - "off"
      - low
      - medium
      - high

Configuration Variables

type string Required

climate-fan-modes

style string (Optional, default: dropdown)

How the fan modes should be displayed. It can be either dropdown or icons.

fan_modes list (Optional)

List of fan modes to show on the card. The list can contain on, off, auto, low, medium, high, middle, focus and diffuse or any other custom fan mode. If not set, all fan modes supported by the entity are shown.

Climate HVAC modes

Widget that displays buttons to control the HVAC mode for a climate.

The tile card with the climate HVAC modes feature.
features:
  - type: "climate-hvac-modes"
    hvac_modes:
      - auto
      - heat_cool
      - heat
      - cool
      - dry
      - fan_only
      - "off"

Configuration Variables

type string Required

climate-hvac-modes

style string (Optional, default: icons)

How the modes should be displayed. It can be either dropdown or icons.

hvac_modes list (Optional)

List of modes to show on the card. The list can contain auto, heat_cool, heat, cool, dry, fan_only, and off. If not set, all HVAC modes supported by the entity are shown.

Climate preset modes

Widget that displays buttons or icons to control the preset mode for a climate.

The tile card with the climate preset modes feature.
features:
  - type: "climate-preset-modes"
    style: "icons"
    preset_modes:
      - home
      - eco

Configuration Variables

type string Required

climate-preset-modes

style string (Optional, default: dropdown)

How the preset modes should be displayed. It can be either dropdown or icons.

preset_modes list (Optional)

List of preset modes to show on the card. The list can contain eco, away, boost, comfort, home, sleep, and activity or any other custom preset mode. If not set, all preset modes supported by the entity are shown.

Climate swing modes

Widget that displays a dropdown or icons to control the swing mode for a climate.

The tile card with the climate swing modes feature.
features:
  - type: "climate-swing-modes"
    style: "icons"
    swing_modes:
      - "on"
      - "off"

Configuration Variables

type string Required

climate-swing-modes

style string (Optional, default: dropdown)

How the swing modes should be displayed. It can be either dropdown or icons.

swing_modes list (Optional)

List of swing modes to show on the card. The list can contain on, off, or any other custom swing mode supported by your climate device. If not set, all swing modes supported by the entity are shown.

Climate swing horizontal modes

Widget that displays a dropdown or icons to control the horizontal swing mode for a climate.

The tile card with the climate swing horizontal modes feature.
features:
  - type: "climate-swing-horizontal-modes"
    style: "dropdown"
    swing_horizontal_modes:
      - "on"
      - "off"

Configuration Variables

type string Required

climate-swing-horizontal-modes

style string (Optional, default: dropdown)

How the horizontal swing modes should be displayed. It can be either dropdown or icons.

swing_horizontal_modes list (Optional)

List of horizontal swing modes to show on the card. The list can contain on, off, or any other custom horizontal swing mode supported by your climate device. If not set, all horizontal swing modes supported by the entity are shown.

Counter actions

Widget that displays buttons to increment, decrement, and reset a counter.

The tile card with the counter actions feature.
features:
  - type: "counter-actions"
    actions:
      - increment
      - decrement
      - reset

Configuration Variables

type string Required

counter-actions

actions list (Optional)

List of actions to show on the card. The list can contain increment, decrement, and reset. If not set, all actions supported by the entity are shown.

Cover open/close

Widget that displays buttons to open, close, or stop a cover.

The tile card with the cover open/close feature.
features:
  - type: "cover-open-close"

Configuration Variables

type string Required

cover-open-close

Cover position

Widget that displays a slider to control the position for a cover.

The tile card with the cover position feature.
features:
  - type: "cover-position"

Configuration Variables

type string Required

cover-position

Cover favorite positions

Widget that displays a dropdown with favorite positions for a cover.

You can customize favorites in a cover’s more info dialogA dialog that shows information about a single entity.. To edit them, press and hold a favorite.

The tile card with the cover favorite positions feature.
features:
  - type: "cover-position-favorite"

Configuration Variables

type string Required

cover-position-favorite

Cover tilt

Widget that displays buttons to open, close, or stop a cover.

The tile card with the cover tilt feature.
features:
  - type: "cover-tilt"

Configuration Variables

type string Required

cover-tilt

Cover favorite tilt positions

Widget that displays a dropdown with favorite tilt positions for a cover.

You can customize favorites in a cover’s more info dialogA dialog that shows information about a single entity.. To edit them, press and hold a favorite.

The tile card with the cover favorite tilt positions feature.
features:
  - type: "cover-tilt-favorite"

Configuration Variables

type string Required

cover-tilt-favorite

Cover tilt position

Widget that displays a slider to control the tilt position for a cover.

The tile card with the cover tilt position feature.
features:
  - type: "cover-tilt-position"

Configuration Variables

type string Required

cover-tilt-position

Date

Widget that displays a button to select a date using the date picker dialog for the date, datetime, and input datetime entities.

The tile card with the date feature.
features:
  - type: "date-set"

Configuration Variables

type string Required

date-set

Fan direction

Widget that displays controls to change direction for a fan.

The tile card with the fan direction feature.
features:
  - type: "fan-direction"

Configuration Variables

type string Required

fan-direction

Fan oscillate

Widget that displays controls to change oscillation state for a fan.

The tile card with the fan oscillate feature.
features:
  - type: "fan-oscillate"

Configuration Variables

type string Required

fan-oscillate

Fan preset modes

Widget that displays buttons or icons to control the preset mode for a fan.

The tile card with the fan preset modes feature.
features:
  - type: "fan-preset-modes"
    preset_modes:
      - auto
      - smart
      - sleep
      - 'on'

Configuration Variables

type string Required

fan-preset-modes

style string (Optional, default: dropdown)

How the preset modes should be displayed. It can be either dropdown or icons.

preset_modes list (Optional)

List of preset modes to show on the card. The list can contain any supported preset modes. If not set, all preset modes supported by the entity are shown.

Fan speed

Widget that displays speed controls for a fan.

The tile card with the fan speed feature.

The available style depends on how many speeds your fan supports:

  • Fans that only support being turned on or off always use buttons.
  • Fans with 2 to 5 speeds use buttons by default, but you can switch to a slider.
  • Fans with 6 to 10 speeds use a slider by default, but you can switch to buttons.
  • Fans with more than 10 speeds always use a slider.

If the buttons don’t fit the width of the card, a slider is shown instead, regardless of whether buttons are the default or your own choice.

features:
  - type: "fan-speed"
    style: "buttons"

Configuration Variables

type string Required

fan-speed

style string (Optional)

Which style of control to display. It can be either buttons or slider. The default depends on how many speeds the fan supports. See above.

Humidifier modes

Widget that displays buttons or icons to control the mode for a humidifier.

The tile card with the humidifier modes feature.
features:
  - type: "humidifier-modes"
    style: "icons"
    modes:
      - home
      - eco

Configuration Variables

type string Required

humidifier-modes

style string (Optional, default: dropdown)

How the modes should be displayed. It can be either dropdown or icons.

modes list (Optional)

List of modes to show on the card. The list can contain normal, eco, away, boost, comfort, home, sleep, auto, and baby or any other custom mode. If not set, all modes supported by the entity are shown.

Humidifier toggle

Widget that displays buttons to turn on or off a humidifier.

The tile card with the humidifier toggle feature.
features:
  - type: "humidifier-toggle"

Configuration Variables

type string Required

humidifier-toggle

Lawn mower commands

Widget that displays buttons to control a lawn mower.

The tile card with the lawn mower commands feature.
features:
  - type: "lawn-mower-commands"
    commands:
      - start_pause
      - dock

Configuration Variables

type string Required

lawn-mower-commands

commands list (Optional)

List of commands to show on the card. The list can contain start_pause, stop, and dock. If not set, all commands supported by the entity are shown.

Light brightness

Widget that displays a slider to select the brightness for a light.

The tile card with the light brightness feature.
features:
  - type: "light-brightness"

Configuration Variables

type string Required

light-brightness

Light color

Widget that displays controls to select the color for a light.

You can show the hue, the saturation, or both. When both are shown, select the small button next to the control to switch between them.

The tile card with the light color feature.
features:
  - type: "light-color"
    controls: "hue"

Configuration Variables

type string Required

light-color

controls string (Optional, default: hue)

Which controls to display. It can be hue, saturation, or hue_saturation.

Light color favorites

Widget that displays a set of buttons to select a color for a light from a list of favorites.

You can customize favorites in a light’s more info dialogA dialog that shows information about a single entity.. The feature shows as many favorites as fit in the available width, following the favorites’ sort order.

The tile card with the light color favorites feature.
features:
  - type: "light-color-favorites"

Configuration Variables

type string Required

light-color-favorites

Light color temp

Widget that displays a slider to select the color temperature for a light.

The tile card with the light color temperature feature.
features:
  - type: "light-color-temp"

Configuration Variables

type string Required

light-color-temp

Light effect

Widget that displays a dropdown to select an effect for a light.

The tile card with the light effect feature.
features:
  - type: "light-effect"

Configuration Variables

type string Required

light-effect

effects list (Optional)

List of effects to show in the dropdown. Use this to filter or reorder the available effects. The effect names depend on your device and can be found in the effect_list attribute of the entity in Settings > Tools > States. When not specified, all effects supported by the entity are shown.

Lock commands

Widget that displays buttons to lock or unlock a lock.

The tile card with the lock commands feature.
features:
  - type: "lock-commands"

Configuration Variables

type string Required

lock-commands

Lock open door

Widget that displays a button to open a door.

The tile card with the lock open door feature.
features:
  - type: "lock-open-door"

Configuration Variables

type string Required

lock-open-door

Media player playback controls

Widget that displays playback controls for a media player.

The tile card with the media player playback controls feature.
features:
  - type: "media-player-playback"
    controls:
      - media_play_pause
      - media_previous_track
      - media_next_track
      - volume_mute

Configuration Variables

type string Required

media-player-playback

controls list (Optional)

List of controls to show on the card. The list can contain turn_on, turn_off, media_play, media_pause, media_play_pause, media_stop, media_previous_track, media_next_track, volume_down, volume_up, volume_mute, shuffle, and repeat. When not specified, the controls are determined automatically based on the capabilities of the media player entity.

Media player sound mode

Widget that displays a dropdown to select the sound mode for a media player.

The tile card with the media player sound mode feature.
features:
  - type: "media-player-sound-mode"
    sound_modes:
      - "movie"
      - "music"
      - "game"

Configuration Variables

type string Required

media-player-sound-mode

sound_modes list (Optional)

List of sound modes to show in the dropdown. Use this to filter or reorder the available sound modes. The sound mode names depend on your device and can be found in the sound_mode_list attribute of the entity in Settings > Tools > States. When not specified, all available sound modes are shown.

Media player source

Widget that displays a dropdown to select the source for a media player.

The tile card with the media player source feature.
features:
  - type: "media-player-source"
    sources:
      - "TV"
      - "Bluetooth"
      - "Radio"

Configuration Variables

type string Required

media-player-source

sources list (Optional)

List of sources to show in the dropdown. Use this to filter or reorder the available sources. The source names depend on your device. When not specified, all available sources are shown.

Media player volume buttons

Widget that displays buttons to control the volume for a media player.

The tile card with the media player volume buttons feature.
features:
  - type: "media-player-volume-buttons"

Configuration Variables

type string Required

media-player-volume-buttons

step integer (Optional, default: 5)

The step size of the volume. The default is 5%.

show_mute_button boolean (Optional, default: true)

Show a button to mute or unmute the volume.

Media player volume slider

Widget that displays a slider to control the volume for a media player.

The tile card with the media player volume slider feature.
features:
  - type: "media-player-volume-slider"

Configuration Variables

type string Required

media-player-volume-slider

show_mute_button boolean (Optional, default: true)

Show a button to mute or unmute the volume.

Numeric input

Widget that displays a slider or buttons to set the value for a number or input number.

The tile card with the numeric input feature.
features:
  - type: "numeric-input"
    style: "buttons"

Configuration Variables

type string Required

numeric-input

style string (Optional, default: slider)

Which style of control to display. It can be either buttons or slider.

Select options

Widget that displays a dropdown to select an option for a select or input select.

The tile card with the select options feature.
features:
  - type: "select-options"

Configuration Variables

type string Required

select-options

style string (Optional, default: dropdown)

How the options should be displayed. It can be either buttons or dropdown.

options list (Optional)

List of options to show on the card. If not specified, all available options from the entity are displayed.

Target humidity

Widget that displays a slider or buttons to select the target humidity for a humidifier or a climate entity.

The tile card with the target humidity feature.
features:
  - type: "target-humidity"
    style: "buttons"

Configuration Variables

type string Required

target-humidity

style string (Optional, default: slider)

How the target humidity should be displayed. It can be either buttons or slider.

Target temperature

Widget that displays buttons or a slider to select the target temperature for a climate or a water heater. For climate entities with a target temperature range, the feature shows separate controls for the low and high targets.

Tile cards with the target temperature feature, using the buttons style (left) and the slider style (right).
features:
  - type: "target-temperature"
    style: "slider"

Configuration Variables

type string Required

target-temperature

style string (Optional, default: buttons)

How the target temperature should be displayed. It can be either buttons or slider.

Timer actions

Widget that displays buttons to start, pause, cancel, and finish a timer. Buttons are only enabled when the action is valid for the current timer state. While the timer is running, the start button becomes a restart button, which restarts the timer with the duration it was last started with, ignoring the remaining time.

The tile card with the timer actions feature.
features:
  - type: "timer-actions"
    actions:
      - start
      - pause
      - cancel
      - finish

Configuration Variables

type string Required

timer-actions

actions list (Optional)

List of actions to show on the card. The list can contain start, pause, cancel, and finish. If not set, start, pause, and cancel are shown.

Timer presets

Widget that displays the preset durations of a timer. Selecting a preset starts the timer with that duration. Presets can be shown as a row of buttons or as a dropdown.

Presets belong to the timer entity and are managed in its more info dialogA dialog that shows information about a single entity., that you open by selecting the entity. Then go to Menu > Edit presets to add, edit, delete, or reorder them. A timer has no presets until you add some, and the widget is hidden while the list is empty.

The tile card with the timer presets feature.
features:
  - type: "timer-presets"
    style: "buttons"

Configuration Variables

type string Required

timer-presets

style string (Optional, default: buttons)

Which style of control to display. It can be either buttons or dropdown.

Toggle

Widget that displays a button to toggle a switch or input boolean entity on or off.

The tile card with the toggle feature.
features:
  - type: "toggle"

Configuration Variables

type string Required

toggle

Trend graph

Widget that displays a trend of the history for a numeric sensor.

The tile card with the trend graph feature.
features:
  - type: "trend-graph"
    hours_to_show: 24
    detail: true

Configuration Variables

type string Required

trend-graph

hours_to_show integer (Optional, default: 24)

Hours to show in graph. Minimum is 1 hour. Big values can result in delayed rendering, especially if the selected entities have a lot of state changes.

detail boolean (Optional, default: true)

Show more detail in the graph. When enabled, samples to 1 point per 5 pixels. When disabled, samples to 1 point per hour using mean values for a smoother graph.

Note

The hours_to_show option controls the time range of historical data shown in the graph. The amount of history available depends on the Recorder’s purge_keep_days setting. By default, the Recorder purges data older than 10 days. See the Recorder integration documentation for more information.

Update actions

Widget that displays actions to install or skip an update.

The tile card with the update actions feature.
features:
  - type: "update-actions"
    backup: "ask"

Configuration Variables

type string Required

update-actions

backup list (Optional, default: ask)

Whether a backup should be done before updating. The value can be ask, yes, or no. ask will open a dialog to ask if a backup should be done.

Vacuum commands

Widget that displays buttons to control a vacuum.

The tile card with the vacuum commands feature.
features:
  - type: "vacuum-commands"
    commands:
      - start_pause
      - stop
      - clean_spot
      - locate
      - return_home

Configuration Variables

type string Required

vacuum-commands

commands list Required

List of commands to show on the card. The list can contain start_pause, stop, clean_spot, locate, and return_home.

Vacuum fan speed

Widget that displays a dropdown to select the fan speed for a vacuum.

The tile card with the vacuum fan speed feature.
features:
  - type: "vacuum-fan-speed"

Configuration Variables

type string Required

vacuum-fan-speed

fan_speeds list (Optional)

List of fan speeds to show in the dropdown. Use this to filter or reorder the available fan speeds. The fan speed names depend on your device and can be found in the fan_speed_list attribute of the entity in Settings > Tools > States. When not specified, all available fan speeds are shown.

Valve open/close

Widget that displays buttons to open, close, or stop a valve.

The tile card with the valve open/close feature.
features:
  - type: "valve-open-close"

Configuration Variables

type string Required

valve-open-close

Valve position

Widget that displays a slider to control the position for a valve.

The tile card with the valve position feature.
features:
  - type: "valve-position"

Configuration Variables

type string Required

valve-position

Valve favorite positions

Widget that displays a dropdown with favorite positions for a valve.

You can customize favorites in a valve’s more info dialogA dialog that shows information about a single entity.. To edit them, press and hold a favorite.

The tile card with the valve favorite positions feature.
features:
  - type: "valve-position-favorite"

Configuration Variables

type string Required

valve-position-favorite

Water heater operation modes

Widget that displays buttons to control the operation mode of a water heater.

The tile card with the water heater operation modes feature.
features:
  - type: "water-heater-operation-modes"
    operation_modes:
      - electric
      - gas
      - heat_pump
      - eco
      - performance
      - high_demand
      - "off"

Configuration Variables

type string Required

water-heater-operation-modes

operation_modes list (Optional)

List of modes to show on the card. The list can contain electric, gas, heat_pump, eco, performance, high_demand, and off. If not set, all operation modes supported by the entity are shown.

Area control

Widget that displays buttons to control different types of entities in your area. You can control all entities of a specific domain or select individual entities.

The area card with the area controls feature.
features:
  - type: "area-controls"
    controls:
      - light
      - fan
      - switch
      - entity_id: light.kitchen_counter

Configuration Variables

type string Required

area-controls

controls list (Optional)

List of controls to show on the card. The list can contain domain names like light, fan, and switch, or mappings that specify a particular entity by using the entity_id key, as shown in the example above. If not set, the default set of controls supported in the area is shown.

Temperature forecast

Widget that displays a bar chart of the upcoming high and low temperatures for a weather entity. When the forecast type is set to hourly, a filled curve is shown instead. By default, the bars use a temperature-aware gradient with cool blues for the lowest values and warm reds for the highest values.

The tile card with the temperature forecast feature.
features:
  - type: "temperature-forecast"
    forecast_type: daily
    days_to_show: 7

Configuration Variables

type string Required

temperature-forecast

forecast_type string (Optional)

The forecast resolution to display. The value can be daily, twice_daily, or hourly. When not specified, the best resolution supported by the entity is used, in this order: daily, twice_daily, hourly.

days_to_show integer (Optional, default: 7)

Number of days to show in the chart. Used when forecast_type is daily or twice_daily.

hours_to_show integer (Optional, default: 24)

Number of hours to show in the chart. Used when forecast_type is hourly.

color string (Optional)

Color to use for the bars or curve. Accepts any Home Assistant color token or CSS color value. When not specified, a temperature-aware gradient is used.

show_labels boolean (Optional, default: true)

Show day or hour labels under the chart.

Precipitation forecast

Widget that displays a bar chart of the upcoming precipitation for a weather entity. You can choose between showing the precipitation amount or the precipitation probability. Empty slots are shown as a small dot to keep the timeline easy to read.

The tile card with the precipitation forecast feature.
features:
  - type: "precipitation-forecast"
    forecast_type: daily
    days_to_show: 7
    precipitation_type: amount

Configuration Variables

type string Required

precipitation-forecast

forecast_type string (Optional)

The forecast resolution to display. The value can be daily, twice_daily, or hourly. When not specified, the best resolution supported by the entity is used, in this order: daily, twice_daily, hourly.

days_to_show integer (Optional, default: 7)

Number of days to show in the chart. Used when forecast_type is daily or twice_daily.

hours_to_show integer (Optional, default: 24)

Number of hours to show in the chart. Used when forecast_type is hourly.

precipitation_type string (Optional, default: amount)

What to display on the chart. The value can be amount to show the precipitation amount, or probability to show the chance of precipitation.

color string (Optional)

Color to use for the bars. Accepts any Home Assistant color token or CSS color value. Defaults to the rainy weather state color.

show_labels boolean (Optional, default: true)

Show day or hour labels under the chart.