[! duplicate thread]

How to make the blind motor not close if the door sensor is open, this being activated by voice or control. It would have to as soon as it starts to close, reverse and open… However, when I create a routine the motor only opens after finishing closing , it seems that it only updates the status after stopping the movement. Do you have any solution?

I renamed your thread since you have a duplicate post on the same question.