RepositoryTypeScript
j0sp0r

j0sp0r/m3-cards

Material 3–inspired Lovelace cards for Home Assistant — 63 cards, built natively with Lit, no button-card/card-mod dependency

247stars
12forks
9issues
1views

Featured achievements

The project's latest awards

2
TINIX TRENDING·Topic: custom-card

#2 Repository of the week

3
TINIX TRENDING·Topic: lovelace

#3 Repository of the week

6
TINIX TRENDING·Topic: material-design

#6 Repository of the week

M3 Cards

⚠️ Beta: This project is new and under active development. Configuration options may still change between versions — please file an issue if you run into something.

Material 3–inspired, native Lovelace cards for Home Assistant — built with TypeScript + Lit, without any dependency on button-card, card-mod, mod-card, or stack-in-card. A single bundle (m3-cards.js) registers 44 cards, all sharing one design language.

New here? Start with the category that matches what you want to show — every card links to its full documentation further down.

🔌 Energy & power

CardTypeWhat it does
Energym3-energy-cardBar chart per day/hour/month, or a solar day timeline with forecast
Costm3-cost-cardCost breakdown with projection, comparison chip and daily bars
Gaugem3-gauge-cardSemicircular gauge for the ratio of two quantities
Energy Flowm3-energy-flow-cardNode diagram of today's solar/grid/home flows
Power Summarym3-power-summary-cardGrid balance, consumption, generation and self-sufficiency
Power Listm3-power-list-cardSorted list of power sensors with threshold filter and share bar
Top Consumersm3-top-consumers-cardRanking of the largest consumers, by kWh or cost
Counterm3-counter-cardA meter reading as a rolling digit display

🌡️ Climate & weather

CardTypeWhat it does
Climatem3-climate-cardFull control for a climate entity (AC / thermostat)
Climate Minim3-climate-card-miniCompact climate variant for narrow layouts
Climate Overviewm3-climate-overview-cardRoom-by-room temperature/humidity, grouped by area
Weatherm3-weather-cardTemperature curve, precipitation bars, sun markers

💡 Light, media & control

CardTypeWhat it does
Lightm3-light-cardLight control with a wavy brightness slider, color temp and color wheel
Mediam3-media-cardMedia player with artwork colors, wave sliders and a library browser
Buttonm3-button-cardGeneric button/entity card for any domain
Coverm3-cover-cardBlinds/shutters that adapt to the device's capabilities, plus a group mode
Lights Overviewm3-lights-overview-cardEvery light grouped by area, with separate display and toggle filters
Chip Buttonsm3-chip-buttons-cardA row of compact entity pills, each with its own actions

🚪 Presence & safety

CardTypeWhat it does
Presencem3-presence-cardWho's home — avatar grid for person/device_tracker
Occupancym3-occupancy-cardRoom-by-room presence with an activity timeline
Leakm3-leak-cardWater-sensor overview with a quiet OK state and a loud alarm + shut-off

🧺 Household & planning

CardTypeWhat it does
Progressm3-progress-cardAppliance progress with a Material 3 wavy indicator
Supplym3-supply-cardConsumables: amount left, range estimate, one-tap refill
Todom3-todo-cardShopping and task lists with quick-add chips
Wastem3-waste-cardBin-collection schedule with a two-week timeline and reminder mode
Timem3-time-cardTime picker for an input_datetime helper
Clockm3-clock-cardA clock in five styles, from rounded tiles to an organic analogue dial
Statusm3-status-cardBig numbers, text and yes/no states, with a rule list behind them
Headingm3-heading-cardSection headings between the cards: simple, with status, a divider, or collapsible
Navm3-nav-cardA navigation bar for the dashboard, in five variants, with a pull-up drawer
Searchm3-search-cardA Material 3 search bar that opens Home Assistant's own search and Assist
Groupm3-group-cardSeveral cards on one shared surface, so they read as a single block
Roomm3-room-cardOne card per area: every device type it finds, climate readings and presence
Humidifierm3-humidifier-cardTarget humidity, mode, fan speed and extras — and it need not be a humidifier entity
Appliancem3-appliance-cardAny appliance: status, progress, sliders, programme pills, action buttons and chips
Calendarm3-calendar-cardAgenda and month grid for any number of calendars
Vacuumm3-vacuum-cardA robot vacuum: state, battery, start/pause and suction, with every companion entity found on the device
Vacuum maintenancem3-vacuum-maintenance-cardWhat is wearing out on a robot vacuum, what its dock can be told to do, and what it has done so far
3D printerm3-printer-cardA 3D printer as one card instead of sixteen tiles — state, job and controls, with the layout following what the machine is doing

🛠️ System & maintenance

CardTypeWhat it does
Batterym3-battery-cardBattery levels across all device_class: battery sensors
Updatesm3-updates-cardEvery available update (core, OS, add-ons, HACS, firmware)
NASm3-nas-cardNAS volumes, CPU, RAM, network via Glances or Synology DSM + Syncthing
Systemm3-system-cardThe same, fed by the System Monitor integration

🐠 Special

CardTypeWhat it does
Aquariumm3-aquarium-cardPer-aquarium devices, lighting arc, camera and maintenance

All cards at a glance:

Overview

Taken on a real Home Assistant instance. The washing machine, floor lamp, speaker, air conditioner and the updates show simulated states so the active renderings (wave indicator, version jump, running installation) are visible in the image — everything else is live data.

Features

  • Frosted glass card look (can be turned off for solid themes), shared design language across all cards
  • Mode pills with shape-morph animation (round → rounded rectangle)
  • Temperature stepper with step size/limits taken from the entity
  • Optional external temperature/humidity sensors, window and battery chips
  • Preset support (tap to cycle, as its own row or as a pill in the mode row)
  • Configurable card height + full height matching in horizontal-stack/grid layouts for tiles of exactly equal height
  • Full graphical editor (no YAML required) — modeled after the native tile card editor, with a unified appearance panel (corner-radius presets, per-corner overrides) across every card
  • unavailable handling without crashing: values shown as "–", controls dimmed
  • Localized in German/English (follows hass.locale.language)
  • Accessible: every interactive element is keyboard-reachable (Tab/Enter/Space) with a visible focus ring and aria-label
  • Respects prefers-reduced-motion throughout, additionally overridable per card via animation: auto | on | off
  • Old configs (e.g. animations: true/false) are migrated to the current schema automatically on load — no manual dashboard edits needed
  • Jinja2 templates in every card's own string fields, live over the websocket — no template-sensor helper per card

Installation

Open this repository in HACS.

The button opens the repository straight in your own Home Assistant — press Download and you are done. To add it by hand instead:

  1. HACS → menu (⋮) in the top right → Custom repositories
  2. Enter the repository URL, pick type Dashboard, then Add (not Integration — this is a Lovelace card, not an integration)
  3. Search for "M3 Cards", open it and press Download
  4. Reload Home Assistant

Manual

  1. Download the latest m3-cards.js from the Releases
  2. Copy it to config/www/m3-cards.js
  3. Add the resource in Home Assistant: Settings → Dashboards → Resources → Add resource
    • URL: /local/m3-cards.js
    • Type: JavaScript module

Templates

Every card accepts Jinja2 in its own string fields — name, icon, colour, unit, whatever that card reads out of its config. A field is treated as a template as soon as it contains {{ or {%; everything else is left alone.

type: custom:m3-button-card
entity: light.kitchen
name: "{{ states('sensor.kitchen_temperature') | round(1) }} °C"
icon: >-
  {{ 'mdi:lightbulb-on' if is_state('light.kitchen', 'on') else 'mdi:lightbulb' }}

Before, a field could only be a fixed string or one entity's raw state. A composed label meant a template-sensor helper in configuration.yaml for every card that wanted one — and an icon that depends on an entity had no way to be expressed at all:

# configuration.yaml — one of these per card, no longer needed
template:
  - sensor:
      - name: Kitchen label
        state: "{{ states('sensor.kitchen_temperature') | round(1) }} °C"

Values are pushed, not polled: the card subscribes to the template over Home Assistant's websocket, and Home Assistant re-renders it whenever anything the template reads changes. One subscription per distinct template — two fields sharing the same string share one — and they are all closed when the card leaves the page.

A card that uses no templates behaves exactly as it always has and pays nothing for the feature: nothing is walked, subscribed or copied.

Nested cards are left alone

Card configs can contain other cards: cards: on the group and room cards, the content of a popup action, a mushroom card dropped into a slot. Templates inside those are not rendered here — they are passed through untouched to the card they belong to.

type: custom:m3-room-card
area: kitchen
name: "{{ states('sensor.kitchen_temperature') | round(1) }} °C"   # rendered here
cards:
  - type: custom:mushroom-template-card
    primary: "{{ states('sensor.kitchen_humidity') }} %"           # left for mushroom

The reason is that the inner card renders its own templates, and it renders them live. Resolving primary above would hand mushroom the one string it happened to say at the moment the room card was configured — the field would freeze at that value and never follow the sensor again. The rule is mechanical: the walk stops at any nested object that carries its own type, which is what a card config looks like whatever card it is for.

The nav card is the exception in the other direction: its entries had templates before this existed, with hidden / disabled read as booleans, and they work as documented under M3 Nav Card.

M3 Climate Card

Add the card via the dashboard editor (search for "M3 Climate Card") or via YAML:

Climate Card Climate Card (heating thermostat)
Configuration, examples & options
type: custom:m3-climate-card
entity: climate.living_room
name: Living Room
show_presets: true
preset_style: chip # chip | pill
show_sensors: true
temperature_chip_placement: info_row # info_row | header
temperature_sensor: sensor.living_room_temperature
humidity_sensor: sensor.living_room_humidity
window_sensor: binary_sensor.living_room_window
battery_sensor: sensor.thermostat_battery
battery_threshold: 20
glass_background: true
hidden_modes: []
height: 380
mode_colors:
  heat: "#e57368"
  cool: "#6ba7dc"

Auto (heat/cool): a band, not one number

A thermostat in heat_cool — "Auto" on an Ecobee, and on most American systems — does not hold one setpoint. It holds two: target_temp_low, the temperature it heats up to, and target_temp_high, the one it starts cooling above. In that mode there is no temperature attribute at all.

The card therefore reads the attributes, not the mode, and draws what is actually there. A single setpoint gets the one stepper row it always had. A band gets two of the same row stacked at the bottom of the card, labelled "Heat to" and "Cool above", each with its own minus and plus. Nothing needs to be configured — an entity that switches between heat and heat_cool switches control with it.

Two rows rather than one slider with two handles: the card's target has always been a large reading with a minus and a plus either side of it, and a drag track would be a second idiom for the same job. On a six-column tile two handles also sit close enough together to fight each other's touch targets.

The two bounds can neither cross nor meet — a thermostat asked to heat to 21 and cool above 21 is being asked to do both at once — so each one stops one step short of the other. Every adjustment sends both bounds to climate.set_temperature, even the one that did not move: several integrations treat an omitted bound as "no opinion" and reset it to whatever they had. If the entity reports only one of the two, both rows go inert rather than guess at the other.

Earlier versions fell back to target_temp_high and presented it as if it were a single setpoint — worse than showing nothing, because the plus and minus then moved only the cooling bound while the label claimed it was the target temperature (issue #22).

Folding a room away

collapsible: true puts a chevron in the header and folds the card down to that header when it is tapped. The subtitle stays — "occupied · 3 devices on" is exactly what a folded room still needs to say, and a fold that hid it would turn the card into a label.

The state persists per browser, or across devices in an input_boolean via collapse_state_entity — which also lets an automation fold the guest room away while nobody is in it.

type: custom:m3-room-card
area: guest_room
collapsible: true
default_collapsed: true

Setting a header tap_action hands the header to that action and hides the chevron, since the header no longer folds anything — see "Tapping the header".

Configuration options

OptionTypeDefaultDescription
entitystringRequiredclimate.* entity
namestringentity friendly_nameDisplayed name
iconstringmdi:radiator (heating only) / mdi:air-conditionerHeader icon
show_presetsbooleantrueShow preset selector (if the entity supports preset_modes)
preset_stylechip | pillchipPreset as its own wide row (chip) or as an extra pill in the mode row (pill)
show_sensorsbooleantrueShow sensor chips (temperature/humidity)
temperature_chip_placementinfo_row | headerinfo_rowCurrent temperature in the sensor row or as a chip top-right in the header
temperature_sensorstring–External temperature sensor, overrides current_temperature
humidity_sensorstring–External humidity sensor, overrides current_humidity
window_sensorstring–binary_sensor, shows an "Open" chip when state: "on"
battery_sensorstring–Sensor for battery level
battery_thresholdnumber20Threshold (%) below which the battery chip appears
hidden_modesstring[][]HVAC modes that are hidden as a pill despite entity support
glass_backgroundbooleantrueFrosted glass background (off for solid themes)
animationsbooleantrueShape-morph/press animations; false disables all transitions
unavailable_styledimmed | normal | hiddendimmedDisplay when the entity is unavailable/unknown: dimmed (greyed out, not tappable, as before), normal (normal display, mode pills/stepper stay tappable), or hidden (card is fully hidden)
heightnumber (px)– (automatic)Fixed minimum card height. See Equal-height tiles
radiusnumber (px)32Card corner radius (editor offers Square/Slightly rounded/Round/Custom)
cornersobject–Optional per-corner override: top_left, top_right, bottom_right, bottom_left (px) — for asymmetric Material 3 Expressive shapes, only overrides radius for the given corners
mode_colorsobjectsee belowColor override per HVAC mode. The editor shows a text field + color swatch; accepts hex/CSS or HA color names, same as the button card's color
icon_active_colorstringvar(--primary-color)Header icon color when active (not "off")
icon_inactive_colorstringvar(--primary-color)Header icon color in the "off" state
plus_active_colorstringcurrent mode's colorPlus button color when active
plus_inactive_colorstringmode_colors.offPlus button color in the "off" state
minus_active_colorstringvar(--primary-text-color)Minus button color when active
minus_inactive_colorstringvar(--primary-text-color)Minus button color in the "off" state

Without any explicit setting, the icon stays in the theme accent color (--primary-color) as before; minus stays neutral. icon_active_color / icon_inactive_color / plus_active_color / plus_inactive_color / minus_active_color / minus_inactive_color allow a fully independent color per element and state ("off" vs. active).

Default mode colors

ModeColor
off#9e9e9e
heat#e57368
cool#6ba7dc
dry#5dcaa5
auto#5dcaa5
fan_only#b8c4c9
heat_cool#e5a768

Equal-height tiles

HA's native masonry dashboard does not automatically equalize the height of cards next to each other — every column grows independently based on its own content. Two options:

  1. Use horizontal-stack (recommended, no manual value needed): cards in a horizontal-stack are automatically stretched by Home Assistant via flexbox to the height of the tallest card — the M3 cards fill that height completely (including the stepper, which docks to the bottom):
    type: horizontal-stack
    cards:
      - type: custom:m3-climate-card
        entity: climate.ac
      - type: custom:m3-climate-card
        entity: climate.living_room
    
  2. Set height manually: if no horizontal-stack is used, a fixed pixel value (height: 380) can be set per card.

M3 Climate Card Mini

A compact companion card to the full climate card: icon tile + on/off button on top, name + "current temperature · mode" below that, a minus/target-temperature/plus stepper at the bottom (two numbers instead of one when the thermostat holds a heat/cool band). No preset, sensor, or mode-row support — in exchange, two tiles comfortably fit side by side on a phone screen.

Climate Card Mini
Configuration, examples & options
type: custom:m3-climate-card-mini
entity: climate.bedroom
name: Bedroom
glass_background: true
mode_colors:
  heat: "#e57368"
  cool: "#6ba7dc"

Configuration options

OptionTypeDefaultDescription
entitystringRequiredclimate.* entity
namestringentity friendly_nameDisplayed name
iconstringmdi:radiator (heating only) / mdi:air-conditionerIcon in the icon tile
glass_backgroundbooleantrueFrosted glass background (off for solid themes)
animationsbooleantrueTransitions for icon tile/on-off button/stepper; false disables them
unavailable_styledimmed | normal | hiddendimmedDisplay when the entity is unavailable/unknown
radiusnumber (px)28Card corner radius (editor offers Square/Slightly rounded/Round/Custom)
cornersobject–Optional per-corner override: top_left, top_right, bottom_right, bottom_left (px)
mode_colorsobjectsee default mode colorsColor override per HVAC mode
icon_active_colorstringcurrent mode's colorIcon color when heating/cooling is active (not "off")
icon_inactive_colorstringmode_colors.offIcon color in the "off" state
power_active_colorstringcurrent mode's colorOn/off button color when active
power_inactive_colorstringmode_colors.offOn/off button color in the "off" state
plus_active_colorstringcurrent mode's colorPlus button color when active
plus_inactive_colorstringmode_colors.offPlus button color in the "off" state
minus_active_colorstringvar(--primary-text-color)Minus button color when active
minus_inactive_colorstringvar(--primary-text-color)Minus button color in the "off" state

Icon, on/off button, and plus color follow mode_colors by default (including "off"), so they can already be adjusted just via mode_colors.off; minus stays neutral by default. icon_active_color / icon_inactive_color / power_active_color / power_inactive_color / plus_active_color / plus_inactive_color / minus_active_color / minus_inactive_color additionally allow a fully independent color per element and state.

Auto (heat/cool): two setpoints

A thermostat in heat/cool mode has no single target temperature. It holds a band — target_temp_low and target_temp_high, and no temperature at all — so a card that reads temperature finds nothing and shows a dash. The card reads the attributes rather than the mode: whichever a thermostat reports is what it gets, which also keeps it right for the vendors that leave a band attribute lying around in a single-setpoint mode.

When there is a band, both numbers are printed side by side where the single target normally sits: heat-to on the left, cool-above on the right. Tapping one lights it and aims the minus/plus buttons at it; the other stays at full strength, only uncoloured. One pair of buttons is all a tile this size has room for — a second pair would halve both numbers, and this card exists to stay readable two-up on a phone. There is nothing to configure: the band appears because the thermostat reports one.

The two bounds can neither meet nor cross. Each stops one step short of the other, since a thermostat told to heat to 21 and cool above 21 is being asked to do both at once. Every adjustment sends both bounds together, because climate.set_temperature treats an omitted bound as "no opinion" and several integrations then reset it. A bound the thermostat has not reported, or an unavailable entity, shows – and disables the buttons — exactly as a missing single setpoint does.

The on/off button calls homeassistant.toggle on the entity. Tapping the icon tile, the name/status, or the target-temperature display opens the more-info dialog. With a band the two numbers select instead of opening it; the icon tile and the name/status still do.

M3 Button Card

A generic card for entities outside of climate (buttons, switches, lights, scenes, door sensors, ...) in the same design.

Button Card — shapes, icon fills, and the shape following the state
Configuration, examples & options
type: custom:m3-button-card
entity: button.front_door_open
name: Open front door
icon: mdi:door
color: dark-grey
state_colors:
  open: red
  locked: green
show_state: false
show_icon_background: true
show_slider: false
vertical: false
radius: 28
glass_background: true
tap_action:
  action: toggle
hold_action:
  action: more-info

Configuration options

OptionTypeDefaultDescription
entitystring– (optional)Any entity — including automation.*, script.*, scene.*. Can be left empty for a pure action button without an entity state (see below)
namestringentity friendly_nameDisplayed name
iconstringentity icon, otherwise HA's default icon for the domain/device_classIcon. Without an explicit value, the same default icon HA computes for the native tile card is used (e.g. a thermometer for device_class: temperature), not just an icon explicitly set on the entity
colorstringprimary (uses HA's theme accent color)HA color name (red, dark-grey, deep-orange, ...) or any CSS color (#hex, rgb(...)) for the icon/background in the on/active state
inactive_colorstring– (default theme grey)Color for the icon/background in the off/inactive state, same format as color. Also used when static_color: true is set
invert_colorsbooleanfalseSwaps color and inactive_color (or their defaults) without needing custom colors — e.g. to quickly flip "light in the off state, accent color in the on state" into "accent color in the off state, light in the on state"
state_colorsobject–Color override per entity state (e.g. open, locked), overrides color only for that state. The editor offers the most common states as fields; any state name is possible via YAML
static_colorbooleanfalseAlways show the icon/background in inactive_color (or the default grey), regardless of entity state — e.g. for devices that are permanently on and shouldn't be visually highlighted as "active". Freely stylable via inactive_color
unavailable_styledimmed | normal | hiddendimmedDisplay when the entity is unavailable: dimmed (greyed out, not tappable, as before), normal (normal display, stays tappable — e.g. so hold_action: more-info remains usable for diagnostics), or hidden (card is fully hidden)
show_statebooleantrueShow the status line under the name
state_contentstate | last_changed | last_updatedstateContent of the status line: the entity state itself, or a relative time since the last state change / last update (e.g. "3 hours ago")
show_icon_backgroundbooleantrueColored circle behind the icon
icon_sizenumber (px)– (automatic, scales with card height)Fixed icon size independent of card height, so buttons of different height (e.g. rows: 1 vs. rows: 2) have visually equal-sized icons
align_iconsbooleanfalseAlign icons at the same distance from the left edge regardless of card height — useful together with icon_size so stacked cards of different heights line up visually. Vertical centering is unaffected
show_sliderbooleanfalseShow a slider under the icon/text — only effective for light (brightness), cover (position), fan (speed), input_number/number (value)
verticalbooleanfalseIcon above the text instead of next to it
shape_by_statefalseLets the outline follow the entity: a capsule while off, the configured corner radius while on, with the icon well going from circle to rounded square. Animated
icon_off–Icon while the entity is off, for symbols that have a struck-through twin (mdi:power-plug / mdi:power-plug-off). Falls back to icon
icon_filltinttint is a pale wash carrying a coloured glyph; solid fills the well with the accent and darkens the glyph, the louder pairing a phone's quick settings use
radiusnumber (px)28Card corner radius. In the editor as a preset ("Square" 8px / "Slightly rounded" 16px / "Round" 28px) or freely chosen
cornersobject–Optional per-corner override: top_left, top_right, bottom_right, bottom_left (px) — for asymmetric Material 3 Expressive shapes, e.g. a button with only one rounded side
glass_backgroundbooleantrueFrosted glass background
animationsbooleantruePress animation (slight sink-in on tap); false disables all transitions
tap_actionActiondomain-dependentChosen sensibly by default: automation.trigger/script.turn_on/scene.turn_on/button.press for the respective domain, toggle for light/switch/etc., otherwise more-info
hold_actionActionmore-infoAction on long-press (on the whole tile) — same as the native tile card
double_tap_actionActionnoneAction on double-tap (on the whole tile)
icon_tap_actionActionmore-infoIts own tap action for just the icon/icon circle, independent of tap_action — same as the native tile card
icon_hold_actionActionnoneAction on long-press on the icon
icon_double_tap_actionActionnoneAction on double-tap on the icon

Active states (on, open, home, playing, ...) color the icon and icon background in the configured color (or the matching state_colors override); entities without a persistent state (button, script, scene) are always colored.

Triggering automations/scripts/scenes works like any other entity — entity: automation.good_morning is enough, a tap triggers the automation directly thanks to the domain-dependent default tap_action (no manual call-service needed unless you want something different).

Pure action button (without an entity)

entity can be omitted entirely if the card should only trigger an action (e.g. start a script/automation) without showing an entity state. Without entity, no status text is shown and the icon is always colored (like button/script):

type: custom:m3-button-card
name: Feed the cat
icon: mdi:cat
color: dark-grey
tap_action:
  action: perform-action
  perform_action: script.feed_10g
  target: {}

M3 Progress Card

A progress card for household appliances with status/percentage/remaining- time sensors (washing machine, dryer, dishwasher, 3D printer, ...). The progress bar is a Material 3 Expressive "wavy" indicator: a wave-shaped, animated active part, a gap, a flat track, and an end-point dot.

Progress Card
Configuration, examples & options
type: custom:m3-progress-card
entity: sensor.washing_machine_status
percentage_entity: sensor.washing_machine_progress_percent
remaining_entity: sensor.washing_machine_remaining_minutes
name: Washing Machine
icon: mdi:washing-machine
glass_background: true

Status logic

The status sensor is matched (case-insensitively) to one of four categories, each with its own status text:

CategoryDefault status valuesDefault status textBar
Runningwash, spin, rinse"{remaining} min. remaining"animated wave
Preparingdetecting_load"Detecting load…"animated wave (even without a percentage value: an "indeterminate" segment sweeps across the track)
Doneend, finished"Done! Laundry is clean."bar at 100%, wave settles into a straight line
Ready (all other values)–"Ready"hidden, card collapses to header height

The status-value lists are freely configurable via running_states / preparing_states / done_states; {remaining} in the status text is replaced with the value of remaining_entity (if the sensor is missing, only the minutes part is dropped, no crash). percentage_entity/ remaining_entity are optional — without percentage_entity, the bar runs as an indeterminate animation in the "preparing" state.

Configuration options

OptionTypeDefaultDescription
entitystringRequiredStatus sensor
percentage_entitystring–Sensor with progress in percent (0–100)
remaining_entitystring–Sensor with remaining time in minutes
namestringentity friendly_nameDisplayed name
iconstringmdi:washing-machineIcon in the icon tile
status_text_running / _preparing / _done / _readystringsee table aboveStatus text per category; {remaining} as a placeholder in status_text_running
running_states / preparing_states / done_statesstring[]see table aboveStatus values per category (case-insensitive)
animationauto | on | offautoauto/on respect the system's prefers-reduced-motion (then a static line); off always disables the animation
wave_stylewavy | flatwavyOnly with animation: off — frozen wave or straight line; both still show fill level/gap/dot
hide_when_readybooleanfalseHide the whole card in the "ready" state (instead of just the bar)
glass_backgroundbooleantrueFrosted glass background (off for solid themes)
radiusnumber (px)28Card corner radius
cornersobject–Optional per-corner override: top_left, top_right, bottom_right, bottom_left (px)

Colors

All colors are optional; unset fields follow the theme. Internally stored as CSS custom properties (--m3p-accent, --m3p-track, --m3p-dot, …) on the card — so they can also be overridden via card-mod or a theme if needed.

OptionDefaultDescription
accent_color#85b7ebWave, percentage, icon
track_color12% --primary-text-colorFlat track
dot_color70% --primary-text-colorEnd-point dot
icon_coloraccent colorIcon color
icon_background18% icon colorIcon tile background
text_color--primary-text-colorName
secondary_text_color--primary-text-colorStatus line
card_backgroundglass/solid backgroundCard background
state_colors.running / .preparing / .done–Overrides accent_color only for that category (e.g. green when "done")
type: custom:m3-progress-card
entity: sensor.washing_machine_status
percentage_entity: sensor.washing_machine_progress_percent
remaining_entity: sensor.washing_machine_remaining_minutes
state_colors:
  done: green

M3 Energy Card

A bar chart for energy values (solar generation, consumption, ...). mode provides two fundamentally different views:

Energy Card
  • mode: consumption (default) — bars per day or per hour for a single entity, see period below.
  • mode: solar — the day's solar generation timeline including a forecast, see its own section further below.

mode: consumption isn't limited to electricity — unit and icon are taken from the entity (icon automatically based on device_class: gas → flame, water → water drop, otherwise lightning bolt, unless explicitly set via icon), so the mode works just as well for gas or water meters.

Configuration, examples & options

mode: consumption — time ranges via period

  • period: day (default) — the last N days as bars plus today's value prominently in the header, live from the current entity state.
  • period: hour — the last N hours of today plus the running hour, with a value row above the bars.
  • period: month — the last N months (rolling, including the current month) with a projection, average line, and comparison chips, see its own section further below.
type: custom:m3-energy-card
entity: sensor.solar_energy_total_daily
name: Solar Generation
icon: mdi:solar-power
accent_color: "#66bb6a"
period: day
days: 7
type: custom:m3-energy-card
entity: sensor.grid_consumption_hourly
name: Consumption per Hour
icon: mdi:lightning-bolt
period: hour
hours: 6

Data retrieval

Past days/hours/months are loaded primarily via HA's long-term statistics (recorder/statistics_during_period, configurable via statistic_type):

  • state (default for period: day/hour) — the last raw value of the period, suitable for meter sensors that periodically reset (e.g. *_daily/*_hourly sensors like Shelly's). Equivalent to what a mini-graph-card would show with aggregate_func: max.
  • change — the difference within the period, suitable for a never-reset cumulative counter. Default for period: month: even a daily- resetting counter needs change here, because its state at month granularity only returns the value of the last day of the month (a few kWh), not the monthly sum — change correctly accumulates across all daily resets instead.

If the entity has no long-term statistics, a History API fallback kicks in automatically for period: day/hour (values aggregated by maximum per day/hour). For period: month there is no fallback (a month-scale History query would be impractically large) — instead the card shows a clear message. Whether an entity has long-term statistics can be checked under Developer tools → Statistics — the editor also shows a hint for period: day/hour if it doesn't. The current day/hour/month is always computed live (or, for change, via a short-term statistics sum since the period start), not from long-term statistics, since that period isn't complete yet. Data refreshes every 15 minutes in day mode, every 5 minutes in hour mode, and hourly in month mode.

Windows and doors get a chip of their own: any binary_sensor in the area with device class window, door, garage_door or opening. It shows whenever such a sensor exists, closed included — "all shut" is the half of the answer you go looking for on the way out of the house — and turns amber with a count when something is open. window_entities overrides the discovery, which is worth knowing about: window sensors are often left unassigned to an area, and nothing can discover what is not filed anywhere.

Interaction

Tapping a bar briefly shows a value bubble with the amount (with a slight morph: corner radius 9→6px, brightening); tapping the header opens the entity's more-info view. On first render, bars grow in with a stagger (30ms per bar) to their target height — respects the animation option and prefers-reduced-motion. In hour mode, with more than 12 bars (e.g. hours: 24) the value row is automatically hidden and only every other hour label is shown, so it doesn't get too cramped.

period: month — projection, comparison, average

type: custom:m3-energy-card
entity: sensor.grid_consumption_daily
name: Consumption per Month
icon: mdi:calendar-month
period: month
months: 12
  • Projection: the current month is shown as a filled actual bar plus a dashed outline — the outline shows where the month would land at the current daily average (actual value ÷ days elapsed × days in month). Can be disabled via show_projection: false.
  • Average line: a dashed horizontal line at the level of the average of completed months. Can be disabled via show_average: false.
  • Comparison chips below the header (can be disabled via show_comparison: false):
    • Chip 1 compares the projection (or the actual value, if show_projection: false) to the previous month in percent — green for less consumed, red for more. For generation values (e.g. mode: solar or your own meters), flip this logic with higher_is_better: true so "more" is green.
    • Chip 2 shows the average of the completed months ("avg X kWh").
  • With months > 12, only every other month is labeled, so the axis doesn't get too cramped (same threshold as in hour mode).

mode: solar — day timeline with forecast

Shows today's solar generation timeline as bars plus, if available, a forecast overlay (dashed outline):

type: custom:m3-energy-card
mode: solar
source: energy
name: Solar Generation
glass_background: true
  • source: energy (default) — automatically sums all solar sources from the HA Energy dashboard (Settings → Dashboards → Energy), without needing to specify an entity manually.
  • source: entity — uses a single, freely chosen entity instead.
  • Forecast: loaded automatically via energy/solar_forecast if a forecast integration (Forecast.Solar, Solcast, …) is configured in the Energy dashboard. Alternatively, forecast_entity provides your own forecast entity (expects a wh_hours attribute, timestamp → Wh — the format used by Forecast.Solar/Solcast sensors). If no forecast is available, the card works normally, just without the outline bars and without "of X kWh expected" in the header.
  • Bars: past/running hours filled (running hour full accent color, past hours as a 30% tint); future hours only as a dashed outline (pure forecast); if the running hour is still below the forecast, the difference is stacked as a dashed outline on top of the filled bar.
  • Time range: automatically trimmed to the first through last hour with generation or forecast > 0 (not 0–24h, otherwise there would be empty bars in the morning/at night); full_day: true forces the full 0–24h range.
  • Statistic type: solar sensors from the Energy dashboard are almost always lifetime counters (never reset), so the default here is change instead of state (see Data retrieval above).
  • Comparison/average chips (like period: month, see above): one chip shows today's (generation + forecast) value in % over/under yesterday, a second shows the average of the last 7 days. Controlled via show_comparison/show_average (both on by default).

Configuration options

OptionTypeDefaultDescription
modeconsumption | solarconsumptionBars per day/hour or a solar day timeline with forecast
entitystringRequired except for mode: solar + source: energyEnergy sensor
statistic_typestate | changestate (change for mode: solar or period: month)Statistic type for the bar values
periodday | hour | monthdayBars per day, hour, or month — only for mode: consumption
daysnumber7Number of past days (3–14), only for period: day
hoursnumber6Number of past hours (3–24), only for period: hour
monthsnumber12Number of months including the current one (3–24), only for period: month
sourceentity | energyentityOnly for mode: solar: single entity or all Energy-dashboard solar sources
forecast_entitystring—Only for mode: solar: your own forecast entity (optional, fallback when no Energy-dashboard forecast is configured)
full_daybooleanfalseOnly for mode: solar: always show 0–24h instead of trimming
show_valuesbooleanfalseShow the value row above the bars in day mode too (it's on by default in hour mode; not available for mode: solar/period: month)
show_legendbooleantrueOnly for mode: solar: "Generated"/"Forecast" legend below the bars (only visible if a forecast is present)
show_projectionbooleantrueOnly for period: month: show the current month's projection as a dashed outline
show_averagebooleantrueOnly for period: month: show the dashed average line
show_comparisonbooleantrueOnly for period: month: show comparison chips (previous month, average) below the header
higher_is_betterbooleanfalseOnly for period: month: flip the comparison chip's color logic (for generation instead of consumption values)
comparison_better_colorstring#81c784Only for period: month: comparison chip color for "better"
comparison_worse_colorstring#e57368Only for period: month: comparison chip color for "worse"
namestringentity friendly_nameDisplayed name
iconstringmdi:solar-power (mdi:solar-power-variant for mode: solar)Icon in the icon tile
subtitlestring"Last {days} days" / "Today · last {hours} hours" / "Per month · {months} months" / "Today · day timeline"Subtitle override
accent_colorstring#81c784Accent color (current bar, current value, icon, outline forecast/projection)
bar_tint_colorstring28% accent color (30% for mode: solar)Color of past bars
text_color / secondary_text_colorstringtheme defaultName / axis labels
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoAffects the tap-morph + grow-in effect; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Gauge Card

Replaces an energy-grid-neutrality-gauge tile: shows the ratio of two quantities (e.g. grid import vs. export) as a semicircular arc with the net value in the middle. Two segments with a small gap at the transition point — the gap itself is the "pointer", not a separate needle.

Gauge Card
Configuration, examples & options
type: custom:m3-gauge-card
name: Grid Balance

Data sources

  • source: energy (default, no further configuration needed if the HA Energy dashboard is set up): reads the configured grid import/export statistic IDs from energy/get_prefs (multiple meters/tariffs are summed automatically) and loads their daily values.
  • source: entities: two freely chosen sensors (value_a_entity = import, value_b_entity = export), the time reference then lies with the sensors themselves. Not limited to electricity — the unit is taken from the configured entities, e.g. for comparing two gas or water meters.

If both values are 0, the arc shows only the track color ("No data today" or "No Energy dashboard configured"); if only one value is 0, the whole arc fills continuously in one color without a gap.

Animation

The segments grow from 0 to their target angle on first render and ease smoothly on later value changes — respects the animation option and prefers-reduced-motion like the other cards.

Configuration options

OptionTypeDefaultDescription
sourceenergy | entitiesenergyData source
value_a_entity / value_b_entitystring–Only for source: entities — import / export sensor
namestringGrid BalanceDisplayed name
iconstringmdi:transmission-towerIcon in the icon tile
subtitlestring"Today"Subtitle override
label_positive / label_negativestring"Net drawn from grid" / "Net fed into grid"Text below the net value, depending on sign
label_a / label_bstring"Grid import" / "Export"Legend labels
segment_a_color / segment_b_colorstring#8f79e0 / #81c784Segment colors
track_colorstring12% --primary-text-colorArc color with no data
text_color / secondary_text_colorstringtheme defaultNet value / name & legend
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoSegment animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Energy Flow Card

A node diagram of today's energy flows between solar, grid, battery, and home, with animated flow dots along the connection lines and a self-sufficiency bar below.

Energy Flow Card
Configuration, examples & options
type: custom:m3-energy-flow-card
source: energy

Data sources

  • source: energy (default): reads solar, grid import/export, and battery statistics directly from the HA Energy dashboard.
  • source: entities: solar_entity, grid_import_entity, grid_export_entity, battery_entity are freely chosen — useful when no full Energy dashboard is set up or individual sources need to be replaced.

The battery node automatically appears only if a battery source is configured (show_battery: auto, default) — always/never force its visibility regardless.

Animation

The flow dots run via a CSS animation along the lines (flow_speed: slow | normal | fast) and are omitted entirely (not just paused) when animation: "off" or prefers-reduced-motion is active.

Configuration options

OptionTypeDefaultDescription
sourceenergy | entitiesenergyData source
solar_entity / grid_import_entity / grid_export_entity / battery_entitystring–Only for source: entities
namestring"Energy Flow"Displayed name
iconstringmdi:transmission-towerIcon in the icon tile
show_self_sufficiencybooleantrueShow the self-sufficiency bar
show_batteryauto | always | neverautoBattery node visibility
flow_speedslow | normal | fastnormalFlow dot speed
pv_color / grid_color / home_color / battery_colorstringtheme defaultNode colors
self_sufficiency_colorstring#81c784Self-sufficiency bar color
text_color / secondary_text_colorstringtheme defaultName / node labels
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoFlow-dot animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Counter Card

Replaces a tile card for meter readings: shows a cumulative sensor value as an odometer-style digit display, each digit in its own cell. Integer and decimal digits are colored separately (decimals in the accent color). Only the digits that actually changed on the last update roll animated — the rest stay put. Not limited to electricity: unit and decimal places come from the entity, power_entity (power chip) is entirely optional — just as suitable for gas or water meters (m³) as for electricity meters (kWh).

Counter Card
Configuration, examples & options
type: custom:m3-counter-card
entity: sensor.virtual_electricity_meter
power_entity: sensor.total_power_consumption
name: Electricity Meter

Digit display

  • The number of integer digits (digits) grows automatically with the value (default: at least 5) and never shrinks back within a session, even if the value briefly drops — prevents the card width from "jumping". Alternatively, a fixed number can be configured; it too grows as needed to never truncate the value.
  • The decimal separator and number format follow hass.locale (e.g. comma instead of period in German).
  • If the card is narrower than 340px, the digit cells shrink automatically — measured on the card itself, so it works in a narrow column too.
  • unavailable: cells show a dimmed "–", the power chip is hidden.

Power chip and ticker

  • power_entity (optional) shows a chip with a lightning-bolt icon and the current power in the header — default color green, switchable via power_thresholds (e.g. orange above 2000 W, red above 3500 W).
  • show_ticker + daily_entity (both optional) show a thin "+X today" line below the digit display, fed from a separate daily sensor.

Configuration options

OptionTypeDefaultDescription
entitystring–Meter-reading sensor (required)
power_entitystring–Optional power sensor for the header chip
power_entitieslist–Power sensors added together, for a room whose consumption is the sum of its plugs. Wins over power_entity and over discovery, both of which can only name one
daily_entitystring–Optional daily sensor for the ticker line
namestringentity nameDisplayed name
iconstringmdi:counterIcon in the icon tile
subtitlestring"Total reading"Subtitle override
decimalsnumber2Number of decimal places
digitsauto | numberautoInteger digits — automatic (min. 5, never shrinks back) or fixed
show_tickerbooleanfalseShow the "+X today" line (needs daily_entity)
accent_colorstring#85b7ebColor of the decimal-digit cells
cell_backgroundstring8% --primary-text-colorBackground of the integer-digit cells
power_chip_colorstring#81c784Default power-chip color
power_thresholds{ above, color }[]–Chip color change above the given power
text_color / secondary_text_colorstringtheme defaultName / subtitle & ticker
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoRoll animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Power List Card

Replaces an entities card for smart-plug/power overviews: shows power sensors as a sorted list with share bars, hiding inactive devices behind a collapsible section by default.

Power List Card
Configuration, examples & options
type: custom:m3-power-list-card
auto_discover: true
name: Smart Plugs

Entity source

  • Manual list (entities): an array with entity (required) and optionally name, icon, type (consumer | producer, default consumer) per entry. The editor manages the list as a simple sensor picker; per-entry name/icon/type overrides can be fine-tuned directly in the card's YAML editor.
  • auto_discover: true: automatically picks up every sensor entity with device_class: power, optionally restricted to include_area / include_label, plus exclude_entities to exclude specific ones.

Sorting, threshold, producers

  • threshold (default 1 W) determines when a device counts as "active" — prevents sensor noise (e.g. 0.2 W) from showing up as active.
  • sort sorts the active consumer rows: power_desc (default), power_asc, name, or config (order as configured).
  • Entries with type: producer (e.g. a balcony solar unit) appear in their own, visually distinct section above the consumer list and don't count toward the consumers' sorting or total.
  • max_visible (default 0 = all active) limits the visible consumer rows; the rest move into the collapsible section for inactive devices.
  • The list smoothly reorders when crossing the threshold (respects the animation option and prefers-reduced-motion).

Configuration options

OptionTypeDefaultDescription
entitieslist–Manual sensor list (ignored if auto_discover: true)
auto_discoverbooleanfalseAutomatically pick up all sensors with device_class: power
include_area / include_labelstring[]–Only for auto_discover — restrict to areas/labels
exclude_entitiesstring[]–Only for auto_discover — exclude specific entities
thresholdnumber1Threshold in W above which a device counts as "active"
sortpower_desc | power_asc | name | configpower_descSorting of active consumers
max_visiblenumber0Max. visible active rows (0 = all)
show_idle_togglebooleantrueShow the collapsible section for inactive/overflow devices
namestring"Smart Plugs"Displayed name
iconstringmdi:power-socket-deIcon in the icon tile
subtitlestring"{active} of {total} active"Subtitle override
accent_colorstring#85b7ebColor of consumer icons/values
producer_colorstring#f0a24aProducer-section color
bar_tint_colorstringaccent colorShare-bar color
text_color / secondary_text_colorstringtheme defaultName / subtitle & total
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoReorder animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Power Summary Card

Replaces a set of individual tile cards for instantaneous power: combines grid balance, consumption, generation, and optional sub-totals into one card with a clear hierarchy. Pure live values from hass.states, no statistics queries needed.

Power Summary Card
Configuration, examples & options
type: custom:m3-power-summary-card
grid_entity: sensor.grid_power
consumption_entity: sensor.total_power_consumption_pre_solar
solar_entity: sensor.balcony_solar_power
metrics:
  - entity: sensor.total_power_consumption_pre_solar
    name: Consumption
    icon: mdi:home-lightning-bolt
  - entity: sensor.balcony_solar_power
    name: Balcony Solar
    icon: mdi:solar-power-variant
    type: producer
  - entity: sensor.total_power_consumption
    name: Smart Plugs
    icon: mdi:power-socket-de

Sign convention

Instantaneous power sensors at the grid connection encode export/import differently. grid_sign sets the card to the respective convention:

  • negative_is_export (default): negative value = export, positive value = import — the most common convention (e.g. Shelly 3EM, many inverter integrations).
  • positive_is_export: the reverse.

The displayed value is always a positive amount — icon and label show the direction. If the amount is within zero_threshold (default 10 W) of 0, the card shows a neutral "Balanced" state instead of export/import.

Share bar and self-sufficiency

  • If solar_entity is set and generation is > 0, a two-part bar shows how current consumption is covered: self-consumption from solar vs. surplus (when exporting) or vs. grid share (when importing). Can be disabled via show_split_bar.
  • The self-sufficiency chip (show_self_sufficiency, on by default) is computed as (consumption − grid import) / consumption × 100, clamped to 0–100%.
  • If consumption_entity isn't set, consumption is computed as grid import + solar generation.

Configuration options

OptionTypeDefaultDescription
grid_entitystring–Instantaneous power at the grid connection, in W (required)
grid_signnegative_is_export | positive_is_exportnegative_is_exportSign convention of the grid sensor
consumption_entitystring–Home consumption in W (empty = computed from grid import + solar)
solar_entitystring / string[]–Generation sensor(s) in W, summed
metricslist–Additional metric fields (entity, name, icon, color, type)
label_export / label_importstring"Export to grid" / "Import from grid"Main row label per direction
show_self_sufficiencybooleantrueShow the self-sufficiency chip
show_split_barbooleantrueShow the share bar (only with solar_entity configured)
zero_thresholdnumber10Threshold in W for the neutral "balanced" state
kw_thresholdnumber1000Above this value in W, formatted as "X.X kW" instead of "X W"
export_color / import_colorstring#81c784 / #8f79e0Colors for export / import
producer_colorstring#f0a24aColor for producer metrics and the solar share
accent_colorstring#81c784Self-sufficiency chip color
text_color / secondary_text_colorstringtheme defaultValues / labels
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoSmooth value interpolation (300ms); auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Top Consumers Card

Replaces the native energy-devices-graph card: shows the biggest individual consumers for a time range as a ranking, by default fed from the devices section of the HA Energy dashboard.

Top Consumers Card
Configuration, examples & options
type: custom:m3-top-consumers-card
source: energy
period: today
top_count: 7

Data source and time range

  • source: energy (default): reads the configured device statistic IDs from energy/get_prefs and loads their consumption for the chosen period (today, yesterday, week, month) via recorder/statistics_during_period. The header total is the sum of the MEASURED devices, not necessarily the entire home consumption.
  • source: entities: a manual list of energy sensors (kWh) via entities, for when no Energy dashboard is set up or a custom selection is desired.
  • Refreshes every 15 minutes. Devices with 0 kWh in the period are omitted entirely.

Ranking, overflow row, name cleanup

  • Sorted descending by consumption. top_count (default 7) devices are shown as full rows with share bars.
  • All remaining devices land, depending on rest_mode, in a collapsible overflow row (collapse, default), are omitted entirely (hide), or are also shown as full rows (show_all).
  • name_strip removes regex/text patterns from entity names (default: ^Plug \d+ - and Energy$); overridable per device via name in entities (an override disables cleanup for that device).
  • Device colors are assigned cyclically from palette (default: 8 tones from the project's color system), fixed per device via color.
  • Reordering on data refresh is smoothly animated (respects animation/prefers-reduced-motion).

unit_mode: cost — rank by cost instead of kWh

type: custom:m3-top-consumers-card
source: energy
unit_mode: cost
price_source: energy_dashboard

Ranks devices by cost instead of consumption (value per device = kWh × price). The price source (price_source) works identically to the M3 Cost Card further below — see there for details on energy_dashboard/input_number/fixed. Since HA doesn't keep a separate cost statistic per device (only for total grid import), with price_source: energy_dashboard an effective price is derived from total cost ÷ total grid-import consumption for the chosen period. The row subtitle becomes two-part ("{kWh} kWh · {x}% of cost"), header total and overflow row appear in currency.

Configuration options

OptionTypeDefaultDescription
sourceenergy | entitiesenergyData source
entitieslist–Only for source: entities — entity, optionally name/icon/color
periodtoday | yesterday | week | monthtodayTime range
top_countnumber7Number of full rows before the overflow row
rest_modecollapse | hide | show_allcollapseBehavior for devices beyond top_count
name_stripstring[]see aboveRegex/text patterns removed from entity names
unit_modeenergy | costenergyRank by kWh or by cost
price_source / price_entity / price / price_unit / currencysee M3 Cost Cardenergy_dashboardOnly for unit_mode: cost
namestring"Top Consumers"Displayed name
iconstringmdi:trophy-outlineIcon in the icon tile
subtitlestring"{period} · {n} devices"Subtitle override
accent_colorstring#85b7ebColor of the header total
palettestring[]see aboveCyclically assigned device colors
text_color / secondary_text_colorstringtheme defaultName / subtitle & percentage row
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoReorder animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Cost Card

A cost breakdown for a time range (default: current month) with projection, comparison to the previous period, daily bars, and time-range navigation to browse past months. Not limited to electricity — entity can be any cumulative energy sensor (with price_source: energy_dashboard the grid-import cost statistic is used automatically).

Cost Card
Configuration, examples & options
type: custom:m3-cost-card
price_source: energy_dashboard
period: month

Price source (price_source)

  • energy_dashboard (default): reads the cost statistic HA already computes for grid import (stat_cost from energy/get_prefs) — the card doesn't compute anything itself here. Requirement: a price is set for grid import in the Energy dashboard (fixed price or entity_energy_price), AND the recorder has processed at least one statistics run since the price was set — stat_cost can therefore still be null for a while even with a price already configured. Without an available cost statistic, the card shows a hint with a link to /config/energy instead of a made-up number.
  • input_number: price_entity points to an input_number helper (unit price in €/kWh or ct/kWh, detected via price_unit or the helper's unit). Cost = consumption (entity, kWh) × price. The tariff row shows the current price; tapping it opens the helper in the more-info dialog to adjust (no dedicated stepper — the price rarely changes in practice, so a permanently visible slider isn't worth it).
  • fixed: a fixed price in the card config, no tariff interaction.

base_fee (€/month) is added to the cost total pro-rated per day already elapsed, for period: month.

Time-range navigation

Below the daily bars (or directly below the chips for period: day) sits a navigation row with ‹/› arrows that flips to the previous/next period — handy for comparing completed months. For already-completed periods, the projection is automatically dropped (the period is fully over); the comparison chip then compares the actual total to the period before it. The "next" arrow is disabled once the current (running) period is reached.

Projection, comparison, budget

  • Projection chip (show_projection, on by default): projected to the end of the period (amount ÷ days elapsed × total days). Too unreliable on the first day of the period — shows "Projection from tomorrow" instead. Only for the current period, not when browsing past months.
  • Comparison chip (show_comparison, on by default): projection (or, when browsing: the actual total) vs. the previous period in percent, green for less, red for more.
  • Budget chip (optional budget): "X% of budget", color changes above 100%.
  • If feed-in compensation exceeds the cost (a negative total), the card shows the amount in green with the label "Credit".

Configuration options

OptionTypeDefaultDescription
price_sourceenergy_dashboard | input_number | fixedenergy_dashboardPrice source, see above
price_entitystring–Only for input_number — the price helper
pricenumber–Only for fixed — price per kWh
price_uniteur_per_kwh | ct_per_kwhdetected from the helper / eur_per_kwhUnit of the price
base_feenumber–Base fee €/month, pro-rated for period: month
currencystringEURISO currency code for formatting
entitystring–Energy sensor (kWh); not needed with price_source: energy_dashboard
periodday | month | yearmonthTime range
show_projectionbooleantrueShow the projection chip
show_comparisonbooleantrueShow the comparison chip
budgetnumber–Optional budget for the budget chip
namestring"Cost"Displayed name
iconstringmdi:cash-multipleIcon in the icon tile
subtitlestring"Cost in {month}" (period-dependent)Subtitle override
accent_colorstring#f0a24aAccent color
text_color / secondary_text_colorstringtheme defaultAmount / label & footer
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoBar/value animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Light Card

Light control with a header (icon, name, power button) and a wave slider for brightness — drag with mouse or finger, tap to jump, arrow keys for ±5% (Shift for ±1%). The slider uses touch-action: none, so swiping on a phone doesn't conflict with page scrolling.

Light Card
Configuration, examples & options
type: custom:m3-light-card
entity: light.living_room

Brightness changes are throttled (~200ms) and sent as light.turn_on with brightness_pct, and applied optimistically in the UI so dragging stays smooth even on a slow network connection. Entities without brightness support (e.g. simple on/off lamps) show only the header and power button, no slider.

A light that reports color_temp also gets a color temperature row — three presets, or a continuous slider with color_temp_style: slider. show_color_temp: false leaves it out entirely, which keeps the card short on views that hold many lights and only ever change brightness.

Compact

compact: true drops the power button and makes the header icon the toggle instead — the split the native tile card makes, where the icon is the control and the rest of the header opens more-info.

type: custom:m3-light-card
entity: light.living_room
compact: true

The point is horizontal room. The power button and the icon are two lit-up things at opposite ends of a header that is already carrying a name and a subtitle, and in a two-column grid that is the width the name loses first. The swatch already tints with the light's state, so it reads as the on/off control it has become without anything else being added.

Everything else is unchanged: the brightness slider, the colour rows and the member list all still render, and the header still opens more-info.

Configuration options

OptionTypeDefaultDescription
entitystring–light entity (required)
namestringentity nameDisplayed name
iconstringentity iconIcon in the icon tile
transitionnumber–Transition duration (seconds) for light.turn_on calls
compactbooleanfalseDrop the power button and make the header icon the toggle instead
wave_stylewavy | flatwavySlider wave shape
show_color_tempbooleantrueShow the color temperature row; false hides it even on a light that supports it
accent_color / track_color / handle_colorstringtheme defaultSlider colors
text_color / secondary_text_colorstringtheme defaultName / subtitle
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoWave/power-button animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Battery Card

An overview of all battery-level sensors as a sorted list with threshold- based coloring (critical/low/medium/ok), a bar per row, and a collapsible section for the remaining devices.

Battery Card
Configuration, examples & options
type: custom:m3-battery-card
auto_discover: true

Entity source

  • auto_discover: true (default): automatically finds every entity with device_class: battery, optionally filtered via include_area / include_label / exclude_entities. Entries in entities act as a name/icon override per entity in this mode (not a full replacement of the automatic list).
  • auto_discover: false: only the selection explicitly listed in entities.

name_strip removes configurable suffixes from the displayed name (default: " Battery Level", " Batteriestand", " Battery", " Batterie") — so the entity name "Bedroom Battery Level" becomes "Bedroom".

Sorting, thresholds, display

Rows are always unavailable first, then sorted ascending by charge level — so the devices most likely to need attention appear at the top. thresholds (critical/low/medium) determine bar and text color; max_visible + show_healthy_toggle hide healthy devices behind a "show N more" button, similar to the Power List Card.

Low-battery notification

The card only warns while you're looking at it, so the editor's Benachrichtigung section can create a Home Assistant automation that notifies you regardless. Pick one or more notify targets (built from your own notify.* services), a threshold (notify_threshold, default 1 %) and a rhythm, then press "Benachrichtigung einrichten":

  • daily / weekly — one digest at notify_time listing every weak battery ("5 Batterien schwach: …"), so a dozen low devices don't become a dozen pushes. weekly additionally fires only on notify_weekday.
  • on_change — fires the moment a battery crosses below the threshold, one message per device. Re-arms by itself once the battery is back above.

The automation watches exactly the devices the card lists — the manual entities list, or auto-discovery including any area/label filters. That set is resolved when you press the button and written into the automation, so press it again after adding new devices to cover them too. notify_exclude_entities mutes individual devices without removing them from the card — useful for sensors permanently reporting 1 %.

Configuration options

OptionTypeDefaultDescription
auto_discoverbooleantrueAutomatic discovery of all battery sensors
entitieslist–Manual selection, or overrides when auto_discover: true
include_area / include_labellist<string>–Filter for auto-discovery
exclude_entitieslist<string>–Entities excluded from auto-discovery
name_striplist<string>see aboveName suffixes to remove
thresholdsobject (critical/low/medium)10/20/50Percentage thresholds for coloring
max_visiblenumber–Number of directly visible rows, rest behind "show more"
show_healthy_togglebooleantrueCollapsible section for devices above the medium threshold
notify_servicelist<string>–Notify targets for the low-battery reminder (without the notify. prefix)
notify_thresholdnumber1Percentage at or below which a battery counts as weak
notify_modedaily | weekly | on_changedailyDigest at a fixed time, weekly, or immediately on crossing
notify_timestring18:00:00Time of the digest (daily/weekly only)
notify_weekdaystringmonWeekday of the digest (weekly only)
notify_exclude_entitieslist<string>–Devices that never trigger a notification
name / iconstring"Batteries" / mdi:batteryHeader
critical_color / low_color / medium_color / ok_color / unavailable_colorstringtheme defaultThreshold colors
text_color / secondary_text_colorstringtheme defaultName / values
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoExpand/collapse animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Weather Card

A weather card with a header (icon/temperature/condition/chips), a smoothed temperature curve with gradient fill, hourly precipitation bars, sunrise/ sunset markers on the curve, and an optional daily overview.

Weather Card
Configuration, examples & options
type: custom:m3-weather-card
entity: weather.forecast_home

Setting up weather data

The card needs some weather.* entity — it doesn't generate its own weather data. If you don't have a weather integration set up yet (the editor shows a matching hint in that case), Home Assistant's built-in Met.no integration works for most locations: free, no API key needed, automatically uses your Home zone's coordinates.

Settings → Devices & Services → Add Integration → search for "Met.no" → confirm the location. A new weather.* entity is then available to pick.

Other weather integrations (OpenWeatherMap, AccuWeather, Pirate Weather, ...) work the same way, but usually require a free API key from the provider.

The hourly forecast is always loaded; the daily overview only if days is set above 0. Both are fetched via the weather.get_forecasts service and refreshed every 15 minutes. If the weather entity briefly goes unavailable (e.g. a DNS/network hiccup in the integration), the card keeps showing the last known reading with a "Last known reading · X min ago" hint instead of going blank — "Unavailable" only appears if no data was ever received. How many days are actually available depends on the weather integration (Met.no delivers 6 days max); from 4 days on, the daily list collapses by default and expands via a button.

Configuration options

OptionTypeDefaultDescription
entitystring– (required)weather entity
namestringentity's friendly nameHeader title
hoursnumber12Number of hours in the curve
daysnumber0Number of days in the daily overview (0 = hidden)
show_days_togglebooleantrueCollapsible from 4 days on with a "Show N more" button; false = always show all configured days directly
chipslist (apparent_temperature|wind_speed|humidity|pressure|uv_index|visibility)apparent temp, wind, humidityHeader chips shown
show_sunbooleantrueSunrise/sunset markers on the curve (from sun.sun)
show_currentbooleantrueThe header row: icon, temperature, condition and chips
show_chartbooleantrueThe temperature curve with its precipitation bars
show_hourly_iconsbooleantrueCondition icon per shown hour
show_hourly_temperaturesbooleantrueTemperature per shown hour
show_hour_labelsbooleantrueThe hour under each column. Without it the temperatures say nothing about when they apply
show_temp_axisbooleanfalseMin/mid/max temperature marks along the curve
accent_colorstringsolar yellowCurve color
precipitation_colorstring#6ba7dcPrecipitation bar color
gradient_colorstringsame as accent_colorGradient fill under the curve
text_color / secondary_text_colorstringtheme defaultTemperature/title vs. chips/secondary values
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoCurve draw-in animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

Icons, temperatures and hours share one rhythm: the card measures its own width, decides how many columns fit, and then draws every 2nd, 3rd or 4th hour — never a crowded row. A regular rhythm and a strip that ends flush at both edges only both hold when that step divides the row evenly, so the row is cut back to where it does. Ask for twelve hours in a narrow card and eleven are drawn; the curve, the rain bars and the sun markers are cut to the same length so nothing drifts apart.

M3 Presence Card

A presence overview as an avatar grid for person and device_tracker entities, with a status ring (home/away/zone/unknown), an initials avatar, a relative time label ("since 5 min"), and an optional embedded map (hui-map-card).

Presence Card
Configuration, examples & options
type: custom:m3-presence-card
auto_discover: true

Entity source

  • auto_discover: true (default): automatically finds every person entity, optionally filtered via include_area / include_label / exclude_entities.
  • auto_discover: false: only the selection explicitly listed in entities (person.* or device_tracker.*).

Interaction

Tapping a person opens their more-info dialog; a long press (500ms) optionally triggers hold_action (e.g. navigating to a dashboard view).

tap_action replaces the more-info on a tap with any standard Home Assistant action — navigate, url, perform-action, toggle, more-info, or none. Like hold_action it is card-level, one setting for the whole grid, and the person actually tapped is the target: more-info, toggle and a service call that names no target of its own all land on that person's entity_id.

type: custom:m3-presence-card
tap_action:
  action: navigate
  navigation_path: /lovelace/people
hold_action:
  action: more-info

Leaving tap_action unset keeps the more-info dialog a tap has always opened.

A service that takes no entity_id needs an empty target to say so — otherwise the tapped person is passed along and the service call fails:

hold_action:
  action: perform-action
  perform_action: persistent_notification.create
  target: {}
  data:
    message: Someone held a tile

Per-person popups

tap_action is one setting for the whole grid, so it cannot give two people two different destinations. person_popups can: it maps an entity_id to a popup holding any Lovelace card, and a person listed there opens it on tap.

type: custom:m3-presence-card
person_popups:
  person.jane:
    title: Jane            # optional; the person's name is used otherwise
    size: wide             # normal (default) | wide | fullscreen
    content:
      type: vertical-stack
      cards:
        - type: custom:m3-battery-card
          entity: sensor.jane_phone_battery
        - type: map
          entities: [person.jane]

It is keyed by entity rather than configured per entry because entities is a plain list of ids — and is not written at all under auto_discover — so there is no per-person object to hang a popup off.

Only the people listed get one. Everyone else keeps the more-info a tap has always opened, so adding a popup for one person changes nothing for the rest, and no tap_action is needed to switch it on. An explicit tap_action still wins over the default, which is how the popup goes on the long press instead:

tap_action:
  action: more-info
hold_action:
  action: popup

[[entity_id]] and [[name]] anywhere in content are replaced with the tapped person's — the same placeholder syntax the other cards' popups use, and deliberately distinct from card-mod's [[[ ]]] and Jinja's {{ }} so the three do not collide. That means the same body can be repeated for everyone without rewriting the entity into it each time:

person_popups:
  person.jane:
    content:
      type: markdown
      content: "[[name]] is {{ states('[[entity_id]]') }}"

A person named in person_popups who is not on the card is simply never tapped, and an action: popup on someone with no popup configured falls back to their more-info rather than opening an empty dialog.

Configuration options

OptionTypeDefaultDescription
auto_discoverbooleantrueAutomatic discovery of all person entities
entitieslist<string>–Manual selection when auto_discover: false
include_area / include_labellist<string>–Filter for auto-discovery
exclude_entitieslist<string>–Entities excluded from auto-discovery
name / iconstring"Presence" / mdi:account-groupHeader
show_distancebooleanfalseDistance to the home zone (if available)
show_sincebooleantrueRelative time since the last state change
show_mapbooleanfalseEmbedded map below the avatar grid
sorthome_first | namehome_firstSort order: home first or alphabetical
home_color / not_home_color / zone_color / unknown_colorstringgreen/blue/purple/grayStatus ring colors
zone_colorsobject (zone name → color)–Override per named zone
tap_actionaction objectmore-infoAction on a tap on an avatar, targeting that person. Unset, a tap opens their more-info — or their person_popups entry, if they have one. Adds a popup action kind
hold_actionaction object–Action on a long press (500ms) on an avatar, targeting that person
person_popupsobject (entity_id → popup)–Per-person popup: title, size (normal/wide/fullscreen) and a content card. Listed people open theirs on tap
text_color / secondary_text_colorstringtheme defaultNames vs. status line
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoStatus-change animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Media Card

A media player card with a compact view (off/idle) and a full playback view: artwork with color extraction for the accent, a locally interpolated progress wave slider, transport controls (shown/hidden per feature), a volume wave slider, source selection, and a browser for the player's media library and queue.

Media Card
Configuration, examples & options
type: custom:m3-media-card
entity: media_player.living_room

The playback position is interpolated client-side from media_position + media_position_updated_at, so progress keeps advancing smoothly between the player's own state updates. The wave flattens to a straight line when playback is paused, so the bar carries the play state; a stream with no duration shows a travelling wave segment and a Live chip instead of a remaining time.

Transport buttons, shuffle/repeat, seeking and the library all appear only when the entity reports the matching supported_features. This matters more than it sounds: a Chromecast playing a single local file reports neither PREVIOUS_TRACK nor NEXT_TRACK, so those buttons are legitimately absent — the card will not offer an action the player would reject. The same player over Spotify does report them, and they appear.

Players that report no metadata at all (a Chromecast on the Default Media Receiver, for instance) fall back to the file path behind media_content_id: …/<Artist>/<Album>/<Track>.mp3 becomes artist, album and title. Real metadata always wins over this.

Library and queue

Where the player supports BROWSE_MEDIA, a row at the bottom of the card opens Home Assistant's own media browser: breadcrumb navigation, a thumbnail or a media_class icon per row, folders to drill into and playable entries that start on tap. Where the integration also exposes a queue, a second tab lists what is coming up and the collapsed row reads "Up next: …" instead of "Browse library"; integrations without one (Cast and Spotify among them) simply do not get that tab rather than showing an empty one.

A level with thousands of entries is capped at 100 rows with a note pointing further in — one real library here returns 2147 artist folders in a single level, and rendering them all locks the frame.

Configuration options

OptionTypeDefaultDescription
entitystring– (required)media_player entity
namestringentity's friendly nameTitle in the compact view
show_source_selectbooleanfalseSource-select pills (if supported by the entity)
show_shuffle_repeatbooleanfalseShuffle/repeat buttons (if supported); repeat cycles off → all → one
strip_track_numberbooleantrueDrop a leading track number from the title (07 - Enjoy the Silence → Enjoy the Silence). Bounded to one or two digits, so 1979 and 365 Dreams survive
time_displayremaining | totalremainingRight-hand time: remaining with a minus sign, or the total length
meta_chipslist[]Extra chips beside device and source: track, year, bitrate. Each is rendered only when the player actually reports the attribute — note that HA has no standard bitrate attribute, so most integrations never fill that one
show_browserbooleantrueThe library/queue section (only ever shown for players reporting BROWSE_MEDIA)
default_tabqueue | librarylibraryWhich tab opens first, where both exist
browse_heightnumber190Max height of the browse list in px
use_artwork_colorbooleantrueExtract the accent color from the artwork instead of accent_color
accent_colorstringpurple (media palette)Progress/volume color when use_artwork_color: false
text_color / secondary_text_colorstringtheme defaultTitle vs. artist/album
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoProgress/volume animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Climate Overview Card

A compact overview of every temperature/humidity sensor, grouped by room: one tile per room (temperature + humidity merged), a horizontal comparison scale with a dot per room, and a header chip pointing out whichever room deviates furthest from the comfortable range.

Climate Overview Card
Configuration, examples & options
type: custom:m3-climate-overview-card
auto_discover: true

Entity source and room grouping

  • auto_discover: true (default): finds every sensor entity with device_class: temperature or humidity, plus every climate entity — which ones actually make a tile depends on mode. Sensors assigned to a Home Assistant area are grouped into that area's tile (using the area's own name/icon); sensors without an area but sharing a device (e.g. a combo temp+humidity sensor) are grouped by device instead; anything left over becomes its own tile, named from its (cleaned-up) entity name. Rooms without a temperature sensor or thermostat are skipped — humidity alone doesn't make a room. Filter with include_area / exclude_area / include_entities / exclude_entities / include_labels / exclude_labels / include_state / exclude_state.
  • mode: which entities auto_discover reports on and reads from. temperature (default) is today's behaviour — dedicated sensors only, rooms with none are skipped. thermostat reads a room's thermostat when it has no dedicated sensor (or when the thermostat is a "group" tier device — see below — fronting several real ones), falling back to the sensor otherwise. thermostat_only keeps only rooms that have a thermostat at all, always reading from it. A thermostat found this way is also what tile_tap_action: thermostat and popup's default tap open — set per-room with climate_entity under rooms, or discovered automatically as the first climate entity in the room's own area (see below).
  • rooms: a manual list (name, icon, temperature_entity, humidity_entity, climate_entity) instead of auto-discovery — set this to build the overview by hand.

name_strip cleans up names picked up from a device/entity rather than an area (default strips "Temperature"/"Temperatur" suffixes and "Thermometer N - "/"Thermostat " prefixes) — e.g. "Thermometer 6 - Arbeitszimmer" becomes "Arbeitszimmer". Since most real setups have areas only partially configured, this frequently produces more tiles than distinct rooms (one per un-grouped device) — narrow it down with exclude_entities or switch to a manual rooms list for a clean result.

Color stages, comparison scale, outlier chip

Each tile's temperature is colored by temp_thresholds (four boundaries → five stages: cold/cool/comfortable/warm/hot); humidity turns the warning color outside humidity_range. The comparison scale (show_scale) plots every room's temperature as a dot along the same color gradient, with room-name labels alternating above/below (dots-only with a tooltip above 8 rooms); it hides itself with fewer than 2 rooms. The outlier chip (show_outlier_chip) highlights whichever single room sits furthest outside the comfortable band — coldest on the cold side, warmest on the hot side — and disappears once every room is comfortable.

show_trend adds a small arrow when a room's temperature changed by more than 0.5 K in the last hour (fetched via the History API, refreshed every 15 minutes). show_mold_warning adds a warning icon on tiles above 65% humidity and below 18°C.

Opening the thermostat instead of the graph

A tap on a room opens that sensor's own dialog, which is its history graph. tile_tap_action: thermostat opens the room's thermostat instead — the suite's own m3-climate-card-mini, floating over the card, adjustable there and then.

type: custom:m3-climate-overview-card
tile_tap_action: thermostat

The thermostat is found by looking for a climate entity in the same Home Assistant area as the room. Rooms are usually derived from an area, so that is right far more often than not — but a room grouped by device has no area to look in, and there climate_entity names it outright:

rooms:
  - name: Living room
    temperature_entity: sensor.living_room_temperature
    climate_entity: climate.living_room

A room with no thermostat keeps the old behaviour and opens the graph. A tap that opens nothing would be worse than one that opens the wrong thing.

Tap, hold and the popup

tap_action (default more-info) / hold_action (default popup) / double_tap_action (default none) replace tile_tap_action with the same general action system every other card uses, and add a popup action kind. tile_tap_action: thermostat still works as the narrower, older knob for the default tap specifically — an explicit tap_action overrides it.

popup.mode chooses what the popup action opens: default-grid (default) — this same card again, scoped to the tapped room's area (or its entities, for a manually configured room); default-detail — HA's own more-info dialog for the tapped entity, no card of ours involved; or custom — an arbitrary Lovelace card built from popup.card, with [[area_id]], [[device_id]], [[entity_id]], [[name]], [[temperature_entity]], [[humidity_entity]] placeholders resolved against the tapped room before the card is built. popup.inherit_filters (default true) narrows the card's own filter with the popup's rather than replacing it outright.

Configuration options

OptionTypeDefaultDescription
auto_discoverbooleantrueAutomatic discovery of temperature/humidity sensors
modetemperature | thermostat | thermostat_onlytemperatureWhich entities auto-discovery reports on — see above
include_area / exclude_arealist<string>–Area filter for auto-discovery
include_entities / exclude_entitieslist<string>–Entity filter for auto-discovery
include_labels / exclude_labelslist<string>–Label filter for auto-discovery
include_state / exclude_statelist<string>–State filter (unavailable/unknown, or a custom value)
roomslist (name, icon, temperature_entity, humidity_entity, climate_entity)–Manual room list instead of auto-discovery
name_striplist<string>see aboveName suffixes/prefixes to remove from auto-discovered names
name / iconstring"Climate" / mdi:thermometerHeader
show_headerbooleantrueCard header
tile_tap_actionhistory | thermostathistoryNarrower legacy knob for the default tap — an explicit tap_action overrides it
tap_action / hold_action / double_tap_actionaction configmore-info / popup / noneTap/hold/double-tap actions; adds a popup action kind
popupobject (mode, title, inherit_filters, sort, show_header, card, filter fields)–Popup shown by the popup action — see above
sortarea | temp_desc | temp_asc | nameareaTile order
show_scalebooleantrueComparison scale below the tile grid
show_outlier_chipbooleantrueHeader chip for the most conspicuous room
show_trendbooleanfalseArrow for a >0.5 K change in the last hour
show_mold_warningbooleanfalseWarning icon above 65% humidity and below 18°C
temp_thresholdsobject (cold/cool/comfortable/warm)19/20.5/23.5/25Boundaries between the five color stages
humidity_range[number, number][35, 65]Comfort band; outside it uses the warning color
scale_min / scale_maxnumberautomatic from the readingsFixed comparison-scale range
cold_color / cool_color / comfortable_color / warm_color / hot_colorstringblue/teal/green/amber/redTemperature stage colors
humidity_warn_colorstringamberHumidity color outside humidity_range
accent_colorstringtheme defaultHeader icon accent
text_color / secondary_text_colorstringtheme defaultRoom names/values vs. secondary text
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoComparison-scale dot animation; auto/on respect prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Aquarium Card

A per-aquarium overview: water temperature against a target range, a fixed device grid (daylight, night light, pump, heater, CO2), a day-arc lighting schedule, an optional camera, and status chips for anything that needs attention.

M3 Aquarium Card
Configuration, examples & options
type: custom:m3-aquarium-card
water_temperature_entity: sensor.aquarium_water_temperature
light_day:
  entity: switch.aquarium_light_day
pump:
  entity: switch.aquarium_pump
heater:
  entity: switch.aquarium_heater

Device grid

Five fixed slots (light_day, light_night, pump, heater, co2), each an entity + optional name/icon/color — omit a slot's entity to hide that tile. extra_devices adds any number of further tiles (same shape) for anything else worth a toggle (UV sterilizer, dosing pump, ...). Tapping a tile toggles light/switch entities via homeassistant.toggle; momentary domains (button, input_button, scene, script) fire their respective "activate" service instead, and input_datetime entities are stamped with the current date/time (used by the maintenance chip, see below). heater_power_entity (a power sensor) shows live wattage under the heater tile and feeds the "heater has no power" warning chip.

Day-arc lighting schedule

show_schedule (default on) draws a 24h arc under the device grid, colored by phase, with a marker for the current time and a status line ("Day phase · 3h left" / "Night · lights on at 08:00"). Feed it either way:

  • schedule: a manual list of { device: "day" | "night", start, end, color? } entries (start/end as "HH:MM") — the simple, recommended option for a fixed daily cycle.
  • schedule_entity: a schedule domain helper — reads today's [{from, to}] ranges as a single generic "on" phase (less granular than a manual list, but stays in sync with an existing HA schedule helper automatically).

A manual schedule takes priority over schedule_entity when both are set.

Camera

camera_entity + camera_style picks how the card shows the tank camera: none (default), thumbnail (small corner thumbnail, tap to expand), banner (full-width image header), or live (embeds <ha-camera-stream> for an actual video feed — falls back to a still image automatically if the camera integration doesn't support streaming). camera_refresh (seconds, 0 = off) controls how often the still-image variants re-fetch a frame; camera_live_on_tap (default on) opens the live stream dialog on tap for the non-live styles.

Chips, maintenance, and colors

Status chips appear in a fixed priority order and only when relevant: temperature deviation from target_range, heater switched on but drawing no power (needs heater_power_entity), maintenance due (see below), water level (from a binary_sensor, "on" = low), pH/TDS out of range, and current power draw. Up to AQUARIUM_CHIP_MAX chips show directly, the rest collapse into a "+N" overflow chip.

cleaning_entity (an input_datetime helper) + cleaning_interval (days) power the maintenance chip: tapping the "Aquarium säubern"-style tile stamps the helper with now, and the chip counts up from that timestamp ("Reinigung fällig", "vor 3 T.", ...) — no Telegram/notification detour needed, just a plain helper you can also see in the entity's history.

Cleaning reminder

The chip only appears while you're looking at the dashboard, so the editor's Wartung → Erinnerung section can create a real Home Assistant automation that notifies you even when nothing is open. Pick one or more notify targets (the dropdown is built from your own notify.* services) and a daily check time, then press "Erinnerung einrichten". The card then:

  • creates an input_number interval helper if cleaning_interval_entity isn't set yet, seeded with the current cleaning_interval, and writes it back into the card config;
  • creates (or updates) an automation that fires daily at the chosen time and notifies each selected target when more days have passed since cleaning_entity than the interval helper allows.

The automation id is derived from cleaning_entity, so pressing the button again updates the same automation instead of creating duplicates. It's a completely normal automation — visible and editable under Settings → Automations. Because both the chip and the automation read the same cleaning_interval_entity helper, changing the interval there updates both at once.

accent_color (header icon) and the temperature-derived tile colors both have a paired _opacity option (accent_opacity, tile_tint_opacity, 0–100) controlling how strongly that color tints its background — the same "color strength" sliders every card's color picker now exposes (see Changelog).

Configuration options

OptionTypeDefaultDescription
name / iconstringentity name / mdi:fishbowl-outlineHeader
water_temperature_entitystring–sensor with device_class: temperature
target_range[number, number][24, 26]Comfortable water-temperature band
light_day / light_night / pump / heater / co2object (entity, name, icon, color)–Fixed device slots; omit entity to hide
extra_deviceslist of the same shape–Additional device tiles
heater_power_entitystring–Power sensor shown under the heater tile
ph_entity / tds_entity / power_entitystring–Optional water-quality/power sensors for their chips
water_level_entitystring–binary_sensor, "on" = low water level
cleaning_entitystring–input_datetime helper stamped on tap
cleaning_intervalnumber14Days before the maintenance chip warns
cleaning_interval_entitystring–input_number helper; takes priority over cleaning_interval and is shared with the reminder automation
cleaning_notify_servicelist<string>–Notify targets for the reminder (without the notify. prefix)
cleaning_notify_timestring18:00:00Daily time at which the reminder checks whether cleaning is due
camera_entitystring–camera entity
camera_stylenone | thumbnail | banner | livenoneHow the camera is shown
camera_refreshnumber10Still-image refresh interval in seconds (0 = off)
camera_live_on_tapbooleantrueTap opens the live-stream dialog
schedulelist of {device, start, end, color?}–Manual lighting phases
schedule_entitystring–schedule domain helper as fallback source
show_schedulebooleantrueDay-arc schedule bar
accent_color / accent_opacitystring / numbertheme default / 12Header icon color + tint strength
tile_tint_opacitynumber12Tint strength for device/room tile backgrounds
text_color / secondary_text_colorstringtheme defaultName/value vs. secondary text
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoSchedule-marker/tile animations
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object20Corner radius, optional per corner

M3 Updates Card

Every available update in one tile: the status in the header, dedicated boxes for core/operating system/supervisor with the version jump and an install button, rows for add-ons, HACS and firmware, plus an expander for everything that is already up to date.

M3 Updates Card

Screenshot with simulated update data, so the core boxes, the MAJOR badge and a running installation are visible at the same time.

Configuration, examples & options
type: custom:m3-updates-card
auto_discover: true
max_visible: 5

Entity source and grouping

  • auto_discover: true (default): picks up every entity in the update domain; exclude_entities hides individual ones.
  • auto_discover: false: only what is listed in entities.

Grouping goes by the integration from the entity registry rather than the entity_id name. That matters as soon as a second HA instance is connected: it mirrors entities under near-identical names (home_assistant_core_update_2), and a name-based rule would turn those into two indistinguishable core boxes. The second instance therefore gets its own group ("Second instance"). type_patterns overrides the mapping per entity_id fragment if the automatic assignment gets something wrong.

Entities Home Assistant could not reach on startup (restored/unavailable) do not count as "up to date" — otherwise the card would claim coverage it does not have. They sit behind their own expander below the reachable components, labelled with their group instead of a version, so it is obvious at a glance why something is missing (e.g. "52 × second instance" = that connection is delivering nothing right now).

include_types limits the display to certain groups (empty = all), and group_order sets the order and therefore which updates stay visible when max_visible truncates the list. The editor lets you reorder the groups with per-row arrows.

Core updates and installing

Core, operating system and supervisor get their own boxes with {installed} → {latest} and a MAJOR badge on a big jump. Detection handles both version schemes: for Home Assistant calendar versions (2026.8.1) a change of year or month counts, for SemVer (5.8.0) the first number does.

The install button calls update.install. With require_confirm: true (default) it asks once ("Update" → "Sure?") and disarms itself after five seconds — a stray tap must not leave a button on a wall tablet that restarts Home Assistant on the next touch. While installing, the button shows the progress and the box gets a bar along its bottom edge.

no_install_types lists groups read-only, without a button (default: firmware, because a failed Zigbee firmware flash can brick hardware — that belongs on the device page deliberately). Entities with auto_update get an autorenew icon instead of a button: Home Assistant installs those itself.

The remaining rows open the more-info dialog with the changelog and HA's own install button; inline_install: true puts a small button in the row instead.

Backup chip, skipped updates, expander

backup_entity (a timestamp sensor, e.g. sensor.backup_last_successful_automatic_backup) shows the age of the last backup in the banner — green up to backup_warn_days (default 7), orange beyond that, red with "No backup" when there is no usable timestamp.

Updates dismissed via skip sit dimmed at the end of the list with their own button to bring them back (update.clear_skipped). They do not count as "up to date" — otherwise the card would claim more current components than there are.

show_uptodate (on by default) collapses everything current behind an expander, shown as compact rows with the installed version.

Notification for new updates

The Notification section in the editor creates a Home Assistant automation:

  • on_change (default) — reports as soon as an update appears, one message per component.
  • daily / weekly — one digest at notify_time listing every pending update, so an add-on wave doesn't become fifteen pushes.

It watches the same selection the card displays; notify_exclude_entities mutes individual entities without removing them from the card. Title and message can be overridden freely, placeholders: {anzahl}, {liste}, {komponente}, {version}, {aktuell}.

Running update and connection loss

A core update restarts Home Assistant, so the websocket drops mid-install. Rather than sitting on a frozen banner, the card then shows "Disconnected — {name} is running" with a note that Home Assistant is about to restart.

Configuration options

OptionTypeDefaultDescription
auto_discoverbooleantruePick up every update.* entity automatically
entitieslist<string>–Manual selection when auto_discover: false
exclude_entitieslist<string>–Entities excluded from the display
include_typeslist<string>–Show only these groups (empty = all)
group_orderlist<string>see aboveGroup order, and therefore priority
type_patternsobject–entity_id fragment → group, overrides the automatic mapping
no_install_typeslist<string>["firmware"]Groups without an install button
max_visiblenumber5Rows shown directly, rest behind "show more" (0 = all)
require_confirmbooleantrueInstall button asks once
inline_installbooleanfalseSmall install button inside the row
show_uptodatebooleantrueExpander for components that are already current
show_skippedbooleantrueShow skipped updates dimmed at the end
show_release_notesbooleantrueTapping the version line opens more-info
backup_entitystring–Timestamp sensor of the last backup
backup_warn_daysnumber7Age at which the backup chip turns orange
notify_servicelist<string>–Notification targets (without the notify. prefix)
notify_modeon_change | daily | weeklyon_changeImmediately, or a digest at a fixed time
notify_timestring18:00:00Time of the digest (daily/weekly only)
notify_weekdaystringmonWeekday of the digest (weekly only)
notify_exclude_entitieslist<string>–Entities that never trigger a notification
notify_title / notify_messagestring–Custom title/message, empty = built-in text
name / iconstring"Updates" / mdi:package-upHeader
ok_color / update_colorstring#81c784 / #85b7ebStatus colors
addon_color / hacs_color / firmware_color / remote_colorstringsee aboveRow type colors
accent_opacitynumber14Banner tint strength in percent
text_color / secondary_text_colorstringtheme defaultName / secondary text
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoExpander and progress animations
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 NAS Card / M3 System Card

Two tiles sharing one implementation: per-volume usage, with CPU, RAM, temperature and network as compact status tiles below, and optionally the state of your Syncthing folders. The NAS Card reads the Glances or the Synology DSM integration, the System Card the System Monitor integration — otherwise they are identical.

M3 NAS Card M3 System Card

The NAS Card on top with two volumes and the Syncthing folders, the System Card for your own instance below. Drive names come from mount_names — Glances otherwise reports paths like /rootfs/srv/dev-disk-by-uuid-….

Configuration, examples & options
type: custom:m3-nas-card
name: NAS

# or, for a Synology NAS:
type: custom:m3-nas-card
name: NAS
source: synology_dsm

# or, for your own HA instance:
type: custom:m3-system-card
name: Home Assistant

Setting up the data source

The System Card only needs the built-in System Monitor integration.

For a Synology NAS, source: synology_dsm reads Home Assistant's built-in Synology DSM integration — nothing has to be installed on the NAS itself. Add it under Settings → Devices & services (it is usually discovered over SSDP), and the card lights up from the entities it creates. See Synology below for what maps onto what.

The NAS Card needs Glances with its REST API running on the NAS; then add the Glances integration in HA with the host and port 61208. In a container a host bind is required, otherwise Glances only reports the container's own filesystems instead of the real volumes:

services:
  glances:
    image: nicolargo/glances:latest-full
    network_mode: host
    pid: host
    restart: unless-stopped
    environment:
      - GLANCES_OPT=-w --disable-webui
    volumes:
      - /:/rootfs:ro

--disable-webui serves only the API HA needs, without also exposing an unauthenticated web UI on the network.

Detection

Entities are matched by their translation_key from the entity registry, not by display name — Home Assistant localises those, so a name-based rule would only work in one language. The label (mount point, sensor name, interface) comes from the unique_id.

When no percentage sensor is enabled — System Monitor ships disk_use_percent disabled by default — the card derives usage from "used" and "free" rather than dropping the volume.

Mount paths are shortened for display (/rootfs stripped, UUID volumes become "Volume a1b2c3d4"). mount_names overrides this per path, exclude_mounts hides individual ones.

Synology

With source: synology_dsm the card reads the same sections from the Synology DSM integration. The matching works exactly as above — by translation_key, not by display name:

Synology translation_keyCard section
volume_percentage_usedVolume row, the percentage and the bar
volume_size_usedVolume row, the "used / total" line
volume_size_totalVolume row, the "used / total" line
volume_statusVolume row colour when the volume is unhealthy
cpu_total_loadCPU tile
memory_real_usageRAM tile
disk_temp (per drive)Temperature tile
temperature (chassis)Temperature tile, when no drive sensor exists
network_down / network_upNetwork tile
uptime (no translation_key)Uptime in the subtitle

Volumes are named, not mounted. Glances reports a mount path; Synology has none and reports a DSM volume id instead. exclude_mounts, mount_names and disks[].mount therefore take that id — volume_1, volume_2 — and the card shows it as "Volume 1" unless mount_names says otherwise:

type: custom:m3-nas-card
source: synology_dsm
mount_names:
  volume_1: Media
exclude_mounts:
  - volume_2

Everything else behaves as it does for the other sources: auto_discover, config_entry_id (for more than one NAS), max_visible, the show_* toggles, the thresholds and the notifications all work unchanged.

Some sensors Synology needs are disabled by default in Home Assistant. volume_size_total is one of them — without it the volume row shows the percentage but no "used / total" line — and so is the uptime sensor. Enable them under Settings → Devices & services → Synology DSM → entities if you want those. A section the NAS does not report simply does not render; nothing falls back to a zero.

A volume whose volume_status is crashed, degraded or attention takes the critical/warning colour on its own row whatever its fill level says. The per-drive SMART sensors and the security-status binary sensor are not shown: DSM does not expose which drives make up which volume, so there is no row to attach them to without adding a section the card does not have.

Temperature

Glances reports drive and SoC sensors in one list, and the SoC always runs hotter. The card therefore prefers drive sensors whenever any exist — otherwise it would read 49 °C while the disks sit at 32 °C. temperature_labels pins the selection explicitly.

The same preference covers Synology: disk_temp is labelled with the drive (sda), the chassis temperature sensor is not, so the drives win and the chassis reading is only used when a model exposes no per-drive sensor. The per-volume volume_disk_temp_avg / _max sensors are deliberately ignored — they average the very drives already being read.

Synchronisation

With the Syncthing integration set up, the card lists every folder with its state and size; while a transfer runs, the progress replaces the size. Without the integration the section simply stays empty.

Notifications

The Notification section creates an automation with up to three triggers:

  • Sync errors — a folder goes to error, or errors / pull_errors rises above 0. The latter matters: Syncthing accumulates pull errors while the folder state still reads idle. Paused folders never trigger — that is a setting, not a fault.
  • Volume full — usage above notify_disk_threshold.
  • Unreachable — the sensors report unavailable; off by default, because it fires on every restart.

Messages use the names the card displays. The raw entity names would be unusable ("Syncthing (http://…) ABCDEFG HA Share HA Share"), so the mapping is written into the automation during setup.

Configuration options

OptionTypeDefaultDescription
sourceglances | systemmonitor | synology_dsmper card typeData source
config_entry_idstring–Restrict to one instance when several exist
exclude_mountslist<string>–Mount points to hide; DSM volume ids (volume_1) with synology_dsm
mount_namesobject–Mount path → display name; keyed by DSM volume id with synology_dsm
diskslist–Explicit volume order and naming; mount: is the DSM volume id with synology_dsm
disk_warn / disk_criticalnumber80 / 90Percent thresholds for the row colour
temp_warn / temp_criticalnumber55 / 65Temperature thresholds in °C
temperature_labelslist<string>–Temperature sensors to consider
max_visiblenumber4Drives shown directly, rest behind "show more"
show_cpu / show_memory / show_temperature / show_networkbooleantrueStatus tiles
show_uptimebooleantrueUptime in the subtitle
show_syncbooleantrueSyncthing section
sync_entitieslist<string>–Specific Syncthing folders instead of all
notify_servicelist<string>–Notification targets (without the notify. prefix)
notify_sync_errorsbooleantrueNotify on sync errors
notify_disk_fullbooleantrueNotify when a volume fills up
notify_disk_thresholdnumber90Threshold for that
notify_offlinebooleanfalseNotify when the source goes silent
notify_offline_minutesnumber10Grace period before it does
notify_title / notify_messagestring–Custom title/message, empty = built-in text
name / iconstring"NAS" / mdi:nasHeader
ok_color / warn_color / critical_color / offline_colorstringsee aboveStatus colours
accent_opacitynumber18Header tint strength
text_color / secondary_text_colorstringtheme defaultName / secondary text
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoExpander animation
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Supply Card

Consumables — detergent pods, dishwasher tabs, filters, pet food — with the amount left, an estimated range and one-tap refilling. One supply leads as the hero with a dot per remaining unit; the rest follow as compact rows, and tapping one promotes it to the hero.

Supply Card
Configuration, examples & options
type: custom:m3-supply-card
items:
  - entity: counter.waschmittel_pods
    name: Detergent pods
    icon: mdi:washing-machine
    unit: pods
  - entity: counter.spulmaschinentabs
    name: Dishwasher tabs
    icon: mdi:dishwasher

Setting up the counter

Each supply needs a helper holding the remaining count: Settings → Devices & services → Helpers → Create helper → Counter. Set Maximum to the size of one pack — Home Assistant refuses to store anything above it, so a 60-tab box needs a maximum of 60. pack_size in the card is capped at that maximum for exactly this reason.

The card works with nothing else: count down with the − button and press Pack refilled when you open a new one.

Counting down automatically

To let the counter follow your appliance instead, add an automation that decrements it whenever a cycle finishes:

alias: Detergent pods — count down
triggers:
  - trigger: state
    entity_id: sensor.waschmaschine_status
    to: "end"
actions:
  - action: counter.decrement
    target:
      entity_id: counter.waschmittel_pods
mode: single

Replace the trigger with whatever marks a finished run on your machine — a status sensor turning end/finished, power dropping below a threshold, or a binary_sensor going off.

Range estimation

The subtitle shows how long a supply will last, derived from its own history: every decrease counts as consumption, refills are ignored. Two conditions must hold before an estimate appears — at least 3 decreases, and at least 2 days of observation. A handful of taps while setting the card up would otherwise extrapolate to hundreds per day.

The rate divides by the period the history actually covers, not by rate_window. Home Assistant's recorder keeps 10 days by default, so a 30-day window usually returns a third of that; dividing by the window would promise triple the range. To extend it, raise purge_keep_days in your recorder configuration.

For a supply used a few times a year — an aquarium filter, say — history will never hold enough. Set usage_per_week instead and the card uses that figure directly.

Long-term statistics are not used: they only exist for sensor entities with a state_class, and counter/input_number helpers never appear there.

Notifications

The card can create a Home Assistant automation that reminds you when a supply runs out — daily in the evening, weekly, or the moment it drops. The evening digest sends one message listing everything at once rather than one push per item. Pick the targets, choose whether "empty", "critical" or "low" counts as worth reporting, and press the button; the automation appears under Settings → Automations. Title and message accept {anzahl} and {liste} (digest) or {vorrat} and {rest} (immediate).

By default every supply on the card is covered. notify_items narrows it to a selection — useful when only the detergent is worth a push and the spare filters are not.

Shopping list

With todo_entity set, a critical supply shows an Add to shopping list chip in the hero. auto_add_to_list puts it there without asking as part of the notification automation — it reads the list first and skips what is already on it, so a daily reminder does not pile up duplicates. You need a to-do list first: Settings → Devices & services → Add integration → Local to-do.

OptionTypeDefaultDescription
itemslist–The supplies; see below
heronumber | stringshortest rangeIndex or entity shown large
layouthero_and_list | list_only | hero_onlyhero_and_listLayout
refill_modeset | addsetRefill sets to, or adds, one pack
list_tap_actionhero | more-infoheroWhat tapping a row does
rate_windownumber30Days of history for the rate
usage_per_weeknumber–Fixed rate, skips the calculation
todo_entitystring–To-do list for the shopping entries
notify_itemslistallLimit the notification to certain supplies
auto_add_to_listbooleanfalseAdd automatically when critical
notify_*––See Notifications above
ok_color / low_color / critical_color / unavailable_colorstringsee aboveState colours
accent_opacitynumber18Tint strength
text_color / secondary_text_colorstringtheme defaultName / secondary text
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoHero swap animation
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

Per item:

OptionTypeDefaultDescription
entitystring–counter.* or input_number.* helper
name / icon / colorstringentity's ownName, icon, colour while well stocked
pack_sizenumberhelper maximumUnits in one pack, capped at that maximum
unitstring–Plural noun under the value, e.g. "pods"
low_thresholdnumber25 % of packBelow this: "low"
critical_thresholdnumber10 % of pack, min. 1Below this: "critical"
shopping_itemstringthe nameText written to the to-do list
usage_per_weeknumber–Fixed rate for this item

M3 Todo Card

Shopping and task lists in the project's design system, as a replacement for Home Assistant's built-in todo-list card. Add with one line, tick items off with a tap, and keep completed entries tucked away behind a collapsible block.

Todo Card
Configuration, examples & options
type: custom:m3-todo-card
entity: todo.shopping_list
name: Shopping list
quick_add_mode: supplies

You need a to-do list first: Settings → Devices & services → Add integration → Local to-do. Any todo integration works — the card reads whatever todo.* entity you point it at.

Quick-add chips

Optional one-tap buttons above the list, filled from one of three sources via quick_add_mode:

ModeChips show
none (default)nothing
fixedthe entries you list in quick_add
recententries you completed before
suppliesthe shopping texts from the M3 Supply Cards on this dashboard

supplies is the bridge between the two cards: whatever you set as shopping_item on a supply becomes a chip here, ranked so the supply closest to running out comes first. Anything already on the list is left out — it would only trigger the duplicate warning.

Editing

Tapping a row ticks it off. Long-press a row to rename it or delete it. With reorderable: true each row grows a drag handle; dragging reorders the list through Home Assistant's own ordering, on backends that support it.

group_by_category: true groups entries written as Category: item under a small heading, and drops the redundant prefix from the row itself — an entry stored as "Fruit: apples" reads as "apples" beneath a "Fruit" heading.

OptionTypeDefaultDescription
entitystring–The todo.* list (required)
name / iconstringentity's ownHeader name and icon
add_positiontop | bottomtopWhere new entries land
prevent_duplicatesbooleantruePulse the existing entry instead of adding twice
quick_add_modenone | fixed | recent | suppliesnoneSource of the chips
quick_addlist–Chip entries for fixed
max_quick_addnumber4Maximum number of chips
show_completedbooleantrueShow the completed block
show_clear_completedbooleantrueOffer "clear completed"
group_by_categorybooleanfalseGroup by Category: prefix
reorderablebooleanfalseDrag handle for reordering
accent_colorstring#5dcaa5Accent for icon, chip and checkmarks
accent_opacitynumber18Tint strength
text_color / secondary_text_colorstringtheme defaultName / secondary text
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoMorph animations
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Occupancy Card

Room-by-room presence. Each row is a room; it counts as occupied when any of its sensors is on. Auto-discovery groups binary_sensors of device_class: occupancy/motion/presence by area (falling back to device, then to the individual sensor), and an optional activity timeline shows when each room was busy over the last few hours.

Occupancy Card
Configuration, examples & options
type: custom:m3-occupancy-card
auto_discover: true
# or a manual list (turn auto_discover off):
# sensors:
#   - entity: binary_sensor.living_room_presence
#     name: Living room

Configuration options

OptionTypeDefaultDescription
auto_discoverbooleantrueFind occupancy/motion/presence sensors automatically
include_arealist–Restrict discovery to these areas
exclude_entitieslist–Sensors to skip
sensorslist–Manual rooms: { entity, name, icon } (wins over discovery)
sortoccupied_first | name | last_activeoccupied_firstRow order
show_timelinebooleantrueActivity timeline under the rows
timeline_hoursnumber3Hours the timeline covers (1–24)
max_visiblenumber–Cap visible rows, rest collapsible
notify_service / notify_enabled––Optional per-sensor "occupancy detected" push (off by default)

M3 Cover Card

Control for cover entities that adapts to the device: it reads supported_features and only renders the controls the entity actually supports — open/stop/close buttons, a position slider with a window preview, and tilt controls. Devices without a cover integration (e.g. a FingerBot on two switches) work via entity_type: switch_pair. A group mode puts several covers — or switch pairs — in one card with shared master controls.

Cover Card
Configuration, examples & options
# Single cover
type: custom:m3-cover-card
entity: cover.living_room

# A switch pair (up/down relays, e.g. a FingerBot)
# type: custom:m3-cover-card
# entity_type: switch_pair
# up_entity: switch.blind_up
# down_entity: switch.blind_down

# Group
# type: custom:m3-cover-card
# mode: group
# entities:
#   - cover.living_room
#   - { entity_type: switch_pair, up_entity: switch.kitchen_up, down_entity: switch.kitchen_down, name: Kitchen }

Configuration options

OptionTypeDefaultDescription
modesingle | groupsingleOne cover in detail, or a list
entitystring–The cover (single mode)
entity_typecover | switch_paircoverUse up/down/stop switches instead of a cover
up_entity / down_entity / stop_entitystring–Switches for switch_pair
entitieslist–Group rows: a cover id or a switch_pair object
show_previewbooleantrueWindow preview with fill level
slider_styleplain | wavyplainPosition slider style
invert_positionbooleanfalseFor integrations with reversed position
tilt_stepnumber15Tilt stepper size (°)
travel_timenumber0Seconds end-to-end for position-less devices (optimistic feedback)
show_masterbooleantrueMaster controls in group mode
row_tap_actionmore-info | togglemore-infoTap on a group row

No cover integration? A Home Assistant template cover can bundle two switches into one cover entity, unlocking the position/preview features.

M3 Leak Card

Water-sensor overview with two clearly separated states: quiet when everything is dry, unmistakable on alarm — including a direct shut-off. Auto-discovers binary_sensors of device_class: moisture, finds each sensor's battery sibling, and colours the whole card red the moment one reports water.

Leak Card
Configuration, examples & options
type: custom:m3-leak-card
auto_discover: true
valve_entity: valve.main_water        # optional: valve / switch / cover
# siren_entity: siren.alarm           # optional, for the acknowledge button

max_visible keeps the list short: the first few sensors are shown and the rest sit behind a "show N more" toggle. It steps aside during an alarm — whichever sensor is wet has to be on screen without another tap.

Configuration options

OptionTypeDefaultDescription
auto_discoverbooleantrueFind device_class: moisture sensors
include_area / exclude_entitieslist–Narrow discovery
sensorslist–Manual list: { entity, name, icon, battery_entity }
valve_entitystring–Shut-off valve (valve/switch/cover) — only then is the shut-off button shown
confirm_shutoffbooleanfalseAsk before shutting off
siren_entity / ack_entitystring–Silenced / acknowledged on the ack button
stale_hoursnumber6A sensor silent longer than this counts as "stale"
battery_warn / battery_criticalnumber40 / 20Battery chip thresholds
test_interval_daysnumber0Show a "test due" chip after N days (with last_test_entity)
max_visiblenumber–Show only this many sensors, the rest behind a toggle
collapse_okbooleanfalseCollapse the list while all dry
notify_service / notify_enabled––Optional push on water detection (off by default)

The card is the overview, not the alarm. Pair it with an automation that sends a critical push (push: sound: critical on iOS, a high-priority channel on Android) so you're notified even with the dashboard closed.

M3 Waste Card

Bin-collection schedule: a hero with the next pickup, a two-week timeline, and a row per bin. Feed it sensors whose state is the number of days until collection (e.g. Waste Collection Schedule with value_template: '{{ value.daysTo }}'). Two modes: info (bins are collected automatically — pure information) and reminder (you put them out yourself — escalates near the date with a "put out" acknowledge button).

Waste Card
Configuration, examples & options
type: custom:m3-waste-card
mode: info            # or: reminder
entities:
  - sensor.paper
  - sensor.bio
  - { entity: sensor.recycling, name: Recycling, color: '#f0c46e' }

Configuration options

OptionTypeDefaultDescription
modeinfo | reminderinfoInformation only, or escalate + acknowledge
entitieslist–Sensors (days-until-collection): id or { entity, name, icon, color }
calendar_entitystring–A calendar with one event per collection, the event summary naming the bin. Merged with entities.
hero_primarydays | weekdaydaysHero shows "in 3 days" or "Monday"
hero_iconfirst | multifirstSingle icon or overlapping bin icons
show_timelinebooleantrueTwo-week timeline
timeline_daysnumber14Timeline span (7–28)
max_rowsnumber0Cap rows, rest collapsible (0 = all)
reminder_offsetnumber1Days before pickup to start reminding (reminder mode)
reminder_timestring18:00Only remind after this time the day before
ack_entitystring–input_boolean/input_datetime storing "put out"
notify_service / notify_enabled––Optional put-out reminder push (off by default)

M3 Time Card

A compact time picker for an input_datetime helper, with an optional apply button and preset chips. Three input variants (steppers, scroll wheels, or a segmented display).

Time Card
Configuration, examples & options
type: custom:m3-time-card
entity: input_datetime.wake_up

M3 Clock Card

A clock in five styles, all sharing the same design language. It reads no entity at all — the time comes from the browser and the zone from Home Assistant — so it works on any dashboard without setting anything up. The optional extras below are the only parts that need entities.

The card only redraws while it is actually on screen: a clock on a wall tablet would otherwise animate for weeks to an empty room. Styles that need no per-frame movement drop to a timer that wakes on the minute.

Clock Card
Configuration, examples & options
type: custom:m3-clock-card
style: tiles          # tiles | shapes | lockscreen | scallop | ring
show_seconds: true
show_date: true

The five styles

StyleWhat it looks like
tilesTwo large rounded tiles, hours tinted in the accent. The default.
shapesEach digit inside a lobed shape — a cookie for the hours, a clover for the minutes. The two digits of a pair overlap so "14" reads as one number.
lockscreenOne line filled and heavy, the other an outline, with a decorative shape bleeding off the corner.
scallopAn analogue dial built from two counter-rotating lobed shapes, with a small flower for the second hand.
ringSixty segments round the time. With show_seconds: false it becomes the current hour filling up, one segment a minute.

Configuration options

OptionTypeDefaultDescription
stylestringtilestiles, shapes, lockscreen, scallop, ring
sizenumber1.0Scales every measurement of the chosen style, 0.7–1.5
time_zonestringHA's ownIANA zone, e.g. Europe/Berlin. An unknown zone falls back to system time
time_formatauto | 12 | 24autoFollows the Home Assistant locale by default
show_datebooleantrueDate line under the clock
date_formatauto | short | longauto
show_secondsbooleantrue
seconds_stylebar | dots | nonebarTiles style: how the seconds are shown
show_seconds_tilebooleanfalseTiles style: a third tile for the seconds
colon_blinkbooleantrueTiles style
ring_animationreset | drainresetRing style: how the ring clears on the wrap
shape_hours / shape_minutesstringcookie / clovercookie, clover, flower, scallop, squircle
digit_overlapnumber-12Shapes style: how far the digits of a pair overlap, −20…0
shape_motionbooleantrueSlow rotation of the lobed shapes
shape_speedslow | normal | fastnormal
show_decorbooleantrueLockscreen style: the decorative shape in the corner
outline_targetminutes | hours | noneminutesLockscreen style: which line is outlined
layoutstacked | inlinestackedLockscreen style
tick_styledots | lines | nonedotsScallop style: the hour marks
tile_color_modeaccent_hours | both_accent | neutralaccent_hoursTiles style
alarm_entitystring–Chip with the next alarm, shown only while it is within 24 hours
sun_entitystring–Chip with the next sunrise or sunset, e.g. sun.sun
show_day_progressbooleanfalseBar with the day's progress and how much is left
progress_rangeday | customdaycustom uses progress_start and progress_end
progress_start / progress_endstring–HH:MM, e.g. working hours
secondary_zoneslist–{ label, time_zone } entries shown as a compact row
accent_color / secondary_colorstring–

Setting animation: off, or the system's own reduced-motion preference, stops the shapes rather than removing them, switches digits without the pop and makes the second hand step instead of sweep.

M3 Status Card

Shows a value large and with meaning: a number, a piece of text, or a yes/no state. It reads any entity — a template sensor, an input_boolean, an attribute of something else — and the point of the card is the mapping in between: a rule list turns off into "No" in red with a cross, or a number below 20 into a warning colour, without a template sensor to do it.

Status Card
Configuration, examples & options
type: custom:m3-status-card
items:
  - entity: input_boolean.medication_given
    name: Medication
    preset: yes_no
    tap_action:
      action: toggle
hero_style: badge

Layouts

One item gets the large "hero" treatment, several get a grid. layout forces either, plus a compact row list.

LayoutWhat it is
autoHero for one item, grid from two. The default.
heroOne value at 26–40px, with the item's colour washing the whole card
gridTiles, repeat(auto-fit, minmax(96px, 1fr)), or a fixed columns
row48px rows: icon, name, value — for a compact list

hero_style: badge replaces the small header icon with a 52px status badge in full colour, which morphs briefly whenever the value changes.

State mapping

Each item may carry a states list. The first matching rule wins; anything it does not set falls back to the item's own icon and colour. A rule matches on exactly one of value, regex, above or below — a rule with no condition at all is a deliberate catch-all, which is how a list ends with "and otherwise".

items:
  - entity: sensor.battery
    states:
      - below: 20
        icon: mdi:battery-alert
        color: "#e57368"
      - below: 50
        color: "#f0c46e"
      - color: "#81c784"     # catch-all

preset supplies a ready-made rule list, in the dashboard's own language. The item's own states are tried first, so a preset can be adjusted without being replaced.

PresetMaps
yes_noon/true → Yes (green, check), off/false → No (red, cross)
on_offOn / Off, the off state in grey
ok_problemoff/ok → OK, on/problem → Problem
open_closedOpen (amber) / Closed (green)
trafficUnder 33 red, under 66 amber, above that green — higher is better

Trend

trend: true compares the value against the same entity 24 hours ago (the History API, so no long-term statistics needed) and shows a chip with the change. Use trend_inverted where falling is the good direction, such as consumption or cost — otherwise the best possible reading would be coloured like an alarm. A change under 1% counts as unchanged.

Configuration options

OptionTypeDefaultDescription
itemslist–One entry per value, see below
titlestring–Heading above the grid or rows
layoutauto | hero | grid | rowauto
columnsnumberautoFixed column count for the grid
hero_styleinline | badgeinline
value_sizenumber | autoauto40px for numbers, 34px for short text, 26px from 12 characters
tap_actionactionmore-infoCard-level default for every item
accent_color / accent_opacityFallback colour and tint strength

Per item:

OptionTypeDescription
entitystring
name / icon / colorstring
attributestringShow this attribute instead of the state
unitstringOverrides the entity's own unit
prefix / suffixstring
decimalsnumberDefaults to the precision the state itself carries
secondarystringA line under the value — plain text, or an entity id whose state is shown
presetstringSee the preset table
stateslistThe rule list
tap_actionactiontoggle switches the shown state over immediately, before HA confirms it
trend / trend_hours / trend_inverted

An unavailable entity shows "—" in neutral grey rather than keeping its colour: a stale sensor still glowing green would read as "all is well", which is the opposite of what it means.

M3 Heading Card

A section heading for the space between cards. It deliberately draws no card of its own — no frame, no glass, no shadow — so it reads as a label for what follows rather than as another tile in the grid. It replaces Home Assistant's built-in heading, which does the job but not in this suite's design language.

Heading Card
Configuration, examples & options
type: custom:m3-heading-card
style: simple          # simple | status | divider | collapsible
title: Lighting
icon: mdi:lightbulb
color: "#f0c46e"

The four variants

VariantWhat it is
simpleSquircle icon and title. The default.
statusPlus a count chip and an action button on the right
dividerNo icon and no title: a rule, a small-caps label, a longer rule
collapsiblePlus an arrow that folds away the cards below it

Status

The chip takes either fixed text, an entity whose state it shows, or count_entities — then it counts how many of them are on. An entity that is unavailable is not counted either way, because reporting it as off would be a claim the card cannot support.

type: custom:m3-heading-card
style: status
title: Sockets
icon: mdi:power-plug
count_entities:
  - switch.desk
  - switch.tv
  - switch.lamp
action:
  name: All off
  icon: mdi:power
  tap_action:
    action: call-service
    service: homeassistant.turn_off
    target:
      entity_id: [switch.desk, switch.tv, switch.lamp]

The button squashes its corners and lifts its tint for half a second after a tap. It carries no state of its own, so that is the only confirmation that the tap landed. Under 260px the label drops and the icon stays.

Collapsible

The arrow folds away every card between this heading and the next one. Nothing is written to the dashboard configuration — the cards are hidden in the browser, so collapsing is a view state and not an edit.

Three other approaches were considered and rejected: rewriting the Lovelace config on every tap is destructive and stores a UI state permanently; wrapping every card in a conditional needs per-card configuration, which is the work this card exists to avoid; and a container card taking its children as config would be a stack, not a heading, and could not sit between cards in a section grid.

The cost of hiding siblings is a dependency on Home Assistant's own DOM. Every step is therefore a check rather than an assumption, and a layout the card does not recognise falls back to simple — an arrow that visibly does nothing is worse than no arrow. Collapsing is also skipped while the dashboard is in edit mode, where hidden cards could not be edited.

The state survives a reload: in localStorage per browser, or in an input_boolean via collapse_state_entity, which also syncs it across devices and lets an automation collapse a section.

type: custom:m3-heading-card
style: collapsible
title: Media
icon: mdi:speaker
default_collapsed: true
collapse_state_entity: input_boolean.media_section_collapsed

Configuration options

OptionTypeDefaultDescription
stylestringsimplesimple, status, divider, collapsible
titlestring–Required by every variant but divider
labelstring–divider only: the small-caps text between the rules. Without it the rule runs unbroken
icon / colorstring
show_iconbooleantrueWithout it the title moves to the left edge
title_sizenumber1512–22
tap_actionactionnoneOn the whole heading. Fixed to "collapse" for collapsible
badgestring–status only: fixed text, or an entity id
count_entitieslist–status only: the chip counts how many are on
actionobject–status only: { name, icon, tap_action }
default_collapsedbooleanfalsecollapsible only
scroll_on_expandfalseScrolls the card into view after it is unfolded. A collapsed card near the bottom of a view opens downwards, off the screen — so the thing you just asked to see is the thing you cannot see
scroll_duration240How long that scroll takes, in milliseconds. 0 jumps straight there. The browser's own smooth scroll picks a duration from the distance and is slower than a tap wants to be, so the card drives it itself
collapse_memorydeviceWhere the fold is remembered. device keeps it for good, so a card left open is still open next time. session keeps it only while the app is running: it follows you around the dashboard and is gone at the next start, so every start shows the overview again. Ignored when collapse_state_entity is set — the helper is then the answer
collapse_state_entitystring–collapsible only: an input_boolean holding the state

M3 Room Card

One card per room. Point it at a Home Assistant area and it works out the rest: which kinds of device are in there, what each of them is doing, the climate readings, and whether anyone is in the room.

Room Card, discovering an area Room Card holding cards of its own
Configuration, examples & options
type: custom:m3-room-card
area: living_room

That is the whole minimal configuration. Everything below only overrides what the card already found.

What it detects

Every entity assigned to the area, directly or through its device, grouped by domain into nine built-in categories — light, fan, humidifier, climate, media, cover, switch, vacuum, lock — plus anything named in extra_domains. A tile appears only for a category that actually has an entity in the room, so the grid grows with the house rather than showing empty placeholders.

Three kinds of entity are left out, and the first one matters more than it sounds: entities Home Assistant marks as configuration or diagnostic. A single smart plug contributes a child lock, an indicator light and a power-on behaviour, all in the switch domain. Measured on one real install, a living room holds 32 switches, of which 2 are things a person would call a switch. Hidden and disabled entities are left out too, because the user has already said they do not want to see them.

The badges

The badge under each tile is the point of the card. With more than one device it counts them — 2/4. With exactly one it says what that device is doing:

CategoryBadge
fanPreset, or the step derived from the fan's own percentage_step
humidifierThe target humidity
climateThe target temperature, or the HVAC mode when it has none
media_playerThe title, or the source, shortened to 16 characters
coverOpen, Closed, or the position in percent
lockLocked / Unlocked
everything elseOn / Off

An unavailable entity counts as not on; a category where every entity is unavailable shows —, dims to 40% and cannot be tapped.

Presence

A binary_sensor in the area with device class occupancy, motion or presence is picked up on its own. While the room is occupied a dot pulses on the room icon, the card takes a 7% wash of the presence colour, and the subtitle reads "occupied · 3 devices on" instead of just the count.

presence_style: dot_only keeps the dot and drops the wash; none switches the whole thing off. The pulse respects animation: off and the system's reduced-motion setting.

Sensor chips

Temperature, humidity and power, discovered from the area. Temperature and humidity come from Home Assistant's own area settings first when they are set there — a deliberate choice beats anything the card could guess — and from a matching device_class otherwise. The power chip only appears above power_threshold (5W by default): a room drawing 0.4W is a room drawing nothing, and a chip saying so costs a row on every card that has a plug in it.

Choosing what appears

Each category also has its own badge mode: auto counts when it holds several devices and reports the one device's state when it holds one, count and state force either, and none drops the line entirely.

Whole categories can be hidden or reordered, and individual devices can be switched off in the editor's category list — each category shows every device it found, with a toggle. An excluded device disappears from the tile, from its count, and from anything the tile switches. This is where a plug's indicator light goes when its integration does not mark it as a diagnostic entity.

The sensor chips work the same way: temperature_entity, humidity_entity and power_entity override what was discovered, and extra_sensors adds chips in the order given.

Interaction

With one device behind a tile, a tap toggles it. With several, a tap opens a picker listing each device with its own state — a room's four lights are four decisions, not one — plus "All off" and "All on" for when it really is one decision. Set category_tap: toggle to skip the picker and switch everything at once.

Whatever the route, only devices that actually answer are switched, so the result matches what the tile showed. A hold opens detail_path if one is set, otherwise more-info for the first entity. Vacuums and locks have no meaningful toggle, so a tap opens more-info instead of the card guessing at something a person would rather decide.

Tapping the header

The header is the card's title bar, and by default it either folds the card (with collapsible: true) or does nothing at all. tap_action gives it a normal Home Assistant action instead — most usefully navigate, so the room card on an overview becomes the way into that room's own view.

type: custom:m3-room-card
area: living_room
tap_action:
  action: navigate
  navigation_path: /lovelace/living-room

navigate and url work as they do everywhere, and none makes the header deliberately inert. perform-action works as long as the action names its own target.

more-info and toggle do not work here, and it is worth saying plainly: a room card is an area, not an entity, so it has no implied target to hand them, and both quietly do nothing without one. Point them at a tile's categories[].tap_action instead, which does have an entity behind it.

A tap cannot both fold the card and open a view, so tap_action takes the header over from the fold, and the chevron goes with it — it promises a fold the header no longer performs. The rest of collapsible is untouched: the stored state is still read and applied, so collapse_state_entity and an automation can still fold the card while its header navigates.

Note this is card-level and separate from categories[].tap_action, which governs a tap on one category tile inside the body, and from detail_path, which opens on a hold of a tile.

Configuration options

OptionTypeDefaultDescription
areastring–The HA area id. Required
modeauto | manualautoauto discovers the area's devices and draws a tile per category; manual draws none of that and shows only cards
cardslist–Lovelace cards drawn inside the folding body — below the tiles in auto, on their own in manual. Written as in a view
cards_columnsnumber2How many of those cards sit side by side
name / iconstringthe area's ownThe icon falls back to a guess from the room name
tap_actionaction–What a tap on the header does. Unset, it folds the card when collapsible is on. Set, it takes the header over from the fold and the chevron goes
detail_pathstring–Opened on hold
extra_domainslist–Domains beyond the built-in nine
category_orderlist–Domains in the order you want them; the rest follow behind
hidden_categorieslist–
excluded_entitieslist–Individual devices to leave out, whatever category they fall into
category_taplist | togglelistWhat a tap does when a tile holds several devices
categorieslist–Per category: { domain, name, icon, color, hidden, badge, tap_action }
show_sensorsbooleantrue
temperature_entity / humidity_entity / power_entitystringdiscovered
power_thresholdnumber5Watts
extra_sensorslist–More chips, in order
show_windowsbooleantrueThe window and door chip
window_entitieslist–Overrides the discovery
door_entitieslist–Contacts counted apart from the windows — a door, or something that is not a way in at all, like a blind's position contact. Home Assistant labels almost every contact sensor door, so which is which cannot be discovered
presence_entitystringdiscovered
presence_styletint | dot_only | nonetint
collapsiblebooleanfalseFold the card down to its header
default_collapsedbooleanfalse
collapse_state_entitystring–An input_boolean holding the folded state
strip_area_namebooleanfalseRemove the room's name from a single device's name. Off because it assumes a convention

The editor builds tiles from an entity picker — as a button, light, cover, media or compact climate card — and each row opens that card's own editor, so a nested card is as configurable as it is anywhere else. Any other Lovelace card can be added by hand and gets its own editor too.

M3 Humidifier Card

Target humidity, mode, fan speed and a device's extras in one card. Home Assistant's own humidifier card cannot set a fan speed, so the usual answer is a second card beside it — this is the one card.

It also does not insist that entity is a humidifier. Plenty of dehumidifiers are exposed as a switch plus a number plus a sensor, and those work here too; see "Devices that are not humidifier entities" below.

Humidifier Card

The same device twice: everything, and then layout: [slider, modes].

Configuration, examples & options
type: custom:m3-humidifier-card
entity: humidifier.basement

That is the whole configuration for a device that reports properly: the current and target humidity, the modes and the range all come off the entity.

The four blocks

BlockWhat it draws
sliderThe target-humidity slider, with the label and value above it. Its wave only moves while the device is actually working; at idle it flattens to a bar, which is what the screenshot above shows
modesA pill per mode, plus an off pill — turning the device off is not a mode
fanA pill per fan step, with a three-bar icon that fills with the step
chipsWater tank, toggleable switches, read-only readings

layout sets both the order and what appears at all. Leaving a block out of the list hides it — one mechanism rather than an array plus a set of show_* flags that can contradict it.

type: custom:m3-humidifier-card
entity: humidifier.basement
layout: [slider, modes]     # no fan row, no chips

Devices that are not humidifier entities

A Tuya or Zigbee dehumidifier is often a switch for on/off, a number for the target and a sensor for the reading. Point the card at the switch and name the rest:

type: custom:m3-humidifier-card
entity: switch.basement_dehumidifier
device_kind: dehumidifier
current_entity: sensor.basement_humidity
target_entity: number.basement_target
mode_entity: select.basement_mode        # modes from a select
fan_entity: select.basement_fan_speed    # fan speed from a select
tank_entity: sensor.basement_tank
controls:
  - entity: switch.basement_ioniser
    name: Ioniser
    icon: mdi:air-filter
    color: "#8f79e0"
sensors:
  - entity: sensor.basement_filter
    label: Filter ok
    icon: mdi:air-filter

humidifier, switch, fan, select, input_select, number and input_number are all handled; the card works out which service each one wants.

Modes

Modes come from available_modes, from mode_entity's options, or from an explicit modes list. Each mode may carry a name, an icon and a colour, and an unrecognised mode still gets a deliberate-looking colour from a palette rather than a grey one.

modes:
  - mode: sleep
    name: Night
    icon: mdi:weather-night
    color: "#8f79e0"
  - mode: turbo
    hidden: true

mode_style is icon_label, icon_only, or dropdown; more than five modes switch to a dropdown on their own, and a narrow card drops the labels.

Fan speed

The row reads whichever of the three shapes the entity has: a fan's preset_modes, a fan's percentage (mapped to off / low / medium / high), or a select's options. fan_steps overrides all of it:

fan_steps:
  - { name: Off }
  - { name: Quiet, preset: sleep }
  - { name: Normal, percentage: 60 }
  - { name: Max, option: turbo }

Options

OptionDefaultWhat it does
entity—Required. The thing the card turns on and off
current_entitythe entity's current_humidityWhere the reading comes from
target_entitythe entity's humidityWhere the target lives
action_entitythe entity's actionDrying / humidifying / idle
device_kindfrom device_classhumidifier or dehumidifier — wording and icon
min_humidity / max_humidityfrom the entity, else 30 / 80Slider range
humidity_step1Step for dragging and for the arrow keys
mode_entity—A select holding the mode
modesfrom the entityExplicit list, with name, icon, colour, hidden
mode_styleicon_labelicon_label, icon_only, dropdown
fan_entity—A fan or a select. Unset hides the row
fan_stepsderivedExplicit steps
tank_entity—A level sensor or a binary_sensor
tank_warn / tank_full70 / 95Percentages at which the chip turns amber, then red
tank_stylechipchip or bar (hidden)
controls—Chips that toggle: switch, button, select
sensors—Read-only chips
layoutall fourWhich blocks, in which order

What it does when things are missing

action is optional in the humidifier contract and many integrations omit it. Without it the card infers drying or humidifying from the direction between current and target rather than showing nothing. A device with no modes gets no mode row. A tank sensor that is a plain binary_sensor shows a chip only when it is full — "not full" is not news.

M3 Appliance Card

One appliance, with its status and its everyday controls on the same card.

Appliance Card

The suite already had a washing machine's progress bar (progress) and a grid of readings (status), but neither can do anything: starting the machine, picking the programme, turning the oven down. So an appliance on a dashboard was a hand-built stack — a progress card, a couple of button cards, an entities card for the programme select — rebuilt from scratch for the dryer, the oven, the coffee machine and the litter robot.

The humidifier card is the shape this wants: a header, a labelled slider, rows of pills, a chip row. It is also locked to one kind of device. This card is the same anatomy with nothing assumed about what is behind it: every block is optional, and a block whose entities are not configured is simply not drawn.

Configuration, examples & options
type: custom:m3-appliance-card
entity: sensor.washer_machine_state

That is the whole configuration for a card that shows one appliance's state. Everything else is a block you add.

The five blocks

BlockWhat it draws
progressA bar, with the percentage beside its label. Without a percentage sensor it runs indeterminate for as long as a remaining time is known
slidersOne labelled slider per number / input_number entity, over the entity's own min/max/step
selectsOne row of pills per select / input_select entity, from the entity's options
buttonsA row of action buttons — press, start, stop, toggle
chipsSmall readings at the bottom: door open, power draw, filter status. Drawn with a rim and no fill, so they cannot be mistaken for the filled buttons; a chip with a tap_action is a control and is filled like one.

layout sets both the order and what appears at all. Leaving a block out of the list hides it — one mechanism rather than an array plus a set of show_* flags that can contradict it.

layout: [progress, buttons]   # no sliders, no selects, no chips

Wave style

The progress bar and the sliders are drawn as an M3-Expressive sine wave, the same one m3-progress-card and m3-light-card draw, from the same shared/wave.ts. The key is the same on both blocks, because picking a shape per block would be a setting nobody wants.

wave_style: wavy   # wavy (default) | flat

flat is a look, not an animation setting: it draws straight lines whatever animation says. The two are independent, and they compose —

wave_style: wavywave_style: flat
animation: auto / onWave, travelling while there is progress left to makeStraight line, bar fills
animation: offWave, frozenStraight line, no motion

Under prefers-reduced-motion the wave keeps its shape and stops travelling — the wave is the component's identity, its movement is the decoration.

The status line

The line under the name is the entity's state, run through states — the same rule shape the status card uses, and the same code behind it. The first matching rule wins; a rule with no condition at all is the catch-all. A matched rule may also replace the icon and set the card's accent colour, so the whole card follows the machine.

states:
  - { value: run, label: Washing, color: green, icon: mdi:washing-machine }
  - { value: pause, label: Paused, color: amber }
  - { regex: "finish|end", label: Done, color: blue }
  - { label: Ready, color: grey }          # everything else

With no rules at all the state is shown as it reads, tidied up: heavy_duty becomes "Heavy duty", a number keeps its unit.

Example: a washing machine

Status, progress and the two buttons that matter. remaining_entity takes minutes, seconds, a 1:24:00 duration or an absolute completion timestamp — integrations disagree about this, so all four are read.

type: custom:m3-appliance-card
entity: sensor.washer_machine_state
name: Washing machine
icon: mdi:washing-machine
states:
  - { value: run, label: Washing, color: green }
  - { value: pause, label: Paused, color: amber }
  - { regex: "finish|end", label: Done, color: blue }
  - { label: Ready, color: grey }
progress:
  percentage_entity: sensor.washer_progress_percent
  remaining_entity: sensor.washer_completion_time
  label: Progress
selects:
  - entity: select.washer_cycle
    label: Programme
buttons:
  - { entity: button.washer_start, name: Start, icon: mdi:play, color: green }
  - entity: button.washer_stop
    name: Stop
    icon: mdi:stop
    color: red
    tap_action:
      action: perform-action
      perform_action: button.press
      target: { entity_id: button.washer_stop }
      confirmation:
        text: Stop the programme?

Example: an oven

A slider for the setpoint and two option rows. icons gives an option its own glyph; options narrows the row to a subset of what the entity offers, in the order written.

type: custom:m3-appliance-card
entity: sensor.oven_operation_state
name: Oven
icon: mdi:stove
states:
  - { value: run, label: Cooking, color: "#f0a24a" }
  - { above: 0, label: Preheating, color: amber }
  - { label: Off, color: grey }
sliders:
  - entity: number.oven_setpoint_temperature
    label: Temperature
    unit: "°C"
    icon: mdi:thermometer
selects:
  - entity: select.oven_program
    label: Programme
    options: [hot_air, top_bottom_heat, grill]
    icons:
      hot_air: mdi:fan
      grill: mdi:grill
  - entity: select.oven_duration
    label: Duration
chips:
  - { entity: binary_sensor.oven_door, name: Door, icon: mdi:door,
      states: [{ value: "on", label: Open, color: amber },
               { label: Closed, color: green }] }
  - { entity: sensor.oven_current_temperature, name: Now, icon: mdi:thermometer, color: red }

Example: a fridge

Chips only. Nothing to control, so nothing is drawn but the readings — no empty button row, no bar sitting at zero.

type: custom:m3-appliance-card
entity: binary_sensor.fridge_door
name: Fridge
icon: mdi:fridge-outline
states:
  - { value: "on", label: Door open, color: red, icon: mdi:fridge-alert-outline }
  - { label: Closed, color: green }
layout: [chips]
chips:
  - { entity: sensor.fridge_temperature, name: Fridge, icon: mdi:fridge-outline, color: blue }
  - { entity: sensor.freezer_temperature, name: Freezer, icon: mdi:snowflake, color: cyan }
  - { entity: binary_sensor.freezer_door, name: Freezer door, icon: mdi:door }

Buttons

A button with no tap_action of its own gets the one its domain implies — button.press, script.turn_on, scene.turn_on, automation.trigger, or a toggle for a switch / input_boolean / light. A switch also shows its state: the button fills with its colour while it is on.

Everything a button, a chip or the card header does runs through the same action handler the rest of the suite uses, so the full Home Assistant action config works — including confirmation, which asks before it acts.

Chips

A chip is read-only until it is given a tap_action, and then it is tappable. Each chip carries its own colour, icon and optional states rules, and a chip whose entity is unavailable is left out rather than dimmed — a row of "—" says nothing and pushes the ones that do say something off the edge.

The popup

The card is a summary: a state, a progress bar, a few buttons. The full set of controls — every programme, every option, the history — does not belong on a dashboard tile, but it does belong one tap away. popup is that.

type: custom:m3-appliance-card
entity: sensor.washer_state
name: Washing machine
popup:
  title: Washing machine        # optional; the card's name is used otherwise
  size: normal                  # normal (default) | wide | fullscreen
  content:
    type: vertical-stack
    cards:
      - type: custom:m3-appliance-card
        entity: sensor.washer_state
      - type: history-graph
        entities: [sensor.washer_power]

A card with a popup configured opens it on tap, so the common case needs no tap_action at all. An explicit one still wins, which is how the popup goes on a different gesture, or how a card keeps its more-info:

tap_action:
  action: more-info
hold_action:
  action: popup

[[entity_id]] and [[name]] anywhere in content resolve to this card's, so one popup body can be reused across several appliances. An action: popup on a card with no popup configured falls back to more-info rather than opening an empty dialog.

Options

OptionDefaultWhat it does
entity—Required. The entity that says what the appliance is doing
name / iconfrom the entityHeader name and icon
attribute—Read this attribute instead of the state
states—Rule list for the status line: value / regex / above / below, plus label, icon, color
progress.percentage_entity—0–100. Without it the bar is indeterminate
progress.remaining_entity—Minutes, seconds, 1:24:00, or a completion timestamp
progress.label / progress.color"Progress" / accentThe row's label and bar colour
sliders[]—entity, label, icon, unit, min, max, step, color
selects[]—entity, label, options, icons, names, style, color
buttons[]—entity, name, icon, color, tap_action
chips[]—entity, name, icon, label, show_state, states, color, tap_action
layoutall fiveWhich blocks, in which order
tap_actionmore-info, or popup when one is configuredWhat a tap on the header does. Adds a popup action kind
popup—The card's own popup: title, size (normal/wide/fullscreen) and a content card
accent_color#85b7ebOverridden by a matched rule's own color
text_color / secondary_text_color / card_backgroundthemeThe usual colour overrides
glass_backgroundtrueFrosted card surface
animationautoauto, on, off — also honours prefers-reduced-motion
radius / corners28Card shape

Every text field — name, a rule's label, a chip's or button's name — goes through the template support, so a Jinja2 expression works in any of them.

What it does when things are missing

A slider or an option row whose entity is unavailable is not drawn: a dead track invites a drag that goes nowhere, and pills with no options are not a row. A button whose entity is unavailable stays visible but dimmed and unclickable, because it is part of the card's layout. Chips are dropped. The card as a whole dims when its own status entity is unreachable.

M3 Calendar Card

An agenda and a month grid for any number of calendars, in this suite's design language.

Calendar Card
Configuration, examples & options
type: custom:m3-calendar-card
entities:
  - calendar.family
  - calendar.work

A bare entity id is accepted alongside the full object, because that is what people write first:

entities:
  - entity: calendar.family
    name: Family
    color: "#85b7eb"
  - calendar.work

Without a colour each calendar takes one from a palette, in order.

The two views

view is agenda or month; the switch in the header changes it, and show_view_switch: false fixes it.

The agenda groups by day, with "Today" in the accent colour, then "Tomorrow", then weekday names. Each row carries the start time above the end time, a bar in its calendar's colour, the title and the location. A running event is tinted and carries a now badge; a finished one fades. max_events caps the list and adds a "+n more" line.

Calendar Card, month view

The month grid draws up to three dots per day in the calendars' colours, a third dot becoming a "+" when there are more. Today is tinted, a tapped day fills with the accent colour and lists its events below the grid. The week starts on whatever hass.locale.first_weekday says.

Where the events come from

calendar.get_events, not the entity attributes — those carry only the next event, which is no use for a list. Results are cached for five minutes, shared between cards, and re-read when a calendar entity changes state.

A calendar that cannot be reached is named in a line under the header rather than silently dropped: showing four of five calendars without saying so would be worse than saying so.

Multi-day and all-day events

A multi-day event appears under every day it touches, with "day 2 of 3" where the location would be — a Tuesday showing nothing while a three-day trip runs would be wrong. In the month grid it puts a dot on each of its days.

An all-day event shows all day in its calendar's colour instead of a time. It never carries the now badge: "running right now" needs a time, and under a heading that already says Today the badge would say nothing.

Options

OptionDefaultWhat it does
entities—Required. Entity ids or {entity, name, color}
viewagendaagenda or month
show_view_switchtrueThe Agenda / Month control in the header
days_ahead7Agenda window, 1–30
max_events00 shows everything in the window
hide_past_todayfalseHide today's finished events instead of fading them
show_adjacent_daystrueDraw the neighbouring months' days in the grid
show_next_chipfalseHeader chip with the next event and how far off it is
tap_actiondetaildetail, more-info, navigate, none
navigation_path/calendarWhere navigate goes, and the dialog's button

M3 Nav Card

A navigation bar for the dashboard: one row of entries that light up for the page you are on. Five variants of the same bar, from a plain header to a drawer you pull up over the view, plus per-entry badges, templates and submenus — the feature set of the community's Navbar Card, drawn in this suite's own design language rather than in its.

Added from the card picker, it arrives already filled in from the dashboard it landed on: the first three views become entries and the next five go behind the round button, which is the arrangement a bar with more pages than fit ends up in anyway. It is a suggestion and nothing more — the entries are ordinary config from that moment on, to edit, reorder or delete, and the bar never reads the dashboard again by itself. "Import views" in the editor repeats the reading at any time.

Nav Card — five variants of the same bar Nav Card — the drawer open, shortcuts as rows Nav Card — the drawer open, shortcuts as tiles
Configuration, examples & options
type: custom:m3-nav-card
style: footer          # header | footer | segmented | floating | sheet
items:
  - name: Home
    icon: mdi:home
    path: /lovelace/0
  - name: Energy
    icon: mdi:flash
    path: /lovelace/energy
  - name: Garden
    icon: mdi:sprout
    path: /lovelace/garden

The five variants

VariantWhat it isWhen it is the right one
headerDocked to the top edge, full widthA desktop dashboard where the bar belongs with the title, not with the thumb
footerDocked to the bottom edge, full widthThe phone default: where a thumb already is
segmentedAn inline pill group, in the card flowA view switcher for one section, not for the dashboard — the only variant that scrolls with the page
floatingA detached rounded bar over the contentThe same job as footer, with the content visible underneath it
sheetfloating plus a drawer that pulls upWhen the bar should also hold something: shortcuts, a scene, a card

header, footer, floating and sheet position themselves against the screen, so their slot in the grid collapses and they do not take a row of the view. segmented is an ordinary card and sits wherever it is placed.

While the dashboard is being edited — and in the card picker's preview — every variant renders in the flow instead. A docked bar has no slot to click on, so without this the card could be added but never opened again.

By default a docked bar spans the whole content area, which is right on a phone and usually far too much on a desktop, where the entries end up nowhere near each other. max_width caps it and centres it: a number in px, any CSS length, or fit to make it exactly as wide as its entries need.

type: custom:m3-nav-card
style: footer
max_width: fit        # or 600, or "40rem"
items: [...]

Home Assistant's own tabs

The card does not touch them, and cannot: a card lives inside its own box, and Home Assistant offers no supported way to reach out of it and hide the header. So a bar added to a dashboard that still shows its tab strip gives you two navigations at once. Two ways out, and they combine:

subview: true on the views you navigate to. Built into Home Assistant, no add-on. A subview is left out of the tab strip entirely and is reached by navigating to it — which is exactly what this bar does. Views you never wanted as tabs stop being tabs.

Hide the header with kiosk-mode. At the top of a dashboard's raw config, and worth scoping to the width that needs it:

kiosk_mode:
  mobile_settings:
    hide_header: true

That pairs with the desktop/mobile split above: the phone drops Home Assistant's header and keeps only this bar, the desktop keeps its tabs. Hiding the header everywhere also hides the pencil that opens the editor — kiosk-mode documents how to get back in, and ?disable_km on the URL is the short answer.

Needing a second add-on to make the first one look right is not a good answer, and a later version should carry it: the card can find the header from where it sits, and hiding it only while a bar is on the view would scope it better than any per-dashboard setting can. It is not in this release because reaching into Home Assistant's own DOM is unsupported and breaks on its schedule, and because a header that fails to come back takes the editor with it. Until then, the two above are the honest answer.

Desktop and mobile

The usual pairing is a header on a wide screen and a footer or sheet on a phone, which is two layouts of one card rather than two cards:

type: custom:m3-nav-card
desktop:
  style: header
mobile:
  style: sheet
breakpoint: 768
items: [...]

The switch is made by measuring the card's own box, not the window. A card in a narrow column on a wide screen is narrow, which is what a media query would get wrong. Either block can also hide the bar outright at that width (hidden: true), and either can override show_labels.

Templates

name, icon, color, hidden, disabled and the badge accept Jinja2, and subscribe to it — the value is pushed by Home Assistant whenever anything the template reads changes, rather than polled or re-rendered on a timer:

items:
  - name: "{{ states('sensor.garden_mode') | title }}"
    icon: >-
      {{ 'mdi:water' if is_state('switch.irrigation', 'on') else 'mdi:sprout' }}
    path: /lovelace/garden
    hidden: "{{ not is_state('person.me', 'home') }}"

Only fields that actually contain {{ or {% open a subscription, and two entries using the identical template share one. They are all closed when the card leaves the page.

Badges

items:
  - name: Alerts
    icon: mdi:bell
    path: /lovelace/alerts
    badge:
      count_entities: [binary_sensor.leak_kitchen, binary_sensor.leak_bath]
    badge_style: count       # dot | count | text

A badge takes a template, an entity whose state it shows, or count_entities — how many of them are on. Whichever it is, 0, off, unavailable, unknown and an empty value hide it: a bar of grey zeroes reads as broken rather than as quiet. show_if gates it on a second template.

An entry with a submenu opens a floating menu instead of navigating. It grows out of the button that opened it and closes on a selection, a click outside, or Escape.

submenu_trigger: tap     # tap | hold
items:
  - name: More
    icon: mdi:dots-horizontal
    submenu:
      - name: Printer
        icon: mdi:printer-3d
        path: /lovelace/printer
      - name: Network
        icon: mdi:lan
        path: /lovelace/network

With submenu_trigger: hold the entry navigates on a tap as usual and the menu comes up on a long press instead — which is the right way round when the entry is a real destination and the menu is a shortcut to its neighbours.

The sheet

type: custom:m3-nav-card
style: sheet
sheet_title: Quick access
sheet_action:
  icon: mdi:plus
  tap_action:
    action: navigate
    navigation_path: /lovelace/edit
sheet_default: collapsed   # collapsed | expanded | remember
sheet_max_height: 60       # vh, or any CSS length as a string
snap_points: [0, 0.5, 1]   # optional half-open stop
sheet_cards:
  - type: custom:m3-button-card
    entity: light.living_room
items: [...]

The drawer holds two things. sheet_items are shortcut tiles — the same entries people usually hide behind a "more" submenu, laid out where you can see them at a glance instead of having to open a menu first. They draw two ways: grid fits the most destinations in the least space, an icon with a label under it; list gives each one a full-width row with an icon, a name, a second line and a chevron. The second line (secondary) takes free text, a template, or an entity id whose state it shows — which is what makes a row worth its extra space. The editor has a button that copies an item's submenu straight in. Below them, sheet_cards takes any Lovelace cards at all, every M3 card included:

sheet_title: More
sheet_items:
  - name: Cameras
    icon: mdi:cctv
    path: /lovelace/cameras
  - name: Restart
    icon: mdi:power
    tap_action:
      action: call-service
      service: homeassistant.restart
      confirmation:
        text: Really restart Home Assistant?
sheet_cards:
  - type: custom:m3-button-card
    entity: light.living_room

Careful with the per-width blocks here: the root style only applies where a block does not override it. A card set to sheet with mobile: { style: floating } has a drawer full of shortcuts and no grip on the phone — the one device it was built for. Nothing errors; the drawer is simply not reachable there. The editor now says so.

A drawer with nothing in it — no tiles, no cards, no title — has nothing to pull open, so the card renders as a plain floating bar instead of a grip that opens an empty box. The editor says so rather than leaving it to be discovered by pulling.

An action carrying a confirmation asks before it runs — worth knowing before putting "restart Home Assistant" one tap away. It is dragged by the grip, by a swipe up from the bar, or opened with a tap on the grip. A release goes to the nearest stop — unless it was a flick, which goes the way it was thrown whatever position the sheet was in at the time.

Dragging inside the drawer is the interesting case: the content scrolls normally, and the sheet only takes the gesture over when the content is already scrolled to the top and the finger is going down. That is what every native bottom sheet does, and it is the reason the browser's own scrolling — including its momentum, which no JavaScript reimplementation matches — is left alone everywhere else.

sheet_default: remember keeps the open state per browser, or in an input_boolean via sheet_state_entity, which syncs it between devices and lets an automation open the drawer. Under a 600px-tall viewport (a phone in landscape) the height cap drops to 50vh, or the drawer would leave nothing of the page it is a drawer for.

Two limits worth knowing. In edit mode the sheet renders inline and pinned open, because a drawer docked to the screen covers the card the editor is trying to show. And only the first sheet on a view docks itself: a second one would sit on top of the first with no way to tell which grip belongs to which, so it renders inline instead.

Visibility

hidden takes a Jinja2 template and drops the whole bar while it is true. For visibility by user, device or screen size, use Home Assistant's own visibility feature in the card editor — it already does exactly that for every card, and a second implementation inside this one would only fight it.

Migrating from Navbar Card

Navbar CardHere
routesitems
routes[].urlitems[].path
routes[].labelitems[].name
routes[].icon / icon_selecteditems[].icon (a template can switch it)
routes[].badge.templateitems[].badge.template
routes[].badge.coloritems[].badge.color
routes[].submenuitems[].submenu
routes[].hiddenitems[].hidden
routes[].tap_action / hold_actionsame names
desktop.position: top/bottomdesktop.style: header/footer
desktop.show_labelsdesktop.show_labels, or label_visibility
desktop.min_widthbreakpoint (the card's width, not the window's)
mobile.show_labelsmobile.show_labels
styles (free CSS)styles (a property/value map)
template for a whole route list— no equivalent; entries are configured, individually templated
haptichaptics

preload_views is accepted and stored but currently does nothing: Home Assistant gives a custom card no way to warm another view, and the only workaround — navigating there invisibly and back — would flicker and leave a bogus history entry. The option is kept so a future version can implement it without a breaking config change.

Options

OptionDefaultWhat it does
items—The entries. Each: name, icon, path, match, color, badge, badge_style, hidden, disabled, submenu, tap_action, hold_action, double_tap_action
stylefooterheader, footer, segmented, floating, sheet
positionper varianttop or bottom, for the detached variants
desktop / mobile—Per-width overrides: style, position, show_labels, hidden
breakpoint768Card width below which mobile applies
label_visibilityalwaysalways, active_only, never
icon_visibilityalwaysalways, active_only, never — the same three choices as the labels, independently
item_backgroundfalseA faint surface under every entry, not only the current one
active_styletinttint (a wash of the entry's colour) or solid (filled outright, dark ink on it)
action_button—{icon, tap_action, color} — a round button set beside the bar, outside its surface
max_width—Width cap, centred. A number is px, a string any CSS length, fit hugs the entries
size1Scales every measurement, 0.7–1.5
page_transition_ms180Length of that cross-fade. The browser's own default of 250ms reads as slow for a change the reader just asked for
marker_motionnonenone or slide — whether one shape travels between entries instead of two fading
page_transitionnonenone, fade, or up — up is Material's fade-through: the old page leaves, then the new one rises slightly into place
pill_size1Scales the marker around the active entry on its own, without touching the icon or the text
label_size11, or 14 beside the iconLabel size in px. The default depends on label_position: a label under an icon is a caption, one next to it is the entry's name
label_positionbelowWhere an entry's text sits relative to its icon: below, above, right, left. The horizontal ones also make the active pill wrap icon and text together
edge_distance8 (6 docked)Distance in px between the bar and the screen edge it docks to. Added on top of the device's safe area, never instead of it, so the bar cannot end up on a phone's gesture bar
container_styleglassglass, solid, transparent
container_opacity100Opacity of the bar, in percent
blur20Backdrop blur in px
radiuscapsuleCorner radius of the bar. Left unset the ends are fully round whatever the bar's height, which is what the reference bars do; a number fixes it instead. Beware of a value just under half the bar's height (31 px unscaled) — that reads as a squashed capsule rather than as a rounded rectangle
submenu_triggertaptap or hold
hapticstrueFire Home Assistant's haptic event on a tap
auto_hide_on_scrollfalseHide while scrolling down, show on the way up
hidden—Jinja2 boolean; hides the whole card
styles—Free CSS applied to the bar. Advanced
sheet_items—Shortcut tiles in the drawer: name, icon, path, color, tap_action
sheet_item_stylegridgrid (icons with labels under them) or list (full-width rows)
sheet_columnsautoGrid only: tiles per row; unset fits as many as the width allows
sheet_cards—Cards rendered in the drawer, below the tiles
sheet_title—Title row above the drawer's content
sheet_action—{icon, tap_action} button on the right of that row
sheet_max_height60vh as a number, or any CSS length as a string
sheet_defaultcollapsedcollapsed, expanded, remember
sheet_state_entity—An input_boolean holding the open state
snap_points[0, 1]Fractions the drawer rests at
collapse_on_navigatetrueClose the drawer when the page changes

An open drawer also closes on a tap anywhere outside it. The surface that catches that tap is invisible and swallows it, so nothing behind the drawer reacts to being tapped away. | preload_views | false | Reserved; currently does nothing |

M3 Lights Overview Card

A room-by-room light overview, on the same pattern as Climate Overview above (the two are meant to sit stacked on a dashboard): one tile per room with its on/off state and count, or a flat list of every light. A tap toggles the room's lights; hold opens a popup.

Lights Overview Card Lights Overview Card, popup
Configuration, examples & options
type: custom:m3-lights-overview-card
auto_discover: true

Entity source and room grouping

  • auto_discover: true (default): finds every light entity assigned to a Home Assistant area and groups it into that area's tile. Unlike Climate Overview, a light with no area is dropped rather than becoming its own tile — a room-by-room overview has nothing useful to show for a light it can't group. Filter with include_area / exclude_entities / include_labels / exclude_labels / include_state / exclude_state.
  • rooms: a manual list (name, icon, entities, toggle_entities) instead of auto-discovery.
  • view: rooms (default, one tile per room) or entities (one tile per light, with the room name as a caption).
  • group_handling: when a light.group and its members would otherwise both count as separate lights in the same room, drop one side — prefer_groups counts only the group, prefer_members only the members. Default all counts both.

What's shown vs. what a tap switches

A tile's on/off state and count reflect every light the display filter above lets through. What a tap actually switches can be narrower: set toggle_filter (same vocabulary as the display filter) to switch only a subset, or exclude_toggle_entities as a shorthand for "show it, but don't switch it" on specific entities — useful for a light on a schedule or a scene-only fixture that should be visible but not part of the room-wide toggle. toggle_inherit_filters: false makes toggle_filter stand alone instead of narrowing the display filter. A manual room's toggle_entities defaults to its entities.

Tap, hold and the popup

Same action system as Climate Overview: tap_action (default toggle) / hold_action (default popup, or more-info in entities view) / double_tap_action, with popup.mode choosing what hold opens — default-grid (this same card again, scoped to the tapped room), default-detail (HA's more-info dialog), or custom (an arbitrary Lovelace card built from popup.card, with [[area_id]], [[entity_id]], [[name]] placeholders resolved against the tapped room).

Configuration options

OptionTypeDefaultDescription
auto_discoverbooleantrueAutomatic discovery of lights by area
include_domainslist["light"]Which domains auto-discovery sweeps. A lamp on a smart plug is a switch, and nothing in Home Assistant says which switches are lighting — add switch and narrow the result with the include/exclude filters, or list the entities per room under rooms instead
include_area / exclude_arealist<string>–Filter for auto-discovery
include_entities / exclude_entitieslist<string>–Entity filter for auto-discovery
include_labels / exclude_labelslist<string>–Label filter for auto-discovery
include_state / exclude_statelist<string>–State filter (on/off/unavailable/unknown, or a custom value)
group_handlingall | prefer_groups | prefer_membersallHow a light.group and its members are counted
roomslist (name, icon, entities, toggle_entities)–Manual room list instead of auto-discovery
name / iconstring"Lights" / mdi:lightbulb-groupHeader
viewrooms | entitiesroomsTile per room, or a flat per-light list
sortname | area | on_firstnameTile order
show_headerbooleantrueCard header
show_countbooleantrue"N/total on" on a multi-light tile
show_areabooleantrueRoom name caption in entities view
hide_empty_roomsbooleanfalseDrop rooms with no matching lights
toggle_filterobject (same fields as the display filter)–Narrower filter for what a tap actually switches
exclude_toggle_entitieslist<string>–Shorthand: show these, but never toggle them
toggle_inherit_filtersbooleantrueWhether toggle_filter narrows the display filter or stands alone
toggle_group_handlingall | prefer_groups | prefer_membersgroup_handlinggroup_handling, applied to the toggle set instead
tap_action / hold_action / double_tap_actionaction configtoggle / popup / noneTap/hold/double-tap actions; adds a popup action kind
popupobject (mode, title, view, sort, show_area, show_header, card, filter fields)–Popup shown by the popup action — see above
on_color / off_colorstringtheme defaultTile color by state
accent_color / accent_opacitystring / numbertheme default / 12Header icon accent
tile_tint_opacitynumber–Tile background tint strength
text_color / secondary_text_colorstringtheme defaultRoom names/values vs. secondary text
card_backgroundstringglass/solid backgroundCard background
animationauto | on | offautoRespects prefers-reduced-motion
glass_backgroundbooleantrueFrosted glass background
radius / cornersnumber / object28Corner radius, optional per corner

M3 Chip Buttons Card

A horizontal row of tappable pill-shaped chips — one per entity — with tap/hold/double-tap actions. This is the M3 answer to Bubble Card's "sub-buttons only" card: same core idea (a row of icon chips), but flatter configuration — one form per chip instead of several nested panels, and explicit Up/Down buttons to reorder instead of a dropdown menu.

A chip can also be non-interactive (interactive: false), which turns it into a read-only info readout (e.g. a temperature or humidity chip) — the M3 equivalent of Bubble Card's separate second row, without a second positioning system to configure.

Chip Buttons Card
Configuration, examples & options
type: custom:m3-chip-buttons-card
wrap: false
justify: start
buttons:
  - entity: input_select.home_mode
    name: Home
    icon: mdi:home
    tap_action:
      action: more-info
  - entity: lock.front_door
    name: Locked
    color: blue
    tap_action:
      action: toggle
    hold_action:
      action: more-info
  - icon: mdi:magnify
    name: Search
    interactive: false
    tap_action:
      action: none
  - entity: sensor.living_room_temperature
    interactive: false
    show_state: true
glass_background: true
radius: 28

Configuration options

OptionTypeDefaultDescription
buttonslist[]The chips, in display order. Each entry supports the fields below
buttons[].entitystring– (optional)Any entity. Can be left empty for a pure action/display chip
buttons[].namestringentity friendly_nameDisplayed name
buttons[].iconstringentity icon, otherwise a generic iconIcon
buttons[].colorstringprimaryHA color name or any CSS color for the chip in its active state
buttons[].inactive_colorstring– (default theme grey)Color for the chip in its inactive state
buttons[].show_statebooleantrueShow the entity state next to the name
buttons[].static_colorbooleanfalseAlways render the chip as "active", regardless of the entity's actual state (e.g. for a status chip that should always stand out)
buttons[].interactivebooleantruefalse turns the chip into a read-only display — no tap/hold handlers, not keyboard-focusable
buttons[].tap_actionActiondepends on the domainTap action, same action picker as every other card. Left out, a script starts, a button or scene is pressed, a switch or light toggles, and anything else opens more-info.
buttons[].hold_actionActionnoneLong-press action
buttons[].double_tap_actionActionnoneDouble-tap action
wrapbooleanfalseWrap chips onto multiple lines instead of scrolling horizontally
justifystart | center | end | space-betweenstartHorizontal alignment of the chip row
radiusnumber (px)28Card corner radius
cornersobject–Optional per-corner override, same as every other card
glass_backgroundbooleantrueFrosted glass background
card_backgroundstring–Override background color
animationauto | on | offautoPress animation; auto respects prefers-reduced-motion

M3 Group Card

Wraps other cards — M3 ones or otherwise — in one shared frame, so a stack of several small cards (e.g. two or three chip-button rows) reads as a single card instead of a pile of separately bordered boxes. The group draws the outer border/background itself; every nested card that shares this suite's frame styling automatically drops its own border, background and padding while inside a group, with no configuration needed on the nested card — gap alone controls the space between rows, so gap: 0 makes them touch edge to edge.

Cards are added, edited and reordered through the same visual pickers Home Assistant's own vertical-stack editor uses — including search, favorites and paste-from-clipboard when adding a card.

Group Card
Configuration, examples & options
type: custom:m3-group-card
gap: 4
cards:
  - type: custom:m3-chip-buttons-card
    buttons:
      - entity: lock.front_door
        name: Front door
      - entity: binary_sensor.front_door
        name: Front door
  - type: custom:m3-chip-buttons-card
    buttons:
      - entity: lock.back_door
        name: Back door
      - entity: binary_sensor.back_door
        name: Back door

Configuration options

OptionTypeDefaultDescription
cardslist[]The nested cards, in display order. Any Lovelace card — M3 or otherwise
gapnumber (px)8Space between rows. 0 makes them touch
radiusnumber (px)16Card corner radius
cornersobject–Optional per-corner override, same as every other card
glass_backgroundbooleantrueFrosted glass background
card_backgroundstring–Override background color

M3 Search Card

A Material 3 search bar on the dashboard itself. It looks like the M3 search bar in its resting state — a 56px pill, a leading search icon, placeholder text, an optional trailing Assist button — and a tap opens Home Assistant's own quick bar, the same dialog the E key opens.

Search Card

It exists because Home Assistant's own search entry point is in the header, and the header's search button is not rendered at all on a narrow screen. On a phone or a wall tablet there is no way to reach the entity search from a dashboard except by keyboard, which those devices do not have. The same is true of the header's Assist button, which is why this card can carry one.

Nothing is configured to make it work: the card reads no entity and needs no setup.

Configuration, examples & options
type: custom:m3-search-card

A bar that opens the command palette instead, with its own text and no Assist button:

type: custom:m3-search-card
mode: command
placeholder: Run a command
icon: mdi:console
show_assist: false
accent_color: primary
radius: 28

Or one that ignores the search entirely and navigates somewhere — tap_action replaces the built-in behaviour rather than running alongside it:

type: custom:m3-search-card
placeholder: Everything in the house
icon: mdi:home-search
tap_action:
  action: navigate
  navigation_path: /lovelace/all

How it opens the dialog

ha-quick-bar is code-split out of the frontend's main bundle, and the only thing that pulls it in is Home Assistant's own caller, which passes the dialog manager an import() callback alongside the dialog tag. A card loaded as its own Lovelace resource cannot name that module path, so firing a bare show-dialog event lands on a custom element that was never defined and fails with "Unknown dialog type loaded".

So the card asks for the dialog the way a keyboard does: it dispatches the keydown Home Assistant already listens for, and the frontend's own handler does the lazy import and opens what it built. That makes the card depend on the shortcut — user-visible, listed in Home Assistant's own Shift+? dialog — instead of on an internal module path.

Three things can take those shortcuts away, and the card checks all three rather than drawing a control that silently does nothing:

  • Keyboard shortcuts can be switched off per user under Profile → Keyboard shortcuts. The bar dims and says so.
  • The command palette (C) is registered for admins only. On a non-admin account mode: command opens the entity search instead, which is at least a search; the editor says so too.
  • Assist needs the conversation integration. It is part of default_config, so it is normally there — where it is not, the trailing button is left out.

One known limitation: the back gesture does not close the dialog

On Android, swiping back while the quick bar is open navigates the dashboard away instead of closing the dialog. That is not this card's doing and it is not fixable from here: Home Assistant's more-info dialog pushes a history entry when it opens ({dialog: "ha-more-info-dialog"}), which is what gives the back gesture something to pop — and the quick bar pushes nothing at all, so the gesture reaches the router instead.

It is worth stating plainly because this card is what makes the quick bar reachable on a phone in the first place, which is exactly where the back gesture is the reflex. Close it with the dialog's own close button or with Esc. If the frontend ever pushes an entry for the quick bar too, this disappears on its own with no change here.

Configuration options

OptionTypeDefaultDescription
placeholderstringSearch Home Assistant, or Run a command in command modeThe resting text in the bar
labelstring–Alias for placeholder, for consistency with the cards that call their one piece of text a label. placeholder wins if both are set
iconstringmdi:magnifyLeading icon
modeentity | commandentityWhich quick bar a tap opens. command needs an admin account
show_assistbooleantrueTrailing Assist button. Drawn only when Assist is actually reachable
assist_iconstringmdi:microphoneIcon on the Assist button
tap_actionAction–Standard Home Assistant action config. Once set it replaces opening the search
accent_colorstring– (neutral, as M3's own search bar is)Colors the leading icon and the Assist button's well
text_colorstring–Override text color
secondary_text_colorstring–Override the placeholder color
card_backgroundstring–Override background color
radiusnumber (px)28Card corner radius — 28 is half of the 56px bar, i.e. a full pill
cornersobject–Optional per-corner override, same as every other card
glass_backgroundbooleantrueFrosted glass background
animationauto | on | offautoThe press feedback (a corner-radius morph); auto respects prefers-reduced-motion

M3 Vacuum Card

A control surface for a robot vacuum, built against the Roborock integration and usable with any vacuum entity.

Only entity is required. Everything else the card draws — the map, the progress, the mop controls, the dock chips — is looked up on the vacuum's own device and simply left out when it is not there, so a Valetudo, Dreame or Xiaomi vacuum gets the header, the buttons and the suction row without being asked to support anything it cannot.

Vacuum Card
type: custom:m3-vacuum-card
entity: vacuum.sushi

What it draws today

The header carries the state as a colour — cleaning blue, docked green, paused amber, returning violet, an error red — with the vacuum's own status text underneath and a battery chip on the trailing end. Under it the primary button follows the state (Start, Pause, Resume), flanked by two smaller ones, and below that a row of suction pills built from the entity's own fan_speed_list.

The suction pills draw four rising bars rather than spelling the level out. The names are vendor vocabulary — "Balanced", "Turbo", "Max+", "Custom" — which does not sort, does not translate consistently and does not fit a 42px pill.

Sending it to rooms

Pick one or more rooms and the primary button becomes Clean N rooms, calling vacuum.clean_area with the areas in the order they were tapped. The service takes a reorderable list, so that order is passed on rather than sorted behind your back.

The areas have to be configured — the editor offers Home Assistant's own area picker for it. That is not laziness: the mapping from a map's segments onto areas lives inside the integration and is not readable from a card, so the alternative would be offering every area in the house, with "Garden" and "Terrace" sitting next to "Kitchen" and no way to tell which the robot can reach.

Two things have to be true before a tap does anything: the vacuum must declare CLEAN_AREA in its supported features, and the segments must be mapped to areas on the vacuum entity itself — its gear icon, "Map vacuum segments to areas". Without the mapping the service is called and the robot ignores it.

The map is cropped to the floor plan

A Roborock map is a picture of the robot's whole coordinate space, and a flat fills a corner of it. object-fit: contain then fits the empty margin as carefully as the rooms, which is why an uncropped map arrives as a stamp in the middle of a 360-pixel box with air on every side.

So the card measures where anything is actually drawn and hands that to object-view-box. Same box, same layout, a plan several times larger — what you would otherwise get by pinching the enlarged map every time you looked at it.

The measurement runs on the picture's load, once per version of it, against a 240-pixel-wide copy: plenty to find an edge, and cheap enough for a map that changes every few seconds while the robot is out. A row of pixels counts as content only when enough of it is opaque, so the path trace and a no-go line do not pin the crop to the edge of the canvas — with one honest limit, that a stroke running along an axis fills its own row or column and is kept.

map_fit: picture turns it off and shows the file as it comes. Browsers without object-view-box (Firefox, at the time of writing) also show the whole picture — the declaration is simply ignored, and nothing else changes.

Zooming the map

Rather than crop the picture to fill the box — which would hide rooms — the map can be enlarged: the magnifier in its bottom corner opens the picture full-screen, and there it pinches, drags and wheel-zooms. Double-tap toggles between 1× and 2×, and a second button goes back to 1×.

The card's own map does not take those gestures, and that is the point of the magnifier. Pinching an element needs touch-action: none on it, and that also swallows the vertical swipe that scrolls the dashboard. The map is the tallest thing on this card, so a phone was left with a few pixels beside it to scroll on — and the picture sliding under the thumb on every attempt.

A tap on the map opens the same enlarged view. It used to open more-info on the image entity, which is that same picture again with a history graph under it — worth having while the map could be pinched in place, useless once it cannot. map_tap_action takes it over: { action: "none" } makes the picture inert and leaves the magnifier, and more-info is still there for anyone who wants it back.

Inside the full-screen view both shields are in place: touch-action: none so the browser does not pan anything underneath, and every pointer is also handed to stopSwipe, so hass-swipe-navigation does not read a sideways drag as "next view". The CSS stops the browser, the shield stops the plugin's own listeners.

Vacuum, mop, or both

The cleaning mode is a menu, not a scale, and that is deliberate. Mop intensity and route are three strengths of one thing, so a slider reads them correctly. Vacuum / mop / both are three different jobs, and sliding from "vacuum" to "mop" through "both" says something about them that is not true — the machine's own app asks this question with a menu too.

The row sits at the bottom of the card, under the sliders and the chips. It is the one control you set before sending the machine out and then leave alone, so it belongs below the things read at a glance rather than between two sliders that get nudged far more often.

It shows what the next run will do and opens the menu on a tap. Picking an option sets the select and starts nothing: a vacuum leaves on one button, the one that says Start. The card looks for cleaning_mode on the vacuum's device; cleaning_mode_entity names it outright, and show_cleaning_mode: false leaves it out.

Folding it away

collapsible: true gives the header a chevron that folds the map, the scales, the buttons and the chips. What stays is the line you actually glance at — the state, the battery and Start/Pause — which is the split worth making on a dashboard where the vacuum is not the main event.

collapse_blocks narrows what disappears. Folding the map away while the suction scale stays put is a different card from folding everything, and both are reasonable:

type: custom:m3-vacuum-card
entity: vacuum.dobby
collapsible: true
default_collapsed: true
collapse_blocks: [map, mop, buttons]

That leaves the state, the battery, Start/Pause, the suction scale and the status chips visible at all times, and puts the map and the mop controls behind the chevron. Leaving the key out folds everything, which is what collapsible alone has always done.

The fold is remembered the same way the room and heading cards remember theirs: per device by default, per session with collapse_memory: session, or in an input_boolean via collapse_state_entity, which survives a different browser and lets an automation fold it.

Everything else, one tap away

popup puts any Lovelace card behind the header — the maintenance card, the history, every routine the vendor's app has. The tile stays a summary and the detail stops competing with it for space.

type: custom:m3-vacuum-card
entity: vacuum.dobby
popup:
  size: wide
  content:
    type: custom:m3-vacuum-maintenance-card
    entity: vacuum.dobby

With a popup configured, a tap on the header opens it instead of more-info; an explicit tap_action still wins over both.

Naming states yourself

states maps the vacuum's own state onto a label, an icon and a colour, first match wins. It exists for two cases: a brand whose vocabulary this card has never seen, and a word you simply want different.

type: custom:m3-vacuum-card
entity: vacuum.dobby
collapsible: true
states:
  - value: docked
    label: Steht in der Station
    icon: mdi:sleep
  - regex: "clean"
    label: Unterwegs
    color: "#85b7eb"

A rule's label wins over the status sensor, which is what makes it useful as an override rather than only as a fallback.

Telling you when it goes wrong

The editor can build an automation that notifies on an error from the vacuum or its dock. It watches the two error sensors rather than the vacuum's own error state, for two reasons: those carry the reason — water_empty rather than just "something is wrong" — and the dock's errors never reach the vacuum entity at all.

It fires when an error appears and stays quiet while the same one stands, and a restart does not replay errors the machine was already in. {geraet} and {fehler} are available in the custom text.

Three things worth knowing about Roborock

It polls every 30 seconds and pushes nothing. A tap on Start therefore changes no state the card can see for up to half a minute. Rather than look broken, the card paints the state it just asked for and reconciles on the next poll, dimming the button slightly while it is showing something unconfirmed. If the confirmation never comes — the dock was blocked, the command was lost — the guess expires on its own after about two polls and the real state comes back. optimistic_timeout changes that window for a slower integration.

"Local polling" still needs the cloud. The integration talks to the vacuum over the local network, but it cannot log in without reaching Roborock's servers, and the vacuum locks its own local API when it has no internet. An offline install is not possible today.

It disconnects briefly, often. The card paints an unreachable vacuum grey rather than red. Red is reserved for an actual error, so that it keeps meaning something.

Options

OptionTypeDefaultDescription
entitystring—Required. The vacuum entity.
namestringentity nameHeader title.
iconstringmdi:robot-vacuumOverrides the header icon. By default it stays a robot vacuum — the colour carries the state — and changes only to robot-vacuum-alert on an error and robot-vacuum-off when the vacuum cannot be reached.
collapsiblebooleanfalseFolds the blocks below the primary buttons. State, battery and Start/Pause stay in view.
collapse_blockslistallWhich blocks the fold hides: map, rooms, fan_speed, mop, buttons, chips. Left out, it hides all of them.
default_collapsedbooleanfalseWhether it starts folded.
collapse_state_entitystring—An input_boolean holding the fold, so it survives a different browser and an automation can fold it.
collapse_memorydevice | sessiondeviceWhere the fold is remembered without a helper entity.
stateslist—Custom status texts. First match wins; each rule takes value/regex/above/below plus label, icon, color.
show_mapbooleantrueThe live map preview.
map_heightnumber360Height of the map preview in px.
show_roomsbooleantrueThe room chips.
roomslist—Home Assistant area ids the vacuum can be sent to, in the order they should be offered. Required for the block to appear — see below.
map_zoombooleantrueThe magnifier that opens the map full-screen, where it pinches, drags and wheel-zooms. false leaves the map a plain picture.
map_max_zoomnumber4How far the pinch may go in that view.
map_fitplan | pictureplanplan crops the empty margin off so the floor plan fills the box. See above.
map_tap_actionactionopens the enlarged mapWhat a tap on the map does. The suite's usual action grammar, so none, more-info, navigate, call-service and the rest all apply.
show_mop_intensitybooleantrueThe mop-intensity scale.
show_mop_modebooleanfalseThe mop-route scale. Off by default — it is rarely changed.
show_station_chipsbooleantrueThe dock and mop status chips. Drawn with a rim and no fill, so they cannot be mistaken for the filled buttons above them; only a reminder you can tick off is filled.
reminderslist—Recurring chores; only the ones that are due appear, as a chip. Same shape as on the maintenance card.
max_chipsnumber4How many chips before the rest collapse into "+n". Errors are never collapsed.
buttonslist—Free buttons. The suite's chip buttons, so each takes entity, name, icon, color, show_state, tap_action, hold_action, double_tap_action.
buttons_wrap, buttons_stretch, buttons_justify—wrapLayout of that row, as on the chip-buttons card.
popupobject—A popup with any card inside: content, optional title and size (normal, wide, fullscreen). A tap on the header opens it.
show_fan_speedbooleantrueThe suction row. Hidden anyway when the vacuum reports fewer than two speeds.
show_cleaning_modebooleantrueThe cleaning-mode row — vacuum, mop, or both — as a menu. Hidden when the vacuum has no such select.
cleaning_mode_entitystringdiscoveredNames the cleaning-mode select when discovery cannot.
secondary_actionslist[return_to_base, locate]The two buttons beside the primary one: return_to_base, locate, stop.
optimistic_timeoutnumber70000How long, in milliseconds, a tapped state is shown before the card stops waiting for confirmation.
status_entitystringdiscoveredThe status sensor whose text the header shows.
notify_enabled, notify_service, notify_title, notify_message——The error notification above. Off until switched on.
accent_colorstringthe state colourPins the card to one colour instead of letting the state pick it.
text_color, secondary_text_color, card_background, glass_background, radius, corners, card_version——The usual shared appearance options.

Every companion entity can also be named explicitly — map_entity, mop_mode_entity, mop_intensity_entity, empty_mode_entity, progress_entity, area_entity, time_entity, volume_entity, child_lock_switch, dnd_switch — which is only needed when the automatic lookup picks the wrong one, or when the entity lives on a different device.

The lookup matches on the entity registry's translation key before falling back to the entity id, so renaming an entity does not hide it from the card.

M3 Vacuum Maintenance Card

The other half of the vacuum pair: wear counters, dock actions and lifetime totals.

Vacuum Maintenance Card
type: custom:m3-vacuum-maintenance-card
entity: vacuum.dobby

Only the vacuum is named. The consumable sensors, the dock switches and the totals are found from it — including the ones on the dock, which Roborock registers as a second device linked by neither via_device nor parent_device. The card follows the identifier instead, so the strainer and the cleaning brush turn up beside the vacuum's own brushes rather than going missing.

Why this is a separate card

Wear counters are read once a month. Suction and Start are read every day. Putting them on one card buries the daily thing under the monthly one — so they are two, and the control card's popup is how they stay one tap apart:

type: custom:m3-vacuum-card
entity: vacuum.dobby
popup:
  size: wide
  content:
    type: custom:m3-vacuum-maintenance-card
    entity: vacuum.dobby

The bars need a total, and the sensors do not give one

Roborock reports hours remaining, never a percentage, so a bar needs a service life to divide by. The card carries the documented ones — main brush 300 h, side brush 200 h, filter 150 h, sensors 30 h, dock strainer and cleaning brush 150/300 h — and a part it has no figure for shows its hours without a bar rather than a bar against an invented denominator. max_hours per consumable overrides any of them.

A part past its life reports a negative number of hours. That reads as "overdue", not as "−12 h".

About the reset buttons

show_reset: true puts a small reset button at the end of every part row. Pressing it asks first — the counter will read "new part" whether or not one was fitted, and there is no undo — and then presses Home Assistant's own reset button for that consumable.

Home Assistant ships Roborock's consumable-reset buttons disabled, and a disabled entity is not in the frontend's registry at all, so the card cannot tell "disabled" from "this vendor has none". Either way there is nothing to press: the icon is drawn greyed with the reason on it, rather than left out. Enable the buttons under Settings → Devices → Entities and it lights up.

The option is off by default, because a row of reset buttons is a row of irreversible ones.

Reminders for what the vacuum does not count

A mop pad wants changing every few runs, and no sensor tracks that. reminders counts those against the lifetime run or runtime totals:

type: custom:m3-vacuum-maintenance-card
entity: vacuum.dobby
reminders:
  - name: Wischmopp wechseln
    icon: mdi:hand-wash-outline
    every_runs: 3

"Every three runs" needs a reference point, and there are two ways to have one.

Without a helper the reminder fires on every multiple — run 3, 6, 9. Nothing to set up, and nothing to acknowledge: change the mop after two runs and it will still say so on the third.

With counter_entity — an input_number holding the meter reading at the last acknowledgement — it becomes a real "2 runs ago", the row can be ticked off, and the state lives in Home Assistant rather than in one browser. The reminder's editor has Create counter helper: it makes the input_number, fills it in here and sets it to today's meter reading, which is the one value that must not be left at zero — a helper at zero means "last done when the machine was new", so a vacuum with 400 runs behind it would report the mop 397 runs overdue. (By hand it is Settings → Devices & services → Helpers, with a range wide enough for the lifetime count.)

The tick-off is not only for a reminder that has come due: a mop changed after two of its three runs still wants the count to start again. Due, the row carries a Done button; before that, a quiet reset icon sits beside the figure.

every_hours counts against total runtime instead; if both are given, hours wins.

Due reminders also show up as a chip on the control card, if you give it the same reminders list — the tile then says what needs doing, and tapping the chip ticks it off when a counter helper makes that meaningful.

Telling you when something is due

The editor can build a Home Assistant automation that checks once a day and reports the parts that have fallen below the warning threshold, together with any reminders that have come due. It is a daily digest rather than a trigger per sensor for a concrete reason: the sensors report hours left against six different service lives, so "below 25 %" is six different numbers — working that out once a day in one template is both simpler and quieter than six triggers that each fire on their own.

Nothing due means nothing sent. Without that condition it would report an empty list every morning, which is how a notification channel gets muted.

Turning the switch off pauses the automation rather than deleting it, so the target and the wording survive. {teile} and {anzahl} are available in the custom text.

Folding it away

collapsible gives the header a chevron. The header itself never folds — the "3 parts due soon" line is the reason to look at the card — and collapse_blocks decides what goes behind it:

type: custom:m3-vacuum-maintenance-card
entity: vacuum.dobby
collapsible: true
default_collapsed: true
collapse_blocks: [stats, settings]

That keeps the parts, the reminders and the dock tiles in view and puts the lifetime totals and the settings row away, which is the split that suits a card you glance at for "does anything need doing". Leaving the key out folds everything below the header.

Options

OptionTypeDefaultDescription
entitystring—Required. The vacuum entity. Everything else is found from it.
namestring"Maintenance"Header title.
iconstringmdi:robot-vacuumHeader icon.
reminderslist—Recurring chores: name, optional icon, every_runs or every_hours, optional counter_entity.
consumableslistdiscoveredReplaces the automatic list. Each entry takes key or entity, plus name, icon, max_hours.
warn_belownumber25Percent of service life at which a part turns amber.
alert_belownumber10…and red.
show_stationbooleantrueThe dock action tiles.
show_statsbooleantrueRuntime, area and run count.
show_settingsbooleanfalseChild lock, do-not-disturb and volume.
show_resetbooleanfalseA reset button on every part row, behind a confirmation. See above.
collapsible, default_collapsed, collapse_state_entity, collapse_memory——Folds the blocks below the header, as on the room and heading cards.
collapse_blockslistallWhich blocks the fold hides: parts, reminders, station, stats, settings. Left out, it hides all of them.
notify_enabled, notify_service, notify_time, notify_title, notify_message——The notification above. Off until switched on.
accent_color, text_color, secondary_text_color, card_background, glass_background, radius, corners, card_version——The usual shared appearance options.

Only blocks whose entities exist are drawn, so a vacuum without a dock shows its four own consumables and nothing else.

M3 Printer Card

A 3D printer spends most of its life idle, and a dashboard built from one tile per sensor spends most of its life saying "unavailable" sixteen times. This card is the other approach: the state decides what is drawn.

Printer Card
type: custom:m3-printer-card
entity: sensor.p1s_print_status

Built against Bambu Lab's integration and not tied to it — every block beyond the header and the buttons is optional and appears only when its entities exist, and the one thing that would otherwise hard-code a vendor is configurable. See state_map below.

What the state changes

StateWhat the card shows
printing / pausedEverything: job, progress, layer count, controls
idle / finishedNo progress bar, no percentage, no layer count, and no primary button unless a start_action is configured
errorA red outline, and the primary button becomes Acknowledge error
offlineDimmed, and no controls at all — nothing sent would arrive

Offline is grey rather than red on purpose: a printer switched off at the wall is a normal state, not a fault, and colouring it as one trains people to ignore red. The way back is the socket switch in the details block, which is why that block stays live when everything else does not — and why the fold never takes it while the printer is offline, whatever collapse_blocks says.

state_map, and why it exists

Every integration words this differently. Bambu Lab reports a stage with dozens of values, OctoPrint reports Printing/Operational, Moonraker reports Klipper's printing/complete/standby, Prusa Connect something else again. There is no set of strings that covers all four.

So the card resolves a status in three passes: your state_map first, then a table of values seen in the wild, then substring rules. That last pass is why heatbed_preheating, filament_loading and auto_bed_leveling all read as "printing" without being listed — a vendor adds more of those with every firmware, and a list would guarantee missing one.

A value nothing recognises reads as idle, never as an error. A vague status line is better than a red frame around a healthy machine.

type: custom:m3-printer-card
entity: sensor.printer_status
state_map:
  beschaeftigt: printing
  wartet: paused
  bereit: idle

Entity mapping per integration

Everything below is found automatically when the integration names things recognisably; the table is what to put in the Sensors section when it does not.

What the card wantsBambu LabOctoPrintMoonraker / KlipperPrusa Connect
entity (drives the layout)print statussensor.*_current_statesensor.*_printer_statesensor.*_printer_state
stage_entity (the wording)current stage———
Progressprint progresssensor.*_job_percentagesensor.*_progresssensor.*_progress
Remainingremaining timesensor.*_time_remainingsensor.*_print_time_leftsensor.*_remaining
Job namesubtask namesensor.*_current_filesensor.*_filenamesensor.*_filename
Nozzlenozzle temp / target nozzle tempsensor.*_tool0_temperaturesensor.*_extruder_temperaturesensor.*_nozzle_temperature
Bedbed temp / target bed tempsensor.*_bed_temperaturesensor.*_heater_bed_temperaturesensor.*_bed_temperature
Cameracamera.* (the chamber)camera.*camera.*—
Speed profileselect.*_printing_speed———
AMSone sensor per slot———

Why the Bambu column has no entity ids in it. Home Assistant creates an entity id in the language the install was set up in, so the same P1S is sensor.*_print_progress on an English system and sensor.*_druckfortschritt on a German one. Nothing matched on the id would survive that, which is why the registry's translation key is the first pass and the id only the second. Pick the entity by what it is — the table names that — and the card finds the rest itself.

Use the print status, not the stage, as entity. Bambu publishes both. The status is a clean six-value enum (running, pause, finish, idle, failed, offline); the stage is a list of eighty values describing what the machine is physically doing this second — waiting_for_heatbed_temperature, cleaning_nozzle_tip, checking_extruder_temperature. The substring rules catch most of those, but "most" is not what should decide whether the progress bar is on screen. The stage is found on its own and used for the status line, where eighty values are an asset rather than a hazard.

OctoPrint sets no translation keys, so its temperatures are found by device class instead — that third pass exists for exactly this case.

The speed row reads one entity and writes another

Bambu publishes the print profile twice: a select that can change it, and a sensor that only reports it. The select is unavailable in some connection modes — hybrid MQTT on a P1S, for one — while the printer prints on perfectly happily in Standard, and a row of four pills with none of them lit reads as "no profile" rather than as "not changeable from here".

So the value comes from whichever of the two has one, and only the changing needs the select. Without it the row still shows what the printer is doing, with the other pills stepped back so it does not invite a tap it cannot honour.

AMS trays

Bambu does not publish a tray as three entities. It publishes one sensor per slot, whose state is the spool's product name and whose attributes carry type, color, remain and empty. The card reads either shape: dedicated entities where an integration splits them, the tray entity's own attributes where it does not — so ams_slots usually needs nothing at all, and naming only type_entity is enough when everything hangs off that one entity.

Each tray shows its material, how much is left as a number, and the same value as a bar underneath — both turn amber below filament_warn. A spool that cannot report how much is left reports -1, which is shown as neither rather than as an empty one. Two AMS units stay two rows of four; they both number their slots 1–4, and merging them would quietly hide half the filament.

Options

OptionTypeDefaultDescription
entitystring—Required. The status or stage entity whose value drives the layout.
state_mapobject—Raw status values onto printing, paused, idle, finished, error, offline.
namestringjob nameHeader title. Falls back to the job name, then to "No job".
strip_extensionbooleantrueDrops .3mf/.gcode from the job name.
iconstringfollows the stateOverrides the header icon.
secondary_actionslist[stop]Which small buttons may appear: stop, files, filament, preheat. A button is only drawn when it has something to do — see below.
confirm_stopbooleantrueStop asks first, in a dialog. See below.
confirm_power_offbooleantrueSo does switching an accessory off. Switching one on never asks.
pause_action, resume_action, stop_action, start_action, files_action, filament_action, preheat_actionaction—Full Home Assistant action syntax. Pause, resume and stop fall back to the integration's own buttons when it has them; start_action decides whether a Start button exists at all.
stage_entity, progress_entity, remaining_entity, layer_entity, total_layers_entity, job_name_entity, online_entity, error_entitystringdiscoveredOverride any entity the automatic lookup got wrong.
optimistic_timeoutnumber35000How long a tapped state is shown before the card stops waiting for confirmation.
show_camera, camera_entity, camera_live, camera_refresh, light_entity——The chamber view. A still by default — see below.
show_progress, show_temps, show_speed, show_ams, show_detailsbooleantrueThe blocks. Each also disappears on its own when its entities are missing.
collapsiblebooleanfalseFolds the card to its header and controls, with the chevron the vacuum cards use.
collapse_blockslistallWhich blocks the fold takes: camera, progress, temps, speed, ams, details.
default_collapsed, collapse_state_entity, collapse_memory——Same keys as the vacuum, room and heading cards: start folded, keep the state in an input_boolean, or remember it per device or per session.
filament_warnnumber40Percent below which a tray's bar turns amber.
ams_slotslistdiscoveredPer tray: type_entity, color_entity, remaining_entity. One entity carrying all three as attributes also works — see below.
accessorieslist—Switches beside the printer: entity, name, icon, color, power_entity.
nozzle_temp_entity, nozzle_target_entity, bed_temp_entity, bed_target_entity, chamber_temp_entity, speed_entity, speed_state_entity, start_time_entity, end_time_entity, power_entity, camera_entity, light_entitystringdiscoveredOverride any lookup that got it wrong.
accent_color, text_color, card_background, glass_background, radius, corners, card_version——The usual shared appearance options.

There is no Start button

Nobody starts a print from Home Assistant. A job is sliced, sent to the machine and started at the machine or in the slicer; a dashboard has no file to print and no way to pick one. An idle printer therefore gets no primary button — the control row is its secondary buttons alone, which is the honest shape.

The exception is a setup where starting does mean something: a queue integration, a Klipper macro, a "print the last file again" script. Configure start_action and the button comes back.

start_action:
  action: perform-action
  perform_action: script.print_last_job

Progress, drawn as the light card draws brightness

The progress bar is the light card's wave, not a lookalike: the same amplitude, wavelength, stroke and gap, flowing while the printer prints and flattening when it pauses — the shape says "stopped" before the word does. It is drawn at the card's real width. It used to be a 100-unit drawing stretched to fit, which turned a tight wave into a long, lazy swell on a phone.

The header ends the way the vacuum card's does — a pill, then the fold chevron — with the percentage in the pill. The layer and the time left sit under the wave instead, left and right, where they describe the thing they are under; up in the header they pushed the stage wording off the end of the line.

Filled means press it, outlined means read it. The chips in the details block are status and have a rim and no fill; the accessory rows under them are switches and are filled. The vacuum cards follow the same rule.

Pause, resume and stop work without configuration

Bambu Lab publishes a button entity for each — pause, resume, stop — with a translation key that says what it is, and so do OctoPrint and Moonraker by id. The card finds them on the printer's device and presses them. A configured pause_action, resume_action or stop_action still wins.

The emergency stop is deliberately not one of them. Moonraker publishes an emergency_stop button that halts the firmware, drops the heaters and needs a restart to recover from. Its id ends in _stop, so a lookup that matched on the last word would take it for the job's stop — and the confirmation dialog would then promise a cancelled print and deliver a dead printer. Anything that sounds like a firmware, host or emergency action is excluded from the lookup, and the exclusion has a test.

A small button without anything behind it is not drawn. Stop appears when there is a stop_action or a stop button to press; files, filament and preheat only with an action of their own. The default used to be stop, files and filament — and with no action configured, files and filament both opened the same details dialog: two buttons that looked different, did the same thing, and on a phone had no label to say what either was for.

Folding

collapsible: true puts the suite's fold chevron at the end of the header, the same one the vacuum cards use, and a tap folds the card down to its header and controls. The header still carries the percentage in its pill while a job runs, so a folded card still answers "how far along is it".

collapse_blocks narrows what the fold takes — keep the AMS trays in view while the camera folds, say:

collapsible: true
collapse_blocks: [camera, temps, details]

This replaces the details block's own drawer. It used to open and close with a chevron of its own, a second fold inside a card the suite folds from its header — two gestures for the same thing. It is a block like the others now.

Stop and power-off ask first

A stop throws away hours of work and a spool's worth of filament, and the button sits next to Pause on a surface people tap while walking past it. So it opens a dialog naming what is about to be lost, with Cancel under the thumb and the red confirm beside it. confirm_stop: false removes the step.

Switching an accessory off asks the same way, because the accessory that matters is the socket and cutting it mid-job ends the job. confirm_power_off: false removes that one.

Switching an accessory on never asks, and that asymmetry is deliberate: it costs nothing, and it is the one control that still works while the printer is unreachable. Making the way back slower would be the wrong trade.

This replaced an older two-tap arm — tap once to turn the button red, again to send. That is not a confirmation: it asks the same question twice and never says what the answer costs, and two stray taps in the same spot still sent it.

The camera is a still, not a stream

camera_live is off by default, and deliberately. A printer's camera runs on the printer's own CPU and bandwidth, and a dashboard left open on a wall tablet would hold a stream open for hours while the machine has better uses for both. The still refreshes every ten seconds, and only while the card is actually on screen — a layer takes longer than that anyway.

The badge on the picture says which of the two it is — a ten-second still labelled LIVE is how a stopped print looks like a working one, because the picture simply does not change and the badge insists it should.

An image entity is preferred over a camera one when the device offers both, because an image entity's state is the timestamp of the picture: the browser then refetches exactly when there is something new and never otherwise.

Accessories, and why they outlive "offline"

accessories are the switches that belong with the printer but not to it — the socket it is plugged into, the AMS heater, a filament dryer. They live in the details block, which is the one block that stays usable — and unfolded — while the printer is offline.

That is the whole point. Every other control is hidden when the machine is unreachable, because nothing sent would arrive; the socket is how it comes back.

accessories:
  - entity: switch.drucker_steckdose
    name: Drucker-Steckdose
    icon: mdi:power-plug
    power_entity: sensor.drucker_steckdose_power
  - entity: switch.ams_heizung
    name: AMS-Heizung
    icon: mdi:radiator

Finding the entities

Companion entities are looked up on the printer's own device, and on any device registered through it — which is how an AMS unit is reached, since Bambu registers those separately.

Three passes, because integrations differ in what they bother to declare: the entity registry's translation key first, the entity id second, a device class third. That last one is what finds OctoPrint's temperatures, which carry no recognisable name but do say what they are.

Environment sensors belong elsewhere

Enclosure temperature, filament dryer, AMS humidity — those are climate readings, and the suite already has a card that draws climate readings well. Put them in M3 Climate Overview Card rather than here; this card is about the job.

Development

npm install
npm run dev     # watch build to dist/m3-cards.js
npm run build    # production build
npm run lint     # typecheck

For local testing, copy dist/m3-cards.js to config/www/ and add it as a Lovelace resource (/local/m3-cards.js, type "JavaScript module").

Credits

M3 Lights Overview, M3 Chip Buttons and M3 Group Card were built by Fabian Wendel (UHaFnir) in a fork of this project, along with the weather card's independent header/chart toggles and its configurable hourly strip. Two performance faults in code that was already here were his finds as well: every auto-discovering card refetched the whole entity registry instead of reading the copy the frontend already holds, and opening Home Assistant's card picker ran a full-house scan nine times over.

The card and editor sections above for those three cards are largely his prose, lightly adapted.

License

MIT

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
piitaya/lovelace-mushroom

Build a beautiful Home Assistant dashboard easily

5.3k
Nov 12, 2026
RepositoryTypeScript
alexpfau/calendar-card-pro

📅 A sleek and highly customizable calendar card for Home Assistant, designed for performance and a clean, modern look.

1.3k
Dec 1, 2026
RepositoryTypeScript
ReikanYsora/Helios

Helios - Make your energy visible, in 2.5D in a Lovelace card for Home Assistant

1.1k
Sep 12, 2026
RepositoryTypeScript
nicosandller/easy-floorplan

Interactive Home Assistant floorplan card with a visual drag-and-drop editor for walls, doors, furniture, text and device controls

698
Nov 24, 2026
RepositoryJavaScript
Clooos/Bubble-Card

Bubble Card is a minimalist and customizable card collection for Home Assistant, featuring modern pop-ups and an integrated Module Store with over 100 community-made modules.

4.8k
Oct 31, 2026
RepositoryTypeScript
custom-cards/button-card

❇️ Lovelace button-card for home assistant

2.5k
Nov 30, 2026
RepositoryTypeScript
Mastershort/neonplan3d

The original 3D floor plan for Home Assistant: draw your home in the built-in editor and see and control lights, covers, climate, media, sensors and cameras live in neon 3D – panel and dashboard card, runs on old wall tablets too.

1.3k
Nov 30, 2026
RepositoryTypeScript
nielsfaber/scheduler-card

HA Lovelace card for control of scheduler entities

1.3k
Oct 31, 2026
RepositoryTypeScript
denysdovhan/vacuum-card

Vacuum cleaner card for Home Assistant Lovelace UI

1.3k
Nov 5, 2026