I expect that both outputs getting turned off after 60s or in case of the L298N after dispensing 10l. In case of my Valve (self implemented python code) it works as expected but the pump controller stays turned on forever, see below the log:
Further investigation brought me to the point that it is side effect from the valve (Output Configuration: On/Off: Python Code).
At the end of On/Off command I added:
GPIO.cleanup()
Which is a RPi.GPIO built-in function to clean up all the ports you’ve used.
It is not a problem if your trigger just turns on this dedicated output but in case if you use one trigger for two outputs it cleans up also the L298N GPIO’s. My understanding is, the scope includes all GPIO’s called from one trigger (python program).
The solution is to just clean the pin I used for the valve: