Updates to new event based API for EnergyNet. Briefly tested, seems to be
working fine.