Rebooting HA after a power cut with UPS and controlled shutdown

If your NUC supports wake on lan you could do this with an esphome not connected to the UPS.