Apex: turn off and alarm if on >5 seconds

Dutchsuperman

Community Member
View Badges
Joined
Sep 15, 2019
Messages
51
Reaction score
24
Rating - 0%
0   0   0
Trying to program my felt roller to turn the outlet off, stay off and turn on the alarm if it runs more than 5 seconds. Current I have it programmed as such

Fallback OFF
Set OFF
If Rfloat CLOSED Then ON
If Rfloat OPEN Then OFF
Defer 000:01 Then OFF
Defer 000:01 Then ON

This runs as I want it minus the above ask. I've tried my hand at googling and got this line, but it errors out, so clearly I'm doing something wrong.

If Power ON > 000:05 Then set OFF

I have a virtual outlet set up for the alarm, I added this line to go off if it runs more than 5 seconds, is this correct?

If Felt_Roller = ON Then ON
Defer 000:05 Then ON

The outlet is labeled Felt_Roller if that'd needed for programming.
 

Formulator

Valuable Member
View Badges
Joined
Apr 14, 2024
Messages
2,481
Reaction score
2,585
Location
Saint Louis, MO, USA
Rating - 0%
0   0   0
If Power ON > 000:05 Then set OFF
This looks like a really messed up version of the code “When ON > 000:05 Then OFF”. This line of code is very useful for your application because it will completely shut off the outlet and turn off automation until you physically flip the outlet back to “auto”. A lot of people, including myself, use this line in our ATO pump outlet because if the pump runs longer than a few minutes, something must be very wrong and we would want to find and correct this problem before the ATO turns on again. I don’t know about the alarm part, but for me it is obvious if my ATO shuts down and I will see the slider in the “off” state in the app and know something is wrong I need to fix.
 
OP
OP
D

Dutchsuperman

Community Member
View Badges
Joined
Sep 15, 2019
Messages
51
Reaction score
24
Rating - 0%
0   0   0
This looks like a really messed up version of the code “When ON > 000:05 Then OFF”. This line of code is very useful for your application because it will completely shut off the outlet and turn off automation until you physically flip the outlet back to “auto”. A lot of people, including myself, use this line in our ATO pump outlet because if the pump runs longer than a few minutes, something must be very wrong and we would want to find and correct this problem before the ATO turns on again. I don’t know about the alarm part, but for me it is obvious if my ATO shuts down and I will see the slider in the “off” state in the app and know something is wrong I need to fix.
That sounds like exactly the line I need then. Thank you!

Hopefully someone can help confirm on the alarm side then
 

HAVE YOU EVER KEPT A RARE/UNCOMMON FISH, CORAL, OR INVERT? SHOW IT OFF IN THE THREAD!

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top