This is what I use for my washer/dryer, mine is not on wifi so I have to rely on power and temp sensors to trigger a “running” or “done” state. It may be crude as I may not know exactly what I am doing but it works!

alt text

https://github.com/jasondreher/MMM-door-sensor3

And I use Home Assistant (https://forum.magicmirror.builders/topic/10664/home-assistant-controling-my-magic-mirror) to trigger when you may use ifttt.