The reason I want to do this is to avoid the lamp being on without water flowing through the UV unit.
I am not sure how the Profilux would know how my UV pump is off that is why I am asking the question. It is not related to feeding pause or maintenance but just if the pump failed or the power to it went off.
I have this set up at the moment on the controller that is being replaced and it also switches the lamp off if the aquarium temperature gets above 27.2.

Hope that clarifies what I am needing. I could post the other controller code if that helps to explain it.

Many thanks