NodeRED node ‘Battery Monitor’ outputs ’null’ as the result for the energy values. 🤷‍♂️

Produkt Cerbo GX MK2
Firmware-Version v3.60~39

NodeRED in use:

  • Runtime Maintenance Release 3.1.13
  • Palette: @victronenergy/node-red-contrib-victron 1.6.17

The node ‘Battery Monitor’ with the following Energy selections lead to "null" output:

Currently stored selection:
* VE.Can Pytes Battery
* Charged Energy (kWh)

Debug Message: VE.Can Pytes Battery - Charged Energy (kWh) : msg.payload : null

Currently stored selection:
* VE.Can Pytes Battery
* Discharged Energy (kWh)

Debug Message: VE.Can Pytes Battery - Discharged Energy (kWh) : msg.payload : null

While if you select e.g. Battery power (W) it leads to a valid result

Currently stored selection:
* VE.Can Pytes Battery
* Battery power (W)

Debug Message:

VE.Can Pytes Battery - Battery power (W) : msg.payload : number
-1175

Does anyone have any idea what could be causing this result?
Application error? Battery/BMS? Missing system configuration? An error in the battery monitor? Or something completely different?

Many thanks in advance.

Hello fellow sufferer,

Did you ever find an answer to this question? I am finding it with several nodes as well.

Looks like bad function code. You can see the values being returned from the victron nodes (green value under the node), so there is no null value, that appears to be a poor function.