Binary GPIO sensor to Engergy Dashboard

Have a read of this thread:

This seems to be a discussion about achieving what you want.