[Solved] Interval Trigger during timespan
Hi, I'm really enjoying mycodo and am moving my DIY hydroponics system over to it because it's so well-designed ;-) Thank you!
Currently, my flood/drain system runs on simple timer logic - if it's roughly daytime (7am to 8pm), the pump should be on for 2 minutes and then off for 21 minutes.
I'm sorry if this is obvious to more-familiar users, but I'm not sure how to capture this as a Function - right now, I have a "Timer (Daily Time Span)" Function set up to be active from 7am to 8pm, with an associated "Action" that turns my pump on. That Action's duration is 120secs.
However, I believe this will only turn the pump on once, at 7am, and then from 7:02am to 8PM, the pump will not be triggered.
Does anyone know what setting I'm missing in order to have Actions happen indefinitely during a Daily Time Span?
Thanks for any help you can provide,
...going to reply to myself in case anyone else has a similar situation.
I _think_ I have figured out how to do this with one "Trigger: Timer (Duration)" and one "Trigger: Timer (Daily Span)" but I'd appreciate anyone more familiar than I am to weigh in if I'm wrong.
The Duration trigger has a period of 1200 seconds and 0 Start Offset; it has one Action, which is to turn Pump ON for duration 90 seconds.
The Daily Span trigger has a start-time of 0730 and an end-time of 1900, and a period of 60 seconds. It has one attached Action, which is "[Trigger 2]Trigger: Timer (Duration)".
I'm not super-clear on what behavior to expect at 1900 tonight, but I'm hoping the Duration trigger is set to "Inactive"...
Please holler if I'm making a mistake!
There are a number of ways to accomplish turning an output 2 min. ON/21 min. OFF from 7:00 until 20:00. The easiest I can think of is the following:
Add a Trigger: Timer: Duration function and set the Period to 1380 seconds (23 minutes).
In the Trigger: Timer: Duration function, add an Output: Duration action, select your output, set the State to ON, and the Period to 120 seconds (2 minutes).
Add two Trigger: Timer: Daily Point functions.
For the first, set the time of 7:00, add an Activate Controller action, and set the controller to the Trigger: Timer: Duration function.
For the second, set the time of 20:00, add an Deactivate Controller action, and set the controller to the Trigger: Timer: Duration function.
This will activate the Trigger: Timer: Duration function at 7 AM and deactivate it at 8 PM. This function will turn the output on for 2 minutes every 23 minutes, effectively creating a 2 minute On and 21 minite Off timer.