Hello everyone,
I’m trying to create an automatic pH adjustment function for my hydroponic system, but after activating the function, the pumps do not turn on automatically, even though the logic should trigger them.
Here is my setup:
-
I use a Measurement (Single, Last) condition to read the pH sensor.
-
In the Function’s Run Python Code, I check the pH value and call self.run_action() to turn on the pumps for 3 seconds.
-
The actions are correctly created, and each one manually works when I press “Execute”.
-
However, when I activate the Python Function, it does not automatically run or control the pumps.
My questions:
-
Why does the Python Function not automatically execute when activated?
-
Do Python Functions require a Trigger or Timer to run?
-
Is there something wrong with using self.condition() inside the function?
-
Should I add a Timer or can a Python Function run continuously by itself?
-
Here are some screenshots of my code and configuration










