# SmartPi2 and Wall Sockets

**URL:** <https://discourse.nodered.org/t/smartpi2-and-wall-sockets/13471>\
**Category:** General\
**Created:** [19 July 2019 07:23 UTC](https://discourse.nodered.org/t/smartpi2-and-wall-sockets/13471 "2019-07-19T07:23:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hans](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@Hans](https://discourse.nodered.org/u/Hans)\
**Post date:** [19 July 2019 07:23 UTC](https://discourse.nodered.org/t/smartpi2-and-wall-sockets/13471/1 "2019-07-19T07:23:46Z")

</div>

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
