Script washing machine

Read the readme and follow the instructions posted in the link I provided.
Experiment a little to get started.

When you have specific questions, ask them over in the official discussion on the Home Assistant Forum.