Results 1 to 18 of 18

Thread: Alarm Program mod not working.

  1. #1
    18yrs 300 DD
    Join Date
    Aug 2017
    Location
    Minnesota, Central Time
    Posts
    91

    Alarm Program mod not working.

    I've got two virtual outlets I created to accomplish two things for the same device which notates when my skimmer is full. Once this is working I'm going to add it to a number of other alarms.

    The configuration given to me only partially works and doesn't look right. It seems redundant and as though I have more virtual outlets then needed. The second virtual outlet seems to accomplish everything and a simple language change of the on's and off's would do it. It's also possible I put it in wrong.

    Objective:
    1) Silence a specific alarm after one alert, I don't want it going off every hour. This mostly works but notifies me a second time when the alarm turns off which I could do without.

    2) Only alert me during the daytime. This works but it doesn't list or notify me in the morning of an alarm from the night before which it should if it's still the case. A skimmer won't empty itself so 7am it should alert even if it filled at 2am.

    All tied to a switch labeled "locker" which is a simple open/closed. The open=on=full and alarm should sound.

    Outlets listed in order.

    EmailAlarm
    1 Set OFF
    *2 If Output Locker_Full = ON Then ON
    3 If Tmp > 80.0 Then ON
    4 If ORP < 250 Then ON
    5 If Time 20:00 to 07:00 Then OFF
    6 If Tmp < 77.5 Then ON
    7 If Leak_1 CLOSED Then ON
    8 Defer 000:30 Then OFF

    Locker_Full - virtual outlet to restrict when notifications are allowed.
    1 Set OFF
    2 If Time 20:00 to 07:00 Then OFF
    3 If Locker OPEN Then ON
    4 If Output Locker_Alarm = ON Then OFF

    Locker_Alarm - virtual outlet for one notification.
    1 Set OFF
    2 If Time 20:00 to 07:00 Then OFF
    3 If Locker OPEN Then ON
    4 Defer 005:00 Then ON

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Your code looks fine. There is not way to silence the second set OFF alarm if you want once vs hourly.

    Sent from my SM-G965U using Tapatalk

  3. #3
    18yrs 300 DD
    Join Date
    Aug 2017
    Location
    Minnesota, Central Time
    Posts
    91
    Thanks for the info on the second alarm.

    Is there a way to have it notify me once the time hits 7am again if it happens during the 'blackout' period?

    As of right now it doesn't, it also doesn't show a record or active alarm when I'm in fusion if the alarm happens during that blackout period.

  4. #4
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    It should already do that since the alarm is suppressed in the VO itself until 7am. Because its suppressed, it will not log if it opened between 8pm and 7am but you should still get the alert.

    Sent from my SM-G965U using Tapatalk

  5. #5
    18yrs 300 DD
    Join Date
    Aug 2017
    Location
    Minnesota, Central Time
    Posts
    91
    I'll double check next time if there's an alert when I log in but there definitely isn't a text alert at 7am of any alerts that happened the night before even if still present.

  6. #6
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    Quote Originally Posted by RSnodgrass View Post
    Locker_Full - virtual outlet to restrict when notifications are allowed.
    1 Set OFF
    2 If Time 20:00 to 07:00 Then OFF
    3 If Locker OPEN Then ON
    4 If Output Locker_Alarm = ON Then OFF

    Locker_Alarm - virtual outlet for one notification.
    1 Set OFF
    2 If Time 20:00 to 07:00 Then OFF
    3 If Locker OPEN Then ON
    4 Defer 005:00 Then ON
    The indicated statements are not doing anything. The program sequence in both of these outputs is incorrect.

    I do not like the entire concept of doing one-shot alarms. It's too easy to ignore or forget that you got one.

    Here is a different approach that will send a recurring alert for non-critical items at a configurable interval of several hours and also prevent nighttime alerts.

    [EmailAlarm]
    Set OFF
    If Output Locker_Full = ON Then ON
    If Tmp > 80.0 Then ON
    If ORP < 250 Then ON
    If Time 20:00 to 07:00 Then OFF
    If Tmp < 77.5 Then ON
    If Leak_1 CLOSED Then ON
    Defer 000:30 Then OFF

    [Locker_Full]
    OSC 0:00/1:00/239:00 Then ON
    If Time 21:00 to 07:00 Then OFF
    If Locker CLOSED Then OFF

    • The OSC line attempts to turn on the VO for 1 minutes every 4 hours. (you really only need 5 seconds, but 1 minutes is easy to work with; the goal is simply to try to turn on the VO briefly)
    • The If Time line keeps the VO off during nighttime
    • The last line keeps the VO off if the skimmate locker switch is closed


    Note that I changed the If Time statement to start an hour later than you had; this will allow an alert to be sent at 20:00/8PM if needed.

    There are other variants... for example, you could use a few If Time statements to instead of an OSC to only allow an alert to be sent at specific times:

    [Locker_Full]

    If Time 07:00 to 07:01 Then ON
    If Time 19:00 to 19:01 Then ON
    If Locker CLOSED Then OFF

    This will result in alerts being sent at 7AM and 7PM if the locker is full.
    Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.

  7. #7
    18yrs 300 DD
    Join Date
    Aug 2017
    Location
    Minnesota, Central Time
    Posts
    91
    Perfect, I like it!

  8. #8
    Frequent Visitor Todd's Avatar
    Join Date
    Jan 2013
    Location
    Huntsville, AL
    Posts
    583
    Curious about the placement of If Time command within the EmailAlarm. If you only want it to apply to the Locker condition, it isn't needed in the EmailAlarm. The way it is now, it will only override Locker (redundant), Temp high, and Orp. If you want it to override all conditions, move it to the end. Also, Defer ... OFF seems inappropriate. A Defer ... ON makes more sense to me, it would require any ON condition to persist for 30 seconds before activating the EmailAlarm. This would better filter out false/spurious conditions.

  9. #9
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Todd View Post
    Curious about the placement of If Time command within the EmailAlarm. If you only want it to apply to the Locker condition, it isn't needed in the EmailAlarm. The way it is now, it will only override Locker (redundant), Temp high, and Orp. If you want it to override all conditions, move it to the end. Also, Defer ... OFF seems inappropriate. A Defer ... ON makes more sense to me, it would require any ON condition to persist for 30 seconds before activating the EmailAlarm. This would better filter out false/spurious conditions.
    I assume the other conditions beside the locker above that line he doesn't want at night either. A defer then ON would be beneficial for noise filtering, but there is also value in the defer then off as well so noise can't drop out the alarm while its active either.

    Sent from my SM-G965U using Tapatalk

  10. #10
    18yrs 300 DD
    Join Date
    Aug 2017
    Location
    Minnesota, Central Time
    Posts
    91
    The time stamp under email alerts is correct but in the original coding I probably should have put the Locker after that so only the virtual outlets impacted the alarm.

    The orp alarms and such I simply do not want going off at night. Whereas the leak or temp I want to sound more frequently then the normal 1hr intervals. I was told they way I did that it would resend the alarm every 30min but haven't tested.

    Once the defer is set up and working for the Locker I'll apply that same notification to all other less serious alarms.

  11. #11
    New User
    Join Date
    Aug 2018
    Location
    us, central
    Posts
    8
    I new to apex
    Set every thing up and was getting alarms at first, but no more alarms even when i trip the leak detector.
    The leak detector works because it will shut return pump off along with skimmer but no alarms are sent.
    Any help?

  12. #12
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    Post the programming for your email output
    Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.

  13. #13
    New User
    Join Date
    Aug 2018
    Location
    us, central
    Posts
    8
    My profile under settings for notifications?

  14. #14
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    No the programming in emailalm_i5

    Sent from my SM-G965U using Tapatalk

  15. #15
    New User
    Join Date
    Aug 2018
    Location
    us, central
    Posts
    8
    I’m sorry if I sound ignorant but I’m not sure where to look for this is it under user profile in settings

  16. #16
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Screenshots

    Sent from my SM-G965U using Tapatalk

  17. #17
    New User
    Join Date
    Aug 2018
    Location
    us, central
    Posts
    8
    found it

    Set OFF
    If Error COR15 Then ON
    If Swx7_1 CLOSED Then ON
    If Swx7_2 CLOSED Then ON
    If Error ATKpump Then ON
    If Leak CLOSED Then ON

  18. #18
    New User
    Join Date
    Aug 2018
    Location
    us, central
    Posts
    8
    Thanks for yalls help

    My EMAILALRM_15 was not turned on
    Still tweaking and learning

Similar Threads

  1. Alarm not working
    By myk5486 in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 06-05-2020, 18:51
  2. Question: Alarm not working
    By vik in forum A2 Apex/ApexEL and A3 Apex Pro/Apex/Apex Jr
    Replies: 2
    Last Post: 12-30-2016, 22:00
  3. Chinese light mod
    By dbelben2556 in forum DIY
    Replies: 44
    Last Post: 08-16-2016, 05:48
  4. Chinese LED mod
    By alexkharden in forum DIY
    Replies: 1
    Last Post: 03-15-2016, 22:02
  5. mod outlets
    By Garrett in forum Misc Apex Usage & Programming
    Replies: 6
    Last Post: 12-07-2014, 16:15

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •