We have an old, but reliable, Bosch dishwasher. It doesn’t have any smart controls or integration, just some basic knobs and buttons on the front panel. It does, however, have one handy trick; it will resume a wash following a power interruption. Adding a smart plug, a template sensor, and an automation allows me to effectively pause the dishwasher when it is started during the peak power tariff period, and restart it when power is cheaper.
alias: Switch:Dishwasher:Pause-on-peak
triggers:
- trigger: state
entity_id:
- sensor.dishwasher
to:
- running
conditions:
- condition: state
entity_id: sensor.electricity_tariff
state:
- Peak
actions:
- action: switch.turn_off
target:
entity_id: switch.dishwasher
- wait_for_trigger:
- trigger: state
entity_id:
- sensor.electricity_tariff
from:
- Peak
- action: switch.turn_on
target:
entity_id: switch.dishwasher
mode: single
Now, when someone starts the dishwasher during the Peak tariff, the current draw rises above 0.05A and the template sensor shifts to “running”. This in turn triggers the automation, which switches off the smart plug and waits until the tariff changes from Peak. A similar approach could be applied to other appliances, provided they will automatically resume operation when power is restored.
@busman I hadn’t considered the implications of a restart. I do run a pair of HA instances in a high-availability cluster, and could probably just rely on one or either of them to turn on the switch.
Having said that, it is definitely more sensible to just turn on the switch whenever the tariff changes from Peak, whether the dishwasher is paused or not.
(I originally just turned off the switch during Peak to prevent the dishwasher from being started outright, but that leads to me forgetting to put it on).
I’d probably do both, I guess. Good to be able to turn it on whenever you want. Then trigger when power goes up to check the tariff and then to “pause” it. But also toggle it based on when the tariff changes.
Then you probably need a helper to say the dishwasher is running since the tariff change might happen when the dishwasher is not using much power. Ugh, simple things often are not so simple.
I think using triggers for, well, triggers makes things a lot cleaner. (Although I tend to put all my related triggers in the same automation.)
It’s probably a bad idea to shut off power to the dishwasher with the plug like that. You are creating a power surge to the dishwasher’s circuitry with every off/on cycle.