-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]: Start action from environment settings with time delay #522
Comments
@Dave0408, if you can post a screenshots of your settings (humidity Environment settings, Power Switch settings, etc) folks around here may be able to help better. Also, I'm assuming the mister and the fan are connected via relay? I'm no expert at this, but from the sounds of it, you would want to set the humidity Environment "Power on" in the alarm section to a pretty short time frame (like maybe 3 seconds), and set the "Settle timeout" to be 600 seconds. The idea is once Humidity hits your alarm percentage, the fan will still kick on briefly, then wait 10 minutes to see if it needs another short gust of air. Considering it sounds like you want to have high humidity pretty much all the time, you aren't going to want that fan on very often. I'm not sure about your setup and what it is your using this for, but just some thoughts - are you able to try flipping the fan around and changing the airflow? Maybe pull dry air IN instead of pulling that Humid air OUT? You may be able to control the humidity better that way. Depending on the vents in your enclosure, you wouldn't see such drastic change in Humidity levels. Thats my theory at least. Hope any of this helps, and I apologize in advance if I'm misunderstanding your question. |
@ModestZombie It is correct that the fans are connected via a relay. I had documented my setup here: And my configuration: |
Euh, this is not possible. You are spraying with a relay with timer? So not in the environment part? Then yes, when it get to humid, the fan will kick in. But what you want is that it should stay for a certain amount of time at the alarm level before the fan kicks in. Because there is no relation between a single switch and the environment parts. Or, you need a setting where you can say how long the alarm should be on, before action. Like 1 minute. When you have an alarm for more then 1 minute, the relays (and your fan) will kick in. At the moment, this is not possible, and I am rewriting the software so I can have a look to get this in the new version. But in the current version, I will not add more features. Sorry for that. |
@Dave0408 did the above suggestion work for you? |
Good morning @theyosh thank you for this idea/approach. I have not implemented it yet, because then I would not react to any thresholds at all outside the defined times. I think that is also not in my sense. |
He @Dave0408, how about this: the settle time out is also enforced when you go from a low alarm to a high alarm. And vise versa. The idea of the settle timeout is that an alarm will not trigger more then once in that settle timeout. But there is no relation between the low and high alarm. So, we could also say, that when the low alarm is triggered, the settle time is then also set to the high alarm. And that will cause the high alarm get a timeout of the settle time of the low alarm. And have to wait that timeout, before (in your case) the fan goes on. Not sure if this will fit, as you could say, I want a settle timeout of 5 min for the low alarm, but a 10 min settle time between low and high alarm. That will not work. But I think this could be another solution. I hope it is clear what I mean. And can you think if this will work for your setup? |
Hello @theyosh , If I understand this correctly, we could define a settle time that first starts the action once and then pauses both the high and the low alarm. During this settle time, the software does not react to an action exceeding or falling below the threshold values. So in the example: This would mean that I should turn on the fans only for a very short interval. My goal is to keep the humidity high for a certain time and to allow the plants/mosses to absorb the moisture. My only fear would then be that the fans never manage to run longer during the day. This would have to be triggered via an external script. Possible. Another approach could be to link it to the switch for the sprinkler system. If switch "rain system" = on then pause high alarm humidity. But I could surely live with your idea. :) |
Sorry for the late reply, but I think there is a small mistake. What I suggest is: The sprinkler system starts -> wait the settle timeout -> humidity still higher then 98% -> fans start But this only works between the high and low alarm of the same area type. And I think this is pretty 'normal'/'expected' behavior. If you act on low alarm, which will directly trigger the high alarm, is a bit useless. I think this is the solution for you. But this will be then implemented in TP4. |
I have updated the code so that when you have both alarms setup (high and low), the settle time is also respected between them. So when the sprayers go on and the humidity rises, the high alarm will wait the settle time of the low alarm. Set the low alarm settle time to 60 seconds, now it means that the sprayer will wait 1 minute before spraying again. But also, that the fans have to wait the same 1 minute timeout. So the low alarm settle time is also taken in account for the high alarm trigger. |
Have you been able to test this? Does it make sense? Also, there is now a So, now there are two ways to delay the relays when the alarm goes of.... |
Any updates? |
I have just updated to the current version and will look at the scenarios described. Thanks a lot. I would close the issue then at this point. |
Good morning,
I have another question about the environment settings.
I have set to control the humidity, that at a threshold of 98% for 10 minutes the fans turn on. Now I spray at fixed times (morning 20 sec and noon 30 sec). Immediately after spraying, the humidity is of course extremely high. The fans react to this by starting immediately and pulling the generated humid air directly out of the terrarium. This doesn't make much sense to me.
Is there a possibility to start the action caused by exceeding a threshold with a time delay?
Example: spray 20 sec -> humidity rises to 100% -> wait 10 minutes -> fans go on.
The only idea I have is to set the fans to manual mode for 10 minutes after spraying using an external pythonscript.
But this is not really comfortable and would be again a point of control outside your software.
Thanks in advance.
Dave
The text was updated successfully, but these errors were encountered: