Results 1 to 15 of 15

Thread: Power loss - Program to auto-Reboot?

  1. #1
    New User
    Join Date
    Jun 2017
    Location
    US, EST
    Posts
    4

    Question Power loss - Program to auto-Reboot?

    Having recently installed an Apex Classic, I've experienced my first couple power outages in my neighborhood, which uncovered a 'slight' problem...... I've had to reboot my Apex each time for it to reconnect to Fusion, which defeats one of the main benefits of having a "advanced" controller. I have read some posts arguing that this happens when the Apex searches the network before the router/modem has finished it's reboot to assign an IP address. I've read where people have said tech support just lays blame on your router and you're stuck without any true 'support'. (unsubstantiated)

    So I figured I'd try here first. Any suggested solutions that have worked for people? What I was thinking if there was some coding that could detect a power outage and upon return of power, initiate a reboot.

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Use a static ip address. DHCP router issues go away if your apex already knows what ip to use (very few routers exhibit this problem anyway).

    You might be an engineer if...You have no life and can prove it mathematically.

  3. #3
    Regular Vistor
    Join Date
    Nov 2015
    Location
    melbourne australia
    Posts
    48
    Yeah, when your router loses power or resets, if you don't have a static ip, it will get a new one but your apex will only remember the old one, I have a ups for power backup to the apex (base unit only) and modem/router, I'm not sure if that helps with the IP address issue yet, but from what I can tell, it does for me

  4. #4
    New User
    Join Date
    Jun 2017
    Location
    US, EST
    Posts
    4
    Thanks. I'll work on setting it up with a staticIP. Is there a 'if it loses power, when you regain power, do this...'coding? I was thinking of making another post, but another issue relatedto losing home power (minus solving it by getting an UPS) is since I'm running mykalk through my ATO, when power kicks back on, I need to program a 2minutedelay (only when I lose power) until the sump water levels have leveledout. What's happening now (without the kalk currently connected) is whenpower is restored, my return pump goes low, triggers the ATO until it fillsback up through the normal cycling (i.e. not due to actual loss ofwater). I'm interested in how to delay the ATO for say 2minutes once theEB8/Apex regains power.


  5. #5
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by CaLevi View Post
    Thanks. I'll work on setting it up with a staticIP. Is there a 'if it loses power, when you regain power, do this...'coding? I was thinking of making another post, but another issue relatedto losing home power (minus solving it by getting an UPS) is since I'm running mykalk through my ATO, when power kicks back on, I need to program a 2minutedelay (only when I lose power) until the sump water levels have leveledout. What's happening now (without the kalk currently connected) is whenpower is restored, my return pump goes low, triggers the ATO until it fillsback up through the normal cycling (i.e. not due to actual loss ofwater). I'm interested in how to delay the ATO for say 2minutes once theEB8/Apex regains power.
    Yes. Use one of these two lines depending on if and how you have a UPS setup. Replace EB8_X with the energy bar name.

    If Power Apex Off 002 Then OFF

    If Power EB8_X Off 002 Then OFF


    Both of these will turn an outlet off while power is lost and for 2 minutes after it is restored.

    You might be an engineer if...You have no life and can prove it mathematically.

  6. #6
    Regular Vistor
    Join Date
    Nov 2015
    Location
    melbourne australia
    Posts
    48
    I think he means a defer statement for his ATO, mine is something like

    Defer 10:00 then on

    That means that if it's off for whatever reason, it will wait 10 minutes before coming back on

  7. #7
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Scarface View Post
    I think he means a defer statement for his ATO, mine is something like

    Defer 10:00 then on

    That means that if it's off for whatever reason, it will wait 10 minutes before coming back on
    That is good to do in general and basically serves the same purpose, but not what he asked for. He asked specifically how to delay 2 minutes following a power outage.

    You might be an engineer if...You have no life and can prove it mathematically.

  8. #8
    Regular Vistor
    Join Date
    Nov 2015
    Location
    melbourne australia
    Posts
    48
    Doesn't your example above just turn something off it something else has been off for 002? Wouldn't he want something that's like,

    Set off
    Fallback off
    If power eb8 off 002 then off
    Defer 2:00 then on

    I'm probably wrong

  9. #9
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Scarface View Post
    Doesn't your example above just turn something off it something else has been off for 002? Wouldn't he want something that's like,

    Set off
    Fallback off
    If power eb8 off 002 then off
    Defer 2:00 then on

    I'm probably wrong
    Nope.

    If Power Apex Off 002 Then OFF

    Turns the outlet off during and for 2 minutes after the head unit has lost power or rebooted.


    If Power EB8_X Off 002 Then OFF

    Turns the outlet off during and for 2 minutes following a loss of power to the energy bar or loss of communications between the energy bar and the apex.

    You might be an engineer if...You have no life and can prove it mathematically.

  10. #10
    Regular Vistor
    Join Date
    Nov 2015
    Location
    melbourne australia
    Posts
    48
    I thought, if reading that program, if the apex/energy bar is off for 2 minutes, then turn off, there's nothing about turning it off for 2:00, if that was the case, wouldn't it read then off for 002? See the order of the program there?

  11. #11
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    With that said, a defer does indirectly get to the same objective because the water level would be high hence the ATO would be off as a power outage started rather than an indeterminate state, so the defer would still indirectly apply to a power outage and has the added benefit of working for manually turning the return off for feedings or maintenance

    You might be an engineer if...You have no life and can prove it mathematically.

  12. #12
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Scarface View Post
    I thought, if reading that program, if the apex/energy bar is off for 2 minutes, then turn off, there's nothing about turning it off for 2:00, if that was the case, wouldn't it read then off for 002? See the order of the program there?
    That isn't the syntax for power statements the 002 is the amount of time after power is restored not how long power has been out for.

    You might be an engineer if...You have no life and can prove it mathematically.

  13. #13
    New User
    Join Date
    Jun 2017
    Location
    Orlando, FL
    Posts
    5
    I came across this thread in an effort to delay my ATO form turning back on for 2 minutes once power is restored after a power outage. I cannot get the below code to work. I've tried both ON and OFF for the last command. My ATO sensor is independent from Apex so I'm just using the line of code to control power to an outlet on the energy bar that powers my ATO unit.

    Fallback ON
    If Power EB832_2 Off 002 Then OFF

    I also tried just adding the last line of code to my skimmer program as it also kick on immediately after power outage and I'd like to prevent that.

    Fallback OFF
    Set ON
    If FeedA 000 Then OFF
    Defer 005:00 Then ON
    If Power EB832_2 Off 002 Then OFF

    What am I doing wrong in these two instances?

  14. #14
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by shanew76 View Post
    I came across this thread in an effort to delay my ATO form turning back on for 2 minutes once power is restored after a power outage. I cannot get the below code to work. I've tried both ON and OFF for the last command. My ATO sensor is independent from Apex so I'm just using the line of code to control power to an outlet on the energy bar that powers my ATO unit.

    Fallback ON
    If Power EB832_2 Off 002 Then OFF

    I also tried just adding the last line of code to my skimmer program as it also kick on immediately after power outage and I'd like to prevent that.

    Fallback OFF
    Set ON
    If FeedA 000 Then OFF
    Defer 005:00 Then ON
    If Power EB832_2 Off 002 Then OFF

    What am I doing wrong in these two instances?
    You need a set ON for the ATO code. Also, unless you are using a UPS connected to the apex aux power supply, you should be using Apex, not EB8 in your power statement.

    Sent from my SM-G965U using Tapatalk

  15. #15
    New User
    Join Date
    Jun 2017
    Location
    Orlando, FL
    Posts
    5
    That fixed it, Thank you

Similar Threads

  1. Question: Program power loss
    By Malster1 in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 01-06-2020, 12:53
  2. Question: Power Loss Due to Storm - Power Bars renamed
    By Regor the Reefer in forum A2 Apex/ApexEL and A3 Apex Pro/Apex/Apex Jr
    Replies: 5
    Last Post: 02-21-2018, 09:24
  3. Trouble adding power loss delay to skimmer program
    By muskiewade in forum APEX Fusion
    Replies: 4
    Last Post: 05-02-2017, 15:22
  4. Help. Multiple power loss emails without losing power
    By Barrettrhoades in forum Misc Apex Usage & Programming
    Replies: 3
    Last Post: 08-31-2015, 18:38
  5. Power loss program
    By schadm in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 08-24-2015, 17:48

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
  •