Did Victron eliminate the ability to update the virtual battery property type “/ConsumedAmphours” in Venus OS v3.72 via Node Red? I get an error in my function code when trying to update it. Here is the snippet of Javascript code in my function node that loads virtual battery properties. I have commented out the line that creates the error. Everything else works just fine:
msg.payload = {
“/Dc/0/Voltage”: Number(msg.payload.Battery_Voltage),
“/Dc/0/Current”: Number(msg.payload.Battery_Currents),
“/Dc/0/Power”: Number(msg.payload.Battery_Power),
“/Soc”: Number(msg.payload.Battery_SOC),
// “/ConsumedAmphours”: Number(msg.payload.Consumed_Ah),
“/TimeToGo”: Number(Math.min(Number(msg.payload.Time_to_go)*3600,864000)), // In seconds up to 240 hours
};
return msg;