Your washing machine is already a sensor, and Home Assistant only needs to watch the power.