Jump to content
C4 Forums | Control4

Quick programming questions


Hizzle

Recommended Posts

I hate to ask this somewhat basic question but I'm having an issue with my programming.  I have a well pump which should only run for 6 hrs then shut off for 2 hrs, to refill, and keep repeating.

I set up the pump on a Relay (light) but can also set it up as a motor relay.  The issue I'm having is that the conditional programming doesn't seem to work.  I want to activate a "light scene" and then have the pump work until I shut it off.  I also want it to push me a notification every time it comes on, so that I know when it is working.  I tried the below.  It turns the pump on but it doesn't seem to follow the programing.  Can you give me some thoughts on the best way to program this?  Most appreciated.

image.thumb.png.a891282a9e109749edb4b6198b4744a6.png

Link to comment
Share on other sites


I'd do....

Timer Pump On - 6 hours
Timer Pump Off - 2 hours
Variable Max Run - 10 times?

Trigger xyz, start timer Pump On, turn on Pump, set var Max Run to 1, send push it's on

When Timer Pump On Expires, turn off pump, start Timer Pump Off, send push it's off

When Timer Pump Off Expires, If Max Run is less than 11? then turn on Pump, Start Timer Pump On, increment Var Max Run +1, send push it's on

Trigger xyz kill it, stop timer Pump On, stop timer Pump Off, set Max Run to 0, send push it's stopped

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.