I have a rule that turns on a light when the Washing Machine finishes it cycle. This works well, but the rule is meant to turn the light off after a motion sensor registers movement when anyone enters the Laundry to empty the Washer.
Instead of conditional action (IF-THEN), use Wait for Condition, for motion active. What that will do is turn it off right away if motion is active when the washer finishes, but otherwise wait until it becomes active.
When either the washer or gas dryer starts up, the rule starts. When both the washer and dryer are finished, a fake Himalayan salt lamp on the fireplace mantle turns on. When motion is detected by the sensor above the washer and dryer, the salt lamp turns off.