Or perhaps a Hall effect sensor, wrapped around the washer's power cord. Cycle ends, current drops. Seems easier than trying to do the detection based on a by-product of the washer's operation (such as noise or movement).