A smart plug with a power sensor is all you need. No helper, no automation:
type: custom:appliance-dryer-card # or appliance-washer-card / appliance-dishwasher-card
power: sensor.dryer_plug_power
energy: sensor.dryer_plug_energy_today # optional
How the card reads the power:
threshold (10 W by default for washer, dryer and dishwasher).threshold. If your plug itself draws a few watts, or the appliance sits at more than 10 W in standby, raise it: threshold: 15. Check your plug’s power history to choose the value.last_cycle: true adds, between cycles, the last cycle tiles: start → end time (with “yesterday” or the date when it was not today), duration, energy used and, with price_per_kwh, its cost. The card reads them from the Home Assistant history of power (last 4 days): no helper, no automation, no template sensor.
type: custom:appliance-dishwasher-card
power: sensor.dishwasher_plug_power
energy: sensor.dishwasher_plug_energy # optional: more accurate energy
last_cycle: true
price_per_kwh: 0.2516 # or a tariff entity: sensor.electricity_price
threshold; drops below it shorter than cycle_gap (15 min by default) stay in the same cycle (soaking, drying). Raise cycle_gap if a long drying phase splits the cycle in two.energy counter over the cycle, otherwise the power history integrated over time.With only a smart plug, estimate: true estimates the remaining time and the progress during a cycle. The card reads the history of power (last 10 days), takes the median duration of the last 7 cycles as the reference, and finds when the current cycle started:
type: custom:appliance-dishwasher-card
power: sensor.dishwasher_plug_power
estimate: true
typical_duration)If the estimate stays on “Almost done” (a dishwasher with long pauses below threshold, split by the history into short cycles), or if there is no power history at all, set the usual duration of your program in minutes. It replaces the median of the history, and the start of the cycle is then taken from the state of entity, so no power sensor is needed:
type: custom:appliance-dishwasher-card
entity: sensor.dishwasher_status
estimate: true
typical_duration: 150
It works best when you mostly use the same program. A remaining or progress sensor, when set, wins over the estimate. Cycles are split like last_cycle (threshold, cycle_gap); at least one complete cycle in the history is needed.
progress_reverse: true turns the progress bar into a countdown: it starts full and empties as the cycle runs, and is gone at 100 %.
The rest of this page is only needed if the card flickers during a cycle.
A washer pauses, soaks and heats in steps: its power can drop to a few watts for several minutes in the middle of a cycle. Reading raw power alone makes the card flicker between Running and Standby. This automation fixes that. It decides a cycle has started when power stays above 100 W for 30 s, and that it has ended when power stays below 20 W for 8 minutes.
1. Create the helper: Settings → Devices & services → Helpers → Create helper → Toggle → name it Washer running (entity input_boolean.washer_running). Or in YAML:
input_boolean:
washer_running:
name: Washer running
icon: mdi:washing-machine
2. Add the automation (Settings → Automations → ⋮ → Edit in YAML). Replace sensor.washer_plug_power with your plug’s power sensor:
alias: Washer – cycle detection
mode: restart
triggers:
- trigger: numeric_state
entity_id: sensor.washer_plug_power
above: 100
for: "00:00:30"
id: start
- trigger: numeric_state
entity_id: sensor.washer_plug_power
below: 20
for: "00:08:00"
id: end
actions:
- choose:
- conditions:
- condition: trigger
id: start
sequence:
- action: input_boolean.turn_on
target:
entity_id: input_boolean.washer_running
- conditions:
- condition: trigger
id: end
- condition: state
entity_id: input_boolean.washer_running
state: "on"
sequence:
- action: input_boolean.turn_off
target:
entity_id: input_boolean.washer_running
# optional: get notified when the laundry is done
# - action: notify.mobile_app_your_phone
# data:
# message: "The washing machine is done 🧺"
3. Use it in the card:
type: custom:appliance-washer-card
entity: input_boolean.washer_running
power: sensor.washer_plug_power
energy: sensor.washer_plug_energy_today
Suggested values for the automation (start above / end below / end delay): washer 100 W / 20 W / 8 min, dryer 100 W / 15 W / 5 min, dishwasher 50 W / 10 W / 10 min (dishwashers sit at a few watts while drying). Adjust them to your appliance by looking at its power history.
For a dryer, use the same automation with its own plug and helper (input_boolean.dryer_running), then:
type: custom:appliance-dryer-card
entity: input_boolean.dryer_running
power: sensor.dryer_plug_power
energy: sensor.dryer_plug_energy_today
``` Requires Home Assistant 2024.10 or newer for the `triggers:` / `actions:` syntax; on older versions, use `trigger:` / `platform:` / `action:` / `service:`.
### Automatic cycle phase detection from power draw (washer and dishwasher)
When the appliance has no smart integration that reports its program, the card infers the cycle phase from the live power. A phase given by a status or program entity (for example Home Connect) always takes priority. This applies to **washers and dishwashers only**: a dryer shows *Drying* while it runs.
- **Heating (`heat`)**: power ≥ `heating_power` (default `1000` W). The heating element is on (steam and a warm glow on the dishwasher).
- **Spinning (`spin`)**: on washers, power ≥ `spin_power` (default `200` W).
- **Washing (`wash`)**: any other power above `threshold`.
- **Drying (`dry`)**: on dishwashers, when power falls to `threshold` or less (10 W by default) within 20 minutes after the cycle was active. The card keeps this memory in the browser, so it is lost when you reload the page.
You can change the power thresholds if your appliance runs at different wattages:
```yaml
type: custom:appliance-washer-card
power: sensor.washer_plug_power
heating_power: 1200
spin_power: 250
custom:appliance-washer-dryer-card: the washing machine with its porthole, water and foam, plus the dryer’s warmth. During the drying phase the drum turns steadily, the machine vibrates softly and the drum glows warm; during cooling it keeps turning. Wash, rinse and spin behave like the washer card.
type: custom:appliance-washer-dryer-card
power: sensor.washer_dryer_plug_power
program: sensor.washer_dryer_program # optional: the phase is read from the program text (rinse, spin, dry, cool…)
remaining: sensor.washer_dryer_remaining_time
All the options of the washer card apply (threshold, heating_power, spin_power, remaining, program, last_cycle, estimate…). With a smart plug only, the phase is guessed from the power: drying draws about as much as the heating of the wash, so give the card a program text sensor when your appliance exposes one.