Run Pool Pump During Off-Peak Hours

I got around the temperature early on by using DarkSky and pointing at it.

Is there an admin that wouldn't mind moving this to the Rule Machine section? I shouldn't have posted it here.

What you posted above should work. Turn rule logging on and check it.

Thanks. I’ve never heard of that down here in Aus. and it can only be a Fahrenheit thing right ?
Otherwise at 40c the pool would only be on for 4 hours !!

Sweet. Thx again

Yeah, it is Fahrenheit... BTW, if you are Australian. I coded it for the northern hemisphere if you ever want to have the timing vary by season.

1 Like

Ok so I’ll have a crack at swapping the names. That should get it close enough.

Let me know, the numbers in the cases between line 79 and 91 need switching...

1 Like

For anyone who might be interested. I decided I may want to use the off-peak settings for more than just a pool pump, so I created a global variable (number) that is flagged by the off-peak hours instead (just set to 1 to be "off-peak" hours, or 0 to be "peak"), and then the rule that affects the device just looks at the global variable.

It appears to work so far. Here are a couple of screenshots of the global being set and the rule to call it.

Rule to set it:

Rule to call the variable:

Still messing with it, so this may get updated in the event it doesn't work and I am just deluding myself.

1 Like