Didn’t test your rule, but 2 remarks:
- In general sleep of 30sec is a bad idea and can lead to unexpected behavior of the whole system.
More details here (OH 1.x and OH 2.x Rules DSL only] Why have my Rules stopped running? Why Thread::sleep is a bad idea
- Have you seen this solution? This is what I use successfully for my washing machine with some small modifications