Venus OS v3.60~46 - Node Red Relay Control

Hi, recently started using node red to control relay 2 on the Cerbo GX.

The relay control node stopped working when 3.6~46 was installed.

Forgot to save the message for you, but

The Node Red system reported on the Relay Control Node that no relay was present.

I backed out to the latest official release, and the Relay Control node then worked as before.

Reloaded 3.6~46, and the problems re-occurred. Reverting again to 3.54 all started to work.

Sorry for the lack of information, please ignore and I’ll re-join the beta at a later date…

Did you check the correct setup of IO lines after Venus update in the relay menue?
Did you use the “deploy” button in Node Red to restart node after venus update?

Will check your points at some stage tomorrow. Will reload 3.6.46 and start again from fresh. Many thanks for your response…

Hi

This is what I did this morning:

I let the firmware update to 3.6~46 and after the reboot checked on remote console to ensure relay 2 was still in Manual mode. It was. Maybe 30 seconds after this I got an error message on the console about device not connected to VRM, before I could screen shot it, it disappeared…

Then I fired up Node Red.

I checked the operation of the relay control: It was no longer working

I restarted the flow

I dragged a new control to the flow and got this:

I hope this helps – Later if needed I could set up a debug to monitor the flows in and out.

I ran into exactly the same problem using 3.60~46.

Downgraded to 3.54, now everything works again.

What i found is that Relay node’s that were already made, linked and deploy do stay working in 3.60~46.

So a workaround for now is downgrading to 3.54 (official version), creating the wanted flow and then upgrading to the newest beta. Then you have a working relay flow while still being able to use the beta.

Thanks for replying, with mine the existing flow did not work properly after the upgrade, but we’re fine on 3.6 39!

So I’m back to 3.54…

Thanks for reporting. I will look into it and fix it as soon as I get near a GX device again in a few days.

Update: created [BUG] Relay control not working on GX · Issue #224 · victronenergy/node-red-contrib-victron · GitHub for this.

2 Likes

Hi,

here with a Cerbo or Ekrano and FW:3.60.46 no trouble with the relay on my side.(standard large install)

Xavier

I can confirm the bug.
In v3.54 and v3.60~39 there’s no problem reading or writing the relay state in Node Red.
In v3.60~46 I can still read the relay state but can’t set it from a freshly deployed relay control node.

After deploying a relay control flow in v3.54 or v3.60~39 and then upgrading to v3.60~46, the control node gets status “disconnected”.
" The device is no longer available via the stored service path. Please (re)select the device from the dropdown and deploy again."
However, setting the relay(s) while running v3.60~49 from a flow deployed in v3.54 or v3.60~39 still works.
Setting the relay via Remote Console or VRM also works.

My test setup:

  • Raspberry Pi3 running VenusOS v3.60~39 / v3.60~46 (my test device)
  • CerboGX MK2 running VenusOS v3.54 / v3.60~46 (couldn’t find v3.60~39 download to test against that)

Hi,

Perhaps the difference come from the fact I’ve take care to update all the palette’s node items in Red Node.

BR
Xavier.

I’m running the same versions as you are.
What do you get when you double click on a Relay Control Node ?
From the regular flow screen on v3.60~46 everything looks fine here, but when I double click a Relay Control Node, it says it’s disconnected.
Dragging a new Relay Control Node to a flow and double clicking that gives a “There are no relay services available. Please check that a relay is connected or try a different node.” message.

Quick update: in node-red-contrib-victron v1.6.20, as shipped with VenusOS v3.60~47, the bug is also present.
(For reference: v3.60~46 shipped with node-red-contrib-victron v1.6.19)

FWIW, yesterday I upgraded to 3.60~46 and love the UI changes, but I was trying to do some work in Node-RED and it was super flaky. It kept disconnecting and giving me a red message at the top of VRM saying it was trying to reconnect. Eventually it would, but not for long. The Node-RED UI wouldn’t work at all. I forgot the error message. I rebooted to .54 and everything was back to normal - although now the UI feels old :smiley:.

1 Like

Im having issues with remote connection to vrm portal, and thus node red bith yesterday and today - think I will leave everything alone for a while until it is stable, and consider hard wiring and a manual control for my project rather than rely on this.

Hi,

all services or nodes are OK on my side… (here the Ekrano)

I can select even Relay 1 or 2…

after I can setup and handle them normaly without any error message.

Xavier.

The Read “Relay Node”, as in your screenshot, is not impacted by the bug.
It’s the “Relay Control Node” that is impacted, the one used to set relay status instead of reading relay status.

Hi,
Infact !!
got it too

Hi Adrian,

thank you again for the report. This was fixed just now with v3.60~49

2 Likes

Thanks for letting me know…

They sort of broke the Node Red dashboard in v3.60~49 though :frowning:
Hopefully Victron can quickly find a solution, I’ll be testing any new version that comes out.

1 Like