Quote from: franco on May 10, 2016, 08:21:37 AMDo not use poweroff... use the script /usr/local/etc/rc.halt as you'll otherwise end up with no backups and/or improper shutdowns.
API for this is going to happen, likely not for 16.7, but should be a viable target for 17.1.
I tried to shutdown the router via: ssh root@opnsense /.... Any command
But it does not accept ssh commands from the PC (the one connected to the ups), neither using the root user nor any other user.
From the same PC, I can access the OpnSense router's GUI with a browser //<ip>/
"