Curtains Opening/Closing not triggering

This one?

Or this one?

Please share your automation. How to exchange automations and scripts using the forum