Bspect Posted December 28, 2022 Posted December 28, 2022 I have a sump pump attached to a Insteon Outdoor plug-in module that I want to turn on/off only if the temperature is above 37 degrees. and within specific 30 minute time periods. I wrote two programs (attached). The first program (Sump1) says if temperature is above 37 degrees, run program Sump 2. Sump2 shows the times I want the pump to run. The issue is Generator Sump (that's the name of the Plug-in module) is turning on once the temperature is above 37 degrees but outside of the time parameters of Sump 2 although it seems to turn off at the end of a time period. Not sure I understand what is going wrong. I tried writing a single program with the if statement containing temp parameters followed by an AND for the first time parameter and OR for the remaining time parameters but that didn't work either. Suggestions would be more than appreciated
MrBill Posted December 29, 2022 Posted December 29, 2022 (edited) you likely need two temp programs to establish a hysteresis. If Temp > 37 then Enable Program Gen Sump2 Run Program Gen Sump2 If Temp < 36 then Disable Program Gen Sump2 Set 'Generator Sump' Off Also note that other programs that are not disabled may be behaving differently than you're expecting and may interfere. So be careful what's in the tree, If statements are event driven and operate differently than new to the platform expect. You'll note in my examples I've done two things enable and disable the schedule and ensure that it gets enforced. In the first program I'm not entirely certain the run line is needed, it may not be but it won't hurt either. In the Second program if you disable the schedule while the pump is running the pump will continue to run forever, so if the temp drops we also need to turn off the pump. A possible improvement to the second program is: If Temp < 36 AND Program 'Gen Sump2' is false then Disable Program Gen Sump2 Which will instead will wait until the pump turns off based on the schedule if the temp falls below 36 while it's running. You can also probably run these programs to a lower temp, I usually don't worry about freezing above around 28 or so. ---- Finally when posting programs to the forum, please don't post screenshots. Instead Right-click the program name in the tree and choose the last item in the context menu "Copy to Clipboard", then Paste (Ctrl-V) that into your forum post. This allows those of us helping you with programming to Copy your program and paste them into our response and then make changes. it's much faster to write responses to you. Thank you. Edited December 29, 2022 by MrBill 1
Bspect Posted December 29, 2022 Author Posted December 29, 2022 MrBill, Again thank you for your quick response and suggestions which I will try shortly and report back. I also appreciate your notes on posting screenshots...nothing like being a newbie!!!
Recommended Posts