If possible, adjust the sensitivity of the sensors because it’s a bit strange that they react to curtains closing (“motion” sensors don’t react to motion, but to “moving heat”). Or temporarily disable the flows that turn on the lights, until the curtains are closed.
I love using variable.
When the flow for closing the curtains in the night is triggered, you can set a yes/no variable in the Then… section. Ad a delay of some seconds for closing the curtains, so that the variable is definitely switched before the curtains are closing.
This variable must also be added to the flow for turning on the light in the And… section.
With the flow for opening the curtains in the morning, the variable must be set back again.