diff --git a/custom_components/miele/button.py b/custom_components/miele/button.py index 0664fb67..2a522d77 100644 --- a/custom_components/miele/button.py +++ b/custom_components/miele/button.py @@ -16,6 +16,7 @@ from . import get_coordinator from .const import ( + ACT_PAUSE, ACT_START, ACT_STOP, ACTIONS, @@ -93,6 +94,20 @@ class MieleButtonDefinition: press_data={PROCESS_ACTION: ACT_STOP}, ), ), + MieleButtonDefinition( + types=[ + MieleAppliance.WASHING_MACHINE, + MieleAppliance.TUMBLE_DRYER, + MieleAppliance.TUMBLE_DRYER_SEMI_PROFESSIONAL, + MieleAppliance.DISHWASHER, + MieleAppliance.WASHER_DRYER, + ], + description=MieleButtonDescription( + key="pause", + translation_key="pause", + press_data={PROCESS_ACTION: ACT_PAUSE}, + ), + ), ) diff --git a/custom_components/miele/translations/en.json b/custom_components/miele/translations/en.json index 1a79c6c3..5558ab59 100644 --- a/custom_components/miele/translations/en.json +++ b/custom_components/miele/translations/en.json @@ -94,6 +94,9 @@ } }, "button": { + "pause": { + "name": "Pause" + }, "start": { "name": "Start" },