Timers on Reef-pi

haley-pi

New Member
View Badges
Joined
Aug 14, 2020
Messages
15
Reaction score
7
Location
ottawa
Rating - 0%
0   0   0
Hey Everyone,

How Does Reef Pi's timers react to power failures?

I have set my co2 up with the following timer. If I lose power before a state change, and regain it after, Will the state change be ignored?


For example, if the power turns off at 11:55, then comes back at 12:05, will the co2 be on?

Thanks

Screen Shot 2020-12-08 at 5.10.51 PM.png
 
OP
OP
H

haley-pi

New Member
View Badges
Joined
Aug 14, 2020
Messages
15
Reaction score
7
Location
ottawa
Rating - 0%
0   0   0
Did you find an answer to this? I would like to know this as well.
Yes.

to quote Ranjib ‘...
Light, outlet state etc should sync back after power outage soon as reef-pi start or within a minute (for lights). Macro, timers that reverts back after a duration etc will lose their on-the-fly state and will be impacted (e.g, there revert after a duration part might be lost since timer trigger point is passed).’
 

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,056
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Yes. Timers with simple action such as just turn on a thing at a specific time are pretty stable and should not be hampered by power cycle. But an example like the one presented here, where it turns back off after a long time can be impacted badly. As in if the timer started and then power cycles , the revert back action will be impacted , since the timer that started is gone . And it will not trigger back again till next interval. For this reasons , it’s better to split such timers into two different ones , one for on and one for off if you are worried about power cycle in between.
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,035
Location
Durban - South Africa
Rating - 0%
0   0   0
Yes. Timers with simple action such as just turn on a thing at a specific time are pretty stable and should not be hampered by power cycle. But an example like the one presented here, where it turns back off after a long time can be impacted badly. As in if the timer started and then power cycles , the revert back action will be impacted , since the timer that started is gone . And it will not trigger back again till next interval. For this reasons , it’s better to split such timers into two different ones , one for on and one for off if you are worried about power cycle in between.
Will a real-time clock help with this @Ranjib ?

This is definitely a good argument for backup power for the Pi. Not necessarily for the equipment, but definitely to keep the pi alive so it remembers all it's states and timers / macros it has running.
 

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,056
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Will a real-time clock help with this @Ranjib ?

This is definitely a good argument for backup power for the Pi. Not necessarily for the equipment, but definitely to keep the pi alive so it remembers all it's states and timers / macros it has running.
yes, it will , but only to some extent. An RTC module will make sure time does not drift once pi comes up after power outage (i.e. it will reduce the chance of timers start at wrong time or not starting at expected time ., ) . it will not solve the issue of lost state of timers that were already running during the outage.
 

attiland

2500 Club Member
View Badges
Joined
Jul 22, 2020
Messages
2,594
Reaction score
4,800
Location
United Kingdom
Rating - 0%
0   0   0
yes, it will , but only to some extent. An RTC module will make sure time does not drift once pi comes up after power outage (i.e. it will reduce the chance of timers start at wrong time or not starting at expected time ., ) . it will not solve the issue of lost state of timers that were already running during the outage.
I don’t understand why it is not sorted a long time ago. It might be just me but I think this is a big flow of many DIY systems I have looked at. In some of my other projects I use a timer test routine which tests switch states against a timer. So if no override flags set it switches it to the state where it should be. To translate it to a reef example the pump should be on between 1-2pm. The system starts at 1:20pm so it has missed to turn on the pump at 1pm. Routine identifying it should be on and no maintenance flag so if it is off it turns it on. This is easy workaround of missed timer events. Of corse RTC is a must for such a routine to run reliably.
 

Being sticky and staying connected: Have you used any reef-safe glue?

  • I have used reef safe glue.

    Votes: 25 80.6%
  • I haven’t used reef safe glue, but plan to in the future.

    Votes: 1 3.2%
  • I have no interest in using reef safe glue.

    Votes: 2 6.5%
  • Other.

    Votes: 3 9.7%
Back
Top