I use my NAS to cleanly shutdown my HE hubs prior to a power outage.
My network rack (which includes my Synology DS918+ and HE hubs) is protected by a rack mount UPS, connected via USB to the NAS. This of course, shuts down the NAS before the UPS battery runs dry.
What I didn't know until half a year or so ago, is that the NAS implements a NUT server. NUT is a protocol that supports, among other things, UPS devices. There's a driver for HE that allows it to be a NUT client, whereby it can receive various messages from a UPS and react to them.
In the NAS control panel, under Hardware & Power, on the UPS tab, check "Enable Network UPS Server", and in the "Permitted Diskstation Devices" add the IP addresses of your HE hubs.
Then on each of your hubs. install the driver using the instructions found here:
Now, on an extended power outage your hubs will shut down gracefully courtesy of the NUT server on the NAS.
Also, a few docker containers for the Echo Speaks server, node red, etc.