@Dulac, apologies for the account issue. We were in the process of cleaning spammers and perhaps there was a false positive on your account.
I don’t completely understand exactly what you want to do to make the pump work for you. For a computer program to work according to your needs, you need to provide a sequence of conditions and logic that can be implemented in the program. For example, if something happens, then do this. If I understand from your description, it sounds like what you want is: if pump motor is not moving (or perhaps this condition should be ‘if there is no water’), then do not run sprinkler programs. Is this correct? As I said, I don’t fully understand the problem to come up with this list of ‘if this, then that’. If you can define it, then I will be able to tell how to do it with OSPi.