Jump to content

DPerovich

Members
  • Posts

    6
  • Joined

  • Last visited

DPerovich's Achievements

Newbie

Newbie (1/6)

3

Reputation

  1. I didn't mean to question the approach, just that if I were coding this in script, I feel it would be so much easier to do. I honestly don't spend MUCH time at all programming in my ISY...maybe I need to do more. Your solution, @MrBill is working beautifully thus far. I appreciate the level of detail in the solution and explanations you have given. I had to lookup what the heck "hysteresis" was because I don't recall ever hearing the word before. But it certainly makes 100% sense to me now! Thank you again, to everyone who provided their input!!
  2. Haha...figured I would need to do that, but was on a phone call with my boss while typing the original message. Here is the latest iteration that I tried: Coop Pump - Summer - [ID 0006][Parent 0001] If From 7:00:00AM To 8:00:00PM (same day) And 'OpenWeatherMap' Temperature > 40.0°F Then Run Program 'Coop Pump - 5min' (Then Path) Else - No Actions - (To add one, press 'Action') Coop Pump - 5min - [ID 0014][Parent 0001] If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Repeat Every 1 hour Set 'Chicken Coop / Coop Water Pump' On Wait 5 minutes Set 'Chicken Coop / Coop Water Pump' Off Else - No Actions - (To add one, press 'Action') Coop Pump - Winter v2 - [ID 0002][Parent 0001] If 'OpenWeatherMap' Feels Like <= 40.0°F Then Set 'Chicken Coop / Coop Water Pump' On Else - No Actions - (To add one, press 'Action') I also tried various other programs too....didn't keep them all. Even tried some with a state variable. But I was always getting tripped up by a rapid cycling of the state variable when I used it.
  3. YIKES! 5 programs to accomplish this. Bummer that the eventing system makes this use case so complicated! I'll give it a shot.
  4. I cannot, for the life of me, figure out how to get some program logic to work the way I intend it to work. I want to control a small water pump, plugged into an Outdoor On/Off module. When the temperature (from openweathermap) is > 40 degrees F, I was the put to run for 5 minutes, every hour, during the hours of 7am to 8pm, daily. When the temperature is <= 40 degrees F, I would like the pump to run continuously. The problem I am currently having is the when the temperature is over 40F, the pump runs for 5 minutes minutes, turns off for a brief second, then is switched right back on. Any thoughts how I can model this logic? Thanks.
  5. It is set as a state variable with an init value of 0. What I am thinking is happening is that every time the OpenWeatherMap polyglot runs (once every minute, I believe) and the temperature changes (which is seems to change every update due to the temperature being reported with two decimal places), the IF statement is reevaluated in "Coop Pump - Winter (Warm) - [ID 0003][Parent 0001]". This then causes the State variable to be updated. Which, in turn, causes the IF statement of "Coop Pump - Winter (Warm) - [ID 0003][Parent 0001]" to run. This then kills the long-running 'Repeat Every 1 hour' block in its THEN statement.
  6. I'm running into an issue with a couple of my programs. I believe the frequent OpenWeatherMap polls are interfering with the repeat clause in my THEN statements. The gist of the programs is this: If the weather is less than or equal to 40 degrees, run a small pump full time. If the weather is above 40 degrees, run the pump for 5 minutes every hour. The problem I am having is the pump seems to ALWAYS be on even when the weather is well above the 40 degrees. I've been outside all weekend and haven't it turn off once. Here are my programs...any suggestions what I am doing wrong? Coop Pump - Winter v2 - [ID 0002][Parent 0001] If 'OpenWeatherMap' Feels Like <= 40.0°F Then $pumpAlwaysOn = 1 Repeat 2 times Set 'Chicken Coop / Coop Water Pump' On Else $pumpAlwaysOn = 0 Coop Pump - Winter (Warm) - [ID 0003][Parent 0001] If From 7:00:00AM To 7:00:00PM (same day) And $pumpAlwaysOn is 0 Then Repeat Every 1 hour Set 'Chicken Coop / Coop Water Pump' On Wait 5 minutes Set 'Chicken Coop / Coop Water Pump' Off Else - No Actions - (To add one, press 'Action') Thanks for the input!
×
×
  • Create New...