// Wait for both messages to arrive
// Calculate delta between consumption and PV
context.power = context.power || {};
switch (msg.topic) {
case 'power_cons_sum':
context.power.cons = parseInt(msg.payload);
//node.warn("context.power.cons " + context.power.cons);
msg = null;
break;