GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - juju35/ha-smart-appliance-card: Animated Lovelace cards for home appliances: washers, dryers, washer-dryers, dishwashers, ovens, microwaves, hobs, coffee machines, hoods, fridges, freezers, wine cabinets and LG Styler. Works with Home Connect, Miele, SmartThings, LG ThinQ, Whirlpool and Matter.

BranchesTags
Open more actions menu

Latest commit

 

History

119 Commits
119 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
images
images
 
 
logos
logos
 
 
screenshots
screenshots
 
 
scripts
scripts
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.jscpd.json
.jscpd.json
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
biome.json
biome.json
 
 
commitlint.config.js
commitlint.config.js
 
 
hacs.json
hacs.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

ha-smart-appliance-card

Marketplace HACS Validation Validate Lint Release License: MIT Buy Me a Coffee

Smart Appliance Card

Bosch   Siemens   Neff   Gaggenau

Miele   Samsung   LocalThings   LG   Whirlpool   KitchenAid   Hoover   Candy   Haier

Animated Lovelace cards for home appliances in Home Assistant: washing machines, tumble dryers, washer-dryers, dishwashers, ovens, microwaves, hobs, coffee machines, cooker hoods, fridges, freezers, wine cabinets and the LG Styler. They work with Home Connect, Miele, Liebherr, SmartThings, LocalThings, LG ThinQ, Whirlpool, hOn and Matter.

Pick the appliance: the card works out its type and its brand, and finds all its entities by itself.

Open your Home Assistant instance and open a repository inside the Marketplace.

Dishwasher Washing machine Tumble dryer
Dishwasher card Washing machine card Tumble dryer card

Formerly ha-home-connect-card. The home-connect-dishwasher-card, home-connect-washer-card and their mini card types still work in existing dashboards.

Features

  • One card, smart-appliance-card, and its compact version smart-appliance-mini-card (a detail button unfolds the full card)
  • 13 appliance types, each with its own illustration animated by what it is doing: drum turning, laundry tumbling, water spraying, oven glowing, coffee pouring, hood drawing air, frost on a fridge in super mode…
  • Type detected from the appliance (its programs, its model or its entities), or set with kind
  • The appliance's brand next to its title: its logo (Bosch, Siemens, Neff, Gaggenau, Miele, Samsung, LG, Whirlpool, KitchenAid), or a badge with its initial on the header icon for the others (Constructa, Maytag…); main buttons in the brand's colour
  • Status with colour, progress bar, finish time and time left, the program step when the integration reports it (spinning, drying…)
  • Program picker and Start (when remote start is enabled), Pause / Resume, Stop with a confirmation tap, whatever the integration offers
  • Program options before starting, and the settings of appliances without programs (super modes, fan stage…)
  • Temperatures of fridges, freezers and wine cabinets (each compartment's temperature with its setpoint, 6 °C → 4 °C), and of ovens while cooking
  • − / + buttons to change a fridge or freezer setpoint from the card, and a Too warm alert when a compartment goes above a threshold (temperature_alert, freezer_temperature_alert)
  • Door state, salt and rinse aid alerts, washer i-Dos fill level alerts, coffee machine bean container, water tank, drip tray, descaling and cleaning alerts, and alerts of your own (alerts)
  • Entities of your own: chips for other sensors (sensors), a Commands section with drop-downs, switches, buttons and scripts (commands), and the power or energy of a smart plug in place of the appliance's (entities.watts, entities.energy)
  • A reminder chip when a program has finished and the door hasn't been opened since ("Finished 25 minutes ago, door still closed")
  • Energy per cycle: with an energy meter on the appliance (or a smart plug's, set as entities.energy), This cycle: 0.6 kWh while a program runs, then Last cycle: 0.9 kWh, with its cost when a price is set
  • A click on a chip (door, temperature, alert…) opens the more-info dialog of its entity
  • Visual editor in the dashboard UI (no YAML needed)
  • English, French, German, Spanish, Serbian (Cyrillic and Latin), Italian, Dutch, European Portuguese, Polish, Romanian, Danish, Swedish, Bulgarian, Russian, Ukrainian, Hungarian, Slovak, Czech, Slovenian, Latvian and Greek, follows the Home Assistant language
  • Light and dark theme compatible
  • Single file, no dependencies, ready for the Marketplace

Supported integrations

Integration Appliances What the cards show
Home Connect (built in) — Bosch, Siemens, Neff, Gaggenau, Constructa Dishwashers, washing machines, tumble dryers, washer-dryers, ovens, microwaves, hobs, coffee machines, cooker hoods, fridges, freezers, wine cabinets Status, progress, finish time, program picker with its options, Start (remote start enabled), Pause / Resume, Stop, door, salt and rinse aid alerts, i-Dos fill level alerts, coffee machine alerts (descaling and cleaning included), oven temperature, fridge setpoints and super modes, hood fan stage and light
Home Connect Local (custom, local network, no cloud) — Bosch, Siemens, Neff, Gaggenau, Constructa Same appliances as Home Connect, type read from the device model Status, progress, time left, program picker with its options, Start, Pause / Resume, Stop, power, door (binary sensor), salt and rinse aid levels, coffee machine tanks, fridge super modes, lights
Miele (built in) Washing machines, tumble dryers, washer-dryers, dishwashers, ovens (steam and combi included), microwaves, hobs, coffee machines, cooker hoods, fridges, freezers, wine cabinets Status and program phase, program, progress and finish time from the elapsed and remaining times, Start, Pause, Stop, power, door, zone temperatures, super cooling and super freezing
SmartThings (built in) — Samsung Washing machines, tumble dryers, washer-dryers, dishwashers, ovens, cooker hoods, fridges, freezers Machine and job state, progress, finish time, Start / Pause / Resume / Stop through the operating state, dishwasher course picker, door, temperatures, rapid cooling and freezing
LocalThings (custom, local network, no cloud) — Samsung Washing machines, tumble dryers, dishwashers, ovens and ranges, type read from the device name Machine state and step (oven cavity state, laundry progress), progress, finish time, cycle or oven mode picker, Start / Pause / Resume / Stop buttons, remote control, power, door, oven temperatures
LG ThinQ (built in) — LG Washing machines, tumble dryers, WashTower and WashCombo, dishwashers, ovens, microwaves, hobs, cooker hoods, fridges, wine cabinets, Styler Current state and step, progress and finish time, Start and Stop through the operation mode, power, remote start, door, temperatures, express modes
Whirlpool (built in) — Whirlpool, Maytag, KitchenAid, Consul Washing machines, tumble dryers, ovens, fridges Washer and dryer state, finish time and door; oven state, temperature and Stop (set brand for a Maytag, KitchenAid or Consul: the integration doesn't say)
Liebherr (built in) — Liebherr Fridges, freezers, fridge-freezers Temperature and setpoint of each zone, − / + on the setpoint, Too warm alert, SuperCool / SuperFrost (super mode animation), party and night mode, BioFresh-Plus, HydroBreeze and ice maker as settings (set kind: freezer for a freezer without SuperFrost)
hOn (custom, cloud) — Haier, Candy, Hoover Washing machines, washer-dryers, tumble dryers, dishwashers, fridges, wine cabinets, type read from the entities Machine mode and program phase, program, finish time, progress against the program duration, door, remote control, salt and rinse aid alerts, temperatures. No Start / Stop buttons: hOn has none (it starts programs with its hon.start_program action)
Matter (built in) Dishwashers, washing machines, tumble dryers (Matter 1.2+) Operational state and phase, finish time, Start / Pause / Resume / Stop, power, program options (set kind when the appliance type can't be told from its entities)

Air conditioners, purifiers and robot vacuums are left out: they have their own cards.

Appliance types

Each type is detected by itself; kind is the value to set when it can't be (a Matter appliance whose entities don't give it away, for instance).

Appliance kind Home Connect Miele SmartThings LG ThinQ Whirlpool hOn Matter
Dishwasher dishwasher ✅ ✅ ✅ ✅ — ✅ ✅
Washing machine washer ✅ ✅ ✅ ✅ ✅ ✅ ✅
Tumble dryer dryer ✅ ✅ ✅ ✅ ✅ ✅ ✅
Washer-dryer washer_dryer ✅ ✅ ✅ ✅ — ✅ —
Oven oven ✅ ✅ ✅ ✅ ✅ — —
Microwave microwave ✅ ✅ — ✅ — — —
Hob hob ✅ ✅ — ✅ — — —
Coffee machine coffee_maker ✅ ✅ — — — — —
Cooker hood hood ✅ ✅ ✅ ✅ — — —
Fridge fridge ✅ ✅ ✅ ✅ ✅ ✅ —
Freezer freezer ✅ ✅ ✅ — — — —
Wine cabinet wine_cooler ✅ ✅ — ✅ — ✅ —
LG Styler styler — — — ✅ — — —

Prerequisites

  • Home Assistant 2024.8 or later with one of the supported integrations set up
  • To start a program from Home Assistant, Remote start (or the integration's equivalent) must be enabled on the appliance itself (the card shows a hint when it isn't)

Installation

Via the Marketplace (recommended)

Click the button below to add the repository directly:

Add to the Marketplace

Or manually:

  1. Open Settings → Marketplace → Add from link (top right; this needs a GitHub account connected)
  2. Add https://github.com/juju35/ha-smart-appliance-card — Type: Dashboard
  3. Open Smart Appliance Card and click Install
  4. Clear your browser cache and refresh

The Marketplace registers the dashboard resource for you.

Manual

  1. Download smart-appliance-card.js and the smart-appliance-card.i18n.*.js translation files from the latest release
  2. Copy them all to /config/www/ (without the translation files, the cards show in English)
  3. Go to Settings → Dashboards → Resources → Add resource:
    • URL: /local/smart-appliance-card.js
    • Type: JavaScript Module
  4. Clear your browser cache and refresh

Upgrading from ha-home-connect-card (1.x)

The repository was renamed from ha-home-connect-card to ha-smart-appliance-card (GitHub redirects the former address, the Marketplace keeps updating it) and the file from home-connect-card.js to smart-appliance-card.js. The Marketplace may keep installing into the former folder until the repository is added again under its new name, so after the update check that Settings → Dashboards → ⋮ → Resources has exactly one resource for the card, pointing to the file that is really installed:

  • /local/community/ha-home-connect-card/smart-appliance-card.js for an existing install updated in place,
  • /local/community/ha-smart-appliance-card/smart-appliance-card.js for a new install (or after uninstalling the card and adding https://github.com/juju35/ha-smart-appliance-card again from a link in the Marketplace),

and remove the former home-connect-card.js resource. A resource pointing to a file that isn't there shows Custom element doesn't exist: smart-appliance-card. For a manual install, replace the file and the resource URL as above; the releases still carry a home-connect-card.js copy for the transition. Dashboards using custom:home-connect-*-card keep working: the former types stay registered (see Legacy card types).

Configuration

Visual editor

Add the card from the dashboard (Add card → Smart Appliance Card). The first supported appliance is picked automatically; change it with the Appliance field, then set the name, icon and the sections to show. Appliance type and Brand are only needed when the integration doesn't give them away. The Entities (advanced) panel lets you force any entity if auto-detection picks the wrong one. Options left at their default are not written to the YAML.

Minimal

type: custom:smart-appliance-card
device_id: bad11e7fd00845a2fb485b38c97cf675
type: custom:smart-appliance-card
entity: sensor.washing_machine_operation_state

Mini cards

type: custom:smart-appliance-mini-card
device_id: bad11e7fd00845a2fb485b38c97cf675

The mini card shows the appliance, its state, the program, the progress and finish time, the alerts, and round Start / Pause / Resume and power buttons. The detail button (top right) unfolds the full card with every option; a click anywhere else on the page folds it back. It takes the same options as the full card, which apply once unfolded, plus zoom; they are all in its visual editor too, energy_price and energy_price_entity included (the compact view's energy chip shows the cost as well). At its default size in a Sections view (6 columns), the round buttons sit under the text and the status pill shows only its coloured dot, the state being written above the program.

Use either device_id (what the visual editor writes) or entity (any entity of the appliance, YAML only). With neither, the card uses the first supported appliance it finds (of the kind given, if any).

Full options

type: custom:smart-appliance-card
device_id: 5c3a4c7f80e0aa935477ebca6e7b915b
name: Washing machine
kind: washer
brand: maytag
show_program: true
show_options: true
show_controls: true
show_alerts: true
alerts:
  - entity: binary_sensor.washer_dispenser_cleaning_due
    name: Clean the detergent dispenser
show_power: true
show_energy: true
language: en
entities:
  operation_state: sensor.washing_machine_operation_state
  selected_program: select.washing_machine_selected_program
  active_program: select.washing_machine_active_program

Options reference

Option Card Default Description
device_id both Auto Appliance device (or entity; the first supported appliance is used if both are missing)
entity both — Any entity of the appliance, used to find the device (YAML only: the visual editor sets device_id)
name both Device name Card title
show_title both true Show the title in the header (e.g. false under a section heading of your own)
show_subtitle both true Show the subtitle under the title
kind both Auto Appliance type when it can't be detected: dishwasher, washer, dryer, washer_dryer, oven, microwave, hob, coffee_maker, hood, fridge, freezer, wine_cooler, styler
brand both Auto Brand for the badge and button colour when the integration doesn't give it: bosch, siemens, neff, gaggenau, constructa, miele, samsung, lg, whirlpool, maytag, kitchenaid, consul, liebherr
icon both Appliance icon The header's round icon; with illustration: false, it also replaces the appliance illustration
illustration both true Illustrated header (both cards): the appliance in its room (laundry room or kitchen) on a tiled floor, its icon tinted by the state and the brand's logo on it. false keeps the classic header
illustration_theme both auto Illustrated header, both cards: auto (follows the Home Assistant theme: night with a dark theme, day with a light theme), day or night
show_program both true Show the program picker
show_options both true Show program options (only before a program starts)
show_controls both true Show Start / Pause / Resume / Stop buttons
show_alerts both true Show salt, rinse aid, i-Dos and coffee machine alerts (descaling and cleaning included), the alerts below, and the reminder when a finished program's door hasn't been opened
alerts both — YAML only. Alert chips from entities of your own (a template sensor, a helper, a leak sensor…), see Alerts of your own
sensors both — YAML only. Chips showing the state of entities of your own (a smart plug, a room sensor, a template sensor…), see Sensors and commands of your own
commands full — YAML only. A Commands section with entities of your own: drop-downs (select, input_select), on / off pills (switch, input_boolean, light, fan, automation) and buttons (button, input_button, script, scene), see Sensors and commands of your own
temperature_alert both 8 (°C) / 46 (°F) Fridges, freezers, wine cabinets: a fridge compartment above this temperature (in the appliance's unit) gets a Too warm alert; false turns it off. A wine cabinet alerts only when it is set
freezer_temperature_alert both -12 (°C) / 10 (°F) The same for freezer compartments (a freezer, or a compartment named so or set below zero)
show_power both true Show the power button (turn off for appliances that can't be switched on / off remotely)
show_energy both true Energy chip of the running or last cycle (24 h), when the appliance has an energy meter
energy_price both — Price per kWh: the cycle's cost next to its energy (This cycle: 0.58 kWh · ≈ €0.12), in Home Assistant's currency
energy_price_entity both — A sensor giving the price per kWh (current tariff, Tempo…), used instead of energy_price
zoom mini true Detail button at the top right that unfolds the full card (a click elsewhere folds it back)
language both Auto Force language: fr, en, de, es, sr, sr-Latn, it, nl, pt, pl, ro, da, sv, bg, ru, uk, hu, sk, cs, sl, lv or el (auto-detects from HA settings)
entities both Auto Override detected entities (see below)

Alerts of your own

alerts adds alert chips, in the same style as the built-in ones, for reminders that don't come from the appliance (cleaning the detergent dispenser, descaling kept in a helper, a leak sensor under the appliance…). Each chip shows while its entity is on (on, present, confirmed, problem, low, open, detected, wet, empty…), or in one of the states listed under state. A click on it opens the entity.

alerts:
  - entity: binary_sensor.washer_dispenser_cleaning_due
    name: Clean the detergent dispenser
  - entity: input_select.coffee_brewing_unit
    name: Clean the brewing unit
    icon: mdi:coffee-maker-outline
    state: [due, overdue]
  - binary_sensor.leak_under_dishwasher   # a bare entity: its name, the default icon and states
Key Default Description
entity — Entity whose state calls for the alert
name Entity name Text of the chip
icon mdi:alert-circle-outline Icon of the chip
state on-like states A state or a list of states that show the chip

Sensors and commands of your own

sensors and commands bring entities that are not the appliance's own into the card — a smart plug the appliance is plugged into, a helper an automation reads, a script that sends a program to the appliance. Each item is an entity id, or entity with an optional name and icon.

entities:
  watts: sensor.fridge_plug_power        # the power chip from a smart plug (see Entity overrides)
  energy: sensor.fridge_plug_energy      # the energy per cycle from the same plug
sensors:
  - sensor.kitchen_humidity
  - entity: sensor.fridge_plug_voltage
    name: Plug
    icon: mdi:power-plug
commands:
  - input_select.fridge_program          # a drop-down: picking an option selects it
  - input_boolean.fridge_night_eco       # a pill: turns it on or off
  - entity: script.fridge_send_program   # a button: runs it (button and input_button are pressed)
    name: Send program

A sensor chip shows the entity's state with its unit (its name first when one is given) and opens the entity on a click; it shows on the mini card too. The Commands section sits under the program options, on the full card, whatever the appliance is doing.

Entity overrides

Keys accepted under entities:

Key Domain Used for
operation_state sensor Status (ready, running, finished…)
door sensor or binary_sensor Door chip
progress sensor Progress bar
finish_time sensor Finish time and time left
selected_program select Program picker
active_program select Running program, and Start
power switch Power button
stop button Stop
pause / resume button Pause / Resume
remote_start binary_sensor Enables the Start button
remote_control binary_sensor Detects a program being set on the appliance itself
connectivity binary_sensor Online / offline state
salt / rinse_aid sensor Salt and rinse aid alerts (dishwashers)
energy sensor Energy meter (kWh / Wh) for the energy per cycle; a smart plug's works too
watts sensor What the appliance draws now (W / kW), shown as a chip while above 0; a smart plug's works too

Every other switch and select of the device is shown as a program option (or as a setting, on appliances without programs).

Legacy card types

home-connect-dishwasher-card, home-connect-washer-card, home-connect-dishwasher-mini-card and home-connect-washer-mini-card are kept so that existing dashboards keep working. They are the same card with the appliance type fixed; new dashboards should use smart-appliance-card.

Screenshots

Animations

While an appliance is at work its illustration comes alive, and each one animates differently: the drum turns, the laundry tumbles, water sprays, the oven glows, coffee pours, the hood draws air, frost sparkles… (the card honours prefers-reduced-motion and falls back to a still image). Each brand below shows its appliances at work.

The other states animate the badge on the illustration, the same for every appliance. When a cycle finishes the motion stops, a tick is drawn into the badge and sparkles twinkle around the appliance; paused, the badge breathes in and out (Resume replaces Pause); waiting on a delayed start, the badge becomes a little clock whose hands turn:

Dishwasher Washing machine
Finished dishwasher finished washer finished
Finished, dark dishwasher finished dark washer finished dark
Paused dishwasher paused washer paused
Paused, dark dishwasher paused dark washer paused dark
Delayed start dishwasher delayed start washer delayed start
Delayed start, dark dishwasher delayed start dark washer delayed start dark

Door open, the dishwasher's door lowered on its racks, the washing machine's porthole swung aside; program options before starting; a delayed start with Home Connect Local's countdown (when it starts, when it ends); the mini card unfolded:

Light Dark
Dishwasher, door open dishwasher door open dishwasher door open dark
Washing machine, door open washer door open washer door open dark
Dishwasher program options dishwasher with program options dishwasher with program options dark
Dishwasher, delayed start (Home Connect Local) dishwasher delayed start with its start time dishwasher delayed start with its start time dark
Mini card, delayed start dishwasher mini card delayed start dishwasher mini card delayed start dark
Mini card unfolded washer mini card unfolded washer mini card unfolded dark

Bosch

Home Connect: a dishwasher mid-cycle, spraying water and glowing on the floor, and a fridge-freezer in super cooling with its two setpoints.

Light Dark
Dishwasher dishwasher dishwasher dark
Dishwasher, at work dishwasher, at work dishwasher, at work dark
Fridge-freezer fridge-freezer fridge-freezer dark
Fridge-freezer, with entities of your own (watts, sensors, commands) fridge-freezer with entities of your own fridge-freezer with entities of your own dark
Fridge-freezer, at work fridge-freezer, at work fridge-freezer, at work dark
Dishwasher mini card dishwasher mini card dishwasher mini card dark
Fridge-freezer mini card fridge-freezer mini card fridge-freezer mini card dark

Siemens

Home Connect: a washing machine ready with its program options, and a coffee machine pouring a cappuccino.

Light Dark
Washing machine washing machine washing machine dark
Washing machine, at work washing machine, at work washing machine, at work dark
Coffee machine coffee machine coffee machine dark
Coffee machine, at work coffee machine, at work coffee machine, at work dark
Washing machine mini card washing machine mini card washing machine mini card dark
Coffee machine mini card coffee machine mini card coffee machine mini card dark

Neff

Home Connect: an oven on hot air, its cavity temperature as a chip.

Light Dark
Oven oven oven dark
Oven, at work oven, at work oven, at work dark
Oven mini card oven mini card oven mini card dark

Gaggenau

Home Connect: a cooker hood venting at stage 2 with its lights on.

Light Dark
Cooker hood cooker hood cooker hood dark
Cooker hood, at work cooker hood, at work cooker hood, at work dark
Cooker hood mini card cooker hood mini card cooker hood mini card dark

Miele

Miele integration: a tumble dryer drying (progress from the elapsed and remaining times), a freezer in super freezing and a two-zone wine cabinet with its light on.

Light Dark
Tumble dryer tumble dryer tumble dryer dark
Tumble dryer, at work tumble dryer, at work tumble dryer, at work dark
Freezer freezer freezer dark
Freezer, at work freezer, at work freezer, at work dark
Wine cabinet wine cabinet wine cabinet dark
Wine cabinet, at work wine cabinet, at work wine cabinet, at work dark
Tumble dryer mini card tumble dryer mini card tumble dryer mini card dark

Samsung

SmartThings: a washing machine rinsing, Pause and Stop sent through its operating state.

Light Dark
Washing machine washing machine washing machine dark
Washing machine, at work washing machine, at work washing machine, at work dark
Washing machine mini card washing machine mini card washing machine mini card dark

LG

LG ThinQ: a WashCombo drying (progress from the finish time and total duration), a microwave, a hob and a Styler.

Light Dark
Washer-dryer washer-dryer washer-dryer dark
Washer-dryer, at work washer-dryer, at work washer-dryer, at work dark
Microwave microwave microwave dark
Microwave, at work microwave, at work microwave, at work dark
Hob hob hob dark
Hob, at work hob, at work hob, at work dark
Styler styler styler dark
Styler, at work styler, at work styler, at work dark
Styler mini card styler mini card styler mini card dark

Whirlpool, Maytag, KitchenAid

Whirlpool integration, which doesn't say the brand: brand: maytag on a dryer, brand: kitchenaid on a wall oven baking, Stop through its button. No progress from this integration: the state stands alone with the finish time.

Light Dark
Tumble dryer (Maytag) tumble dryer (maytag) tumble dryer (maytag) dark
Tumble dryer (Maytag), at work tumble dryer (maytag), at work tumble dryer (maytag), at work dark
Wall oven (KitchenAid) wall oven (kitchenaid) wall oven (kitchenaid) dark
Wall oven (KitchenAid), at work wall oven (kitchenaid), at work wall oven (kitchenaid), at work dark
Wall oven mini card wall oven mini card wall oven mini card dark

How it works

The card reads the entity registry to list the entities of the chosen device and tells its integration from them. It then matches each role by its translation key, then by its entity ID (English and French slugs), then by its attributes (a door's device class, a timestamp…). Program and option labels use Home Assistant's own translations.

The appliance type comes from what the integration says about the device (Miele's model, LG's device type), else from its Home Connect programs, else from the entities only one kind of appliance has (a fridge's setpoints, a hood's fan stage). Each integration's states are folded into one set (ready, delayed start, running, paused, action required, finished, error), and when the integration reports the current step (rinse, spin, drying…), the card shows it instead of "Running". Commands go through what each integration offers: buttons (Home Connect, Miele, Matter, SmartThings dishwashers) or an operation select (SmartThings, LG ThinQ). The progress is computed from the elapsed and remaining times, or from the finish time and total duration, when the integration has no percentage.

Home Connect only sends program options when the selected program changes, so after a Home Assistant restart they all stay unavailable. The card then shows them greyed out with a Load options button, which switches to another program and back to load them. While someone turns the dial on the appliance (Remote control off), Home Assistant can't read the options: the card says so and disables the button until remote control is back. It never reloads them by itself, since that changes the program on the appliance. If loading fails, the original program is restored.

With Home Connect, Start selects the chosen program on the Active program entity, which is how that integration starts a program. Appliances sometimes reject a start for a moment (BadRequest, WrongOperationState): the card then retries once after 3 seconds, and if it fails again shows a short message in the card instead of Home Assistant's raw error (the technical detail is in its tooltip). Stop asks for a second tap within 3 seconds.

Some appliances can't be turned off remotely: after a first refusal, the card says so and keeps the power button disabled while the appliance is on (until the page is reloaded); turning it on still works. The power button and the option pills send an explicit turn on or turn off from the state shown, and stay disabled until the appliance answers, so a quick second click can't undo the first.

Development

npm install
npm run build        # stamps the version of package.json into dist/smart-appliance-card.js and embeds logos/
npm run check        # builds and checks the card (run in CI)
npm run screenshots  # renders the cards (and the animation GIFs, needs ffmpeg) with mock devices into screenshots/

Brand logos live in logos/, one <brand>.svg or .png per key of the brand option; the build embeds them in the card, which stays a single file. A brand without a file gets the badge with its initial. The logos are the trademarks of their owners, shown only to identify the appliance's brand.

The source is split into ES modules under src/ (entry src/index.js); npm run build assembles them (scripts/bundle.mjs) into the single file the Marketplace serves.

dist/ is not committed: npm run build creates it locally, CI builds it on every push, and the release workflow attaches the built file to the release, which is where the Marketplace installs it from.

Releasing

  1. Bump version in package.json
  2. Add a ## <version> section at the top of CHANGELOG.md
  3. Push to main: the Release workflow builds the card, creates the tag and the GitHub release with the changelog section as notes, and attaches smart-appliance-card.js

Translations

The card auto-detects the language from your Home Assistant settings. Currently supported:

Language Code
English en
Français fr
Deutsch de
Español es
Српски sr
Srpski (latinica) sr-Latn
Italiano it
Nederlands nl
Português (Portugal), also used for pt-BR pt
Polski pl
Română ro
Dansk da
Svenska sv
Български bg
Русский ru
Українська uk
Magyar hu
Slovenčina sk
Čeština cs
Slovenščina sl
Latviešu lv
Ελληνικά el

Contributions for additional languages are welcome!

License

MIT

Support

If you find this project useful, you can support its development:

Buy Me a Coffee

About

Animated Lovelace cards for home appliances: washers, dryers, washer-dryers, dishwashers, ovens, microwaves, hobs, coffee machines, hoods, fridges, freezers, wine cabinets and LG Styler. Works with Home Connect, Miele, SmartThings, LG ThinQ, Whirlpool and Matter.

juju35.github.io/homeassistant-projects/projects/ha-smart-appliance-card/

Topics

appliancescoffee-machinedishwasherhacshome-assistanthome-connectlg-thinqlovelacelovelace-cardlovelace-custom-cardmattermieleovenrefrigeratorsmartthingstumble-dryerwashing-machinewhirlpool

Resources

Readme
MIT license

Security policy

Security policy
Activity

Stars

10 stars

Watchers

0 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.