I'd like you to find a way to get an alert when it's done without having to press the button first.
See for instance: https://philhawthorne.com/making-dumb-dishwashers-and-washin...
https://steve.fi/Hardware/washing-machine-alarm/
I tried using a microphone at one point too, but that was not as reliable as just taping a sensor to the back of the machine and alerting after movement stopped.