question

zeron avatar image
zeron asked

Node Red : update frequency on Victron nodes

I have a Multiplus-II 5000, Cerbo GX and "tore" meter connected to the Multiplus' 3.5mm jack input.

I'm trying to use node red to turn on/off various appliances (EV charger, water heater, ...) to manage spare solar power but there is one major hiccup : measuring AC output through Victron nodes only gives me a value every 5 seconds, which is way too slow and the EV charger keeps turning itself off because it expects much faster udpates to both stay on solar charging or not trip the main breaker.

Is there any way to get a faster refresh rates on Node Red?

Would I get a much better update speed using Modbus TCP? (I'm trying to figure that one out also, but even with a Modpus polling client and the Victron excel sheet I can't seem to find where the values I want are)

Will I not get fast enough updates from the Multiplus and should I get an external energy meter?

Energy MeterNode-RED
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Alternative you can also install https://flows.nodered.org/node/node-red-contrib-victron-modbus and use that for polling more frequently.

0 Likes 0 ·
1 Answer
zeron avatar image
zeron answered ·

I looked the node-red-contrib-victron source code and found this :

class VictronDbusListener {
  constructor (address, callbacks) {
    this.address = address
    this.pollInterval = 5

It looks like it's hardcoded to poll at a 5s interval without it being specifically a node red limitation so I can give it a try by modifying it myself. Or is there any reason to not poll modbus too frequently ?

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

You can try to increase the frequency, but I doubt it will help you much. You are right that, default, it polls for the value once every 5 seconds. But besides that it will also output on each "ItemsChanges" and "PropertiesChanged" on the dbus. So in practice it will already give more frequent output.

0 Likes 0 ·
Show more comments