UPS Shutdown Timer value not working and shuts down immediately.
|Reported by:||JoeSchmuck||Owned by:|
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.