I had an issue recently where my new PC build would not shut down. It would power itself back on on every shutdown immediately.
Checked the bios and found that I had Wake on PCIe (something like that) enabled. Soon as I disabled it, I was able to shut down my PC.
My assumption is that I was shutting down my PC and my monitor still being on was causing my Asus mobo to see it as a turn on event.
NPM is awesome until you have a weird error that the web GUI does not give a hint about the problem. Used it for years at this point and wouldn’t consider anything else at this point. It just works and is super simple.