If you have a Rpi and want a guide on how to get NUT setup and working with HE, check this thread out. Down near the end I linked the guide I used and a few posts later filled in missing pieces for me. I have it notify me when the power source has changed and do a saving shutdown for HE. I also use it to detect when the TV is in use.