#639 closed defect (fixed)
UPS Shutdown Timer value not working and shuts down immediately.
| Reported by: | JoeSchmuck | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 8.0.1-RELEASE |
| Component: | Backend | Version: | |
| Keywords: | Cc: |
Description
The shutdown timer setting does not work. My assumption is this is the FINALDELAY parameter in the code. If so, this value is in minutes however whenever the UPS goes on battery power it triggers an immediate shutdown, no delay.
As I understand NUT, if the event is triggered such as Goes on battery power, no matter what the value of FINALDELAY is, the system will still shut down even if power was restored to the UPS. I just don't think it was coded to stay on if power returns.
I don't have the answer yet on how to fix this but it would be good to make "When goes on battery" to operate as follows:
1) Start a timer using the Shutdown Timer value as a delay.
2) After delay, verify UPS is still on battery, if so start shutdown. In UPS has returned to building power cancel shutdown.
3) Ensure that the UPS Battery Low signal would trigger a shutdown even if the shutdown timer delay hasn't been met.
I would also like to recommend the default setting for the UPS shutdown be 15 minutes and UPS reaches low battery.
Change History (4)
comment:1 Changed 21 months ago by protosd
comment:2 Changed 20 months ago by william
- Resolution set to fixed
- Status changed from new to closed
The UPS notify has been reworked,
Please try nightly or the next upcoming 8.0.1 RC release (RC2.1 or RC3)
I am closing this for now, please reopen if you find the issues again.
comment:3 Changed 20 months ago by JoeSchmuck
Using 8158 build.
This does work. It would be nice to have a mouse-over on the GUI stating the value is in seconds.
comment:4 Changed 20 months ago by protosd
Agreed, as well as doing the same for DDNS update period.

++
Those conditions/sequence sound right-on.