APEX Programming - OFF > ON for 5 minutes then OFF

psumms

Active Member
View Badges
Joined
Sep 11, 2019
Messages
189
Reaction score
124
Location
United Kingdom
What state or country do you live in
United Kingdom
Rating - 0%
0   0   0
THought I was pretty good with my APEX knowledge, for some reason I can't get my head around this one!

I need an outlet OFF then when RO-CONTROL comes on, to have the outlet come on for four minutes then OFF. Simple! No problem if the SET is ON but I need the socket to be OFF for the all by four minutes every few days it will be on! (I know the below isn't valid BTW, its an example of what I need it to do!

Fallback OFF
Set OFF
If Output RO-CONTROL = ON Then ON
Defer 004:00 Then OFF
 
You can do this, but you’ll need to use a virtual outlet as well.

OUTLET:
Fallback OFF
Set OFF
IF Output RO-CONTROL=ON Then ON
IF Output VIRTUAL=OFF Then OFF

VIRTUAL:
Set ON
IF Output RO-CONTROL=ON Then OFF
DEFER 004:00 Then OFF

This will turn the outlet on when RO-CONTROL goes on. The virtual outlet will turn off when RO-CONTROL goes on, but because of the DEFER command it won’t actually turn off for 4 minutes after RO-CONTROL has been on. So then after four minutes VIRTUAL turns off and that will turn off the actual outlet.
 

WHEN YOU SEE A REEF2REEF POLL, WHAT’S YOUR USUAL MOVE?

  • Vote right away, then head to the comments

    Votes: 6 42.9%
  • Read the comments first...then decide what I think

    Votes: 0 0.0%
  • Vote and explain my choice in the comments

    Votes: 2 14.3%
  • Dude, I just vote...I don't care about the comments

    Votes: 5 35.7%
  • Vote, then come back later to see how it turned out

    Votes: 0 0.0%
  • Pick “Other” because my opinion is too nuanced to fit any of your simpleton boxes

    Votes: 1 7.1%
  • I usually read the comments but exercise my right not to vote

    Votes: 0 0.0%
  • I always get excited about Daniel’s daily polls, obviously 😎

    Votes: 1 7.1%
  • Other (Post in the comments)

    Votes: 2 14.3%
Back
Top
Home
Post thread…
Market
What's new