SmartPi2 and Wall Sockets

Hi,
Iam planning to use the installed Node-RED on my SmartPi2 Module with an DECT Wall Socket.
If the current is negative (more energy is produced than consumed) I would like to use Node-Red to switch on a DECT Socket! Does somebody has a idea how I can tell the socket that enough energy is available?
Thanks
Hans