Integrating RS485 Modbus Sensors and External Load Control with Cerbo GX

by Loch Dweller · 3 weeks ago 46 views 5 replies
Loch Dweller
Loch Dweller
Member
9 posts
Joined Apr 2025
3 weeks ago
#32236

Been down a similar rabbit hole recently on the boat, so this thread caught my eye.

Running a Cerbo GX with a SmartShunt, two Victron MPPTs and a Multiplus — all talking nicely over VE.Can/VE.Direct. But I want to bring in some third-party RS485 Modbus sensors (temp and humidity for the battery compartment mostly) and I'm hitting a wall.

The Cerbo's Venus OS does support Modbus TCP out of the box, but getting external RS485 devices to show up properly as native objects in the VRM portal is a different story. Seems like you need a USB-to-RS485 adaptor and then either:

  • A custom driver via Venus OS Large (which opens up Node-RED)
  • Or some kind of intermediary like an MQTT bridge

Has anyone actually got Node-RED on Venus OS doing reliable RS485 polling? Curious how stable it is long-term — narrowboats aren't exactly a controlled environment and I don't want something falling over mid-cruise.

The other bit I'm after is external load control — switching a 12V bilge pump circuit based on a float switch and SOC thresholds from the Cerbo simultaneously. Feels like this should be doable with a relay module triggered via MQTT, but I haven't found a clean worked example for a UK 12V marine setup yet.

Anyone cracked this, particularly with Fogstar or similar lithium setups where BMS comms are already in the mix? Would love to know what's actually working in the real world rather than what looks good on paper.

Moor Camper
Moor Camper
Active Member
24 posts
thumb_up 1 likes
Joined Nov 2024
3 weeks ago
#32306

@LochDweller nice setup. The Cerbo's Venus OS has a Modbus TCP server built in so you can poll it from external kit — that's your bridge if you need RS485 sensors talking upstream.

For the external load control side, I've used the two digital outputs on the Cerbo to trigger relays based on SOC thresholds. Set it up via the GX Touch menus, no coding needed.

If you want anything more exotic, Node-RED on a Pi sitting alongside works a treat — reads Modbus, pushes values to the Cerbo via MQTT. Bit of faff initially but solid once running.

My emergency backup priority rules all live in there now. Keeps things simple when the grid goes down and I need automated load shedding without touching anything.

Volt Max
Volt Max
Active Member
34 posts
thumb_up 12 likes
Joined Oct 2023
3 weeks ago
#32312

@LochDweller jealous of that setup — I've got a Cerbo in my van and spent three weekends convinced Modbus TCP was broken before realising I'd just typed the wrong IP address like an absolute muppet.

One thing worth knowing: the Cerbo exposes unit ID 100 for the system overview, but each connected device (your SmartShunt, MPPTs etc.) gets its own unit ID — grab Victron's Modbus TCP register list PDF, it's the only thing that'll save your sanity.

If you want to control external loads, Node-RED running on Venus OS Large is chef's kiss — I'm using it to trigger a contactor for EV charging when SOC hits 90%, dead easy once you stop fighting it.

Anglia OffGrid
Anglia OffGrid
Regular
81 posts
thumb_up 30 likes
Joined Aug 2023
3 weeks ago
#32327

@LochDweller welcome aboard — narrowboat systems are where this stuff gets genuinely interesting.

One thing worth knowing: the Cerbo's built-in Modbus TCP server uses unit ID 100 for the system overview registers and sequential IDs for each connected device. Catch people out constantly that one.

If you want to push commands back the other way — say, switching a load based on SOC — look at the relay assistant in the Multiplus config alongside the Cerbo's programmable relays. Between the two you can do a surprising amount without touching Venus OS Large or Node-RED.

@VoltMax's pain is real though — always worth confirming your Cerbo firmware is current before assuming Modbus is broken. Had exactly that grief on my own boat before a routine update quietly fixed it.

Daily Solar
Daily Solar
Senior Member
158 posts
thumb_up 41 likes
Joined Mar 2023
3 weeks ago
#32335

@VoltMax those three weekends of suffering are almost a rite of passage with Cerbo Modbus TCP — the classic gotcha is that the server only activates once you've enabled it under Settings → Services → Modbus TCP, which is off by default. Caught me out embarrassingly long.

For the actual RS485 side though — if you're wanting to bring external Modbus RTU sensors (weather stations, soil moisture, tank sensors etc.) into Venus OS rather than just polling the Cerbo out, you'll need a proper RTU-to-TCP gateway or run a custom driver via Venus OS Large with Node-RED. I do exactly this at my cabin to pull in a custom battery temperature array and feed it into ESS logic. Node-RED running locally on the Cerbo GX is genuinely powerful once you've got your head around it — you can trigger relay outputs, control loads, the works. The Victron community Modbus register list is your bible here.

Frank Palmer
Frank Palmer
Member
9 posts
thumb_up 2 likes
Joined Feb 2025
3 weeks ago
#32349

@DailySolar I'm curious what gotcha you were about to mention there — don't leave us hanging!

@VoltMax I'd add that once you've got Modbus TCP sorted, the real fun begins with external load control via the Cerbo's relay outputs. I've got a 230V relay on Relay 1 triggered by state of charge thresholds — works a treat for shedding non-essential loads automatically without touching Node-RED.

@LochDweller for the RS485 side on the boat, worth checking whether your sensors need a proper 120-ohm termination resistor at each end of the bus — especially on longer cable runs. I lost a weekend to intermittent dropouts before spotting that was the culprit. Also, the Victron Modbus TCP register list PDF is your bible — bookmark it, print it, whatever it takes.

Log in to join the discussion.

Log In to Reply