Event 2 - On Start of Layout you check if energia EXISTS
but event 1 - On energia GET you read the value
both should be EXISTS, or GET. The way you have it, the GET will never get called.
I don't see where you SET energia, so that could be a problem as well...