Skip to main content

Victron (Node-RED) Automation Scripts

Victron Cerbo GX and Ekrano GX Automation Scripts

The Victron Energy ecosystem is about as flexible as a yoga instructor—thanks to the Cerbo GX/Ekrano GX system controller's ability to run Node‑RED, we can create virtually any automation you dream up. Whether you’re looking to add a single-button “inverter on” switch or build a full “set‑and‑forget” energy management suite, the only limit is your imagination.

All configuration and interaction is through clean, mobile friendly web-pages.  If your GX device is networked and you have a device with a browser on board, you can run them! (Note, Remote operation is also possible using the VRM portal!)

Node‑RED Automations Currently Available

1. Auto‑Powering for Inverter/Chargers - $35

 
cards
Powered by paypal

This one’s a Swiss Army knife for off‑grid comfort and efficiency. Features include:

  • Auto‑Off on Low Load: If your AC power consumption dips below a set wattage for a set period, the inverter/charger powers down to save standby power (and vampire currents-phone chargers and the like ).

  • Configurable On/Off Cycling: Ideal for running air‑con overnight—you choose an “on” interval (e.g., 45 minutes), an “off” interval (e.g., 120 minutes), and how many cycles to run (e.g., 3). A simple press of a button on your Smartphone starts the process and allows for configuration changes!

  • Power off at a Set Time of Day: Maybe you want the inverter to turn off every night at midnight, or you want to run your Air Con until 02:00.  This feature allows you to do that.  You  can configure it to run once, run many times, or run always.

  • SoC Safeguard: Should your battery SoC fall below a guardrail you set, the script immediately kills the inverter to protect your bank.

  • Auto-Off if shore power becomes disconnected: Prevents your battery bank from running down if shore power un-expectedly goes away.

  • Plug‑and‑Play Settings: All thresholds, timers, and cycle counts are exposed as easy‑to‑tweak variables in the Node‑RED dashboard.

Auto Inverter Control Dashboard


2. Remote Inverter/Charger Toggle - $10

 
cards
Powered by paypal

Ever wish you could power up your inverter/charger without the numerous button presses required on the Cerbo GX or Ekrano GX? This script watches for an input to change, either from the push of a hard-wired button, or on a tiny RF remote control and toggles the status of the inverter/charger from on to off or vice-versa—no smartphone, no app, no fanfare. It’s perfect when paired with the Auto Powering Script that automatically turns off idle Inverter/Chargers.  We have a small remote button in the galley and simply  press it for about a second when we want the Inverter/Charger to turn on, no need to fumble through 6 presses on the GX Touch!

The Script includes "switch de-bouncing" to make sure you don't make your Inverter/Charger turn on then right back off because of noise ("bouncing") on the switch signal.

There is no configuration required, so no user interface to mess with. Once installed, you are done!

Note: This script will require the wiring of a physical momentary push button switch which you can locate somewhere in the vicinity of your GX device or the installation of a small remote control, such as this one: https://a.co/d/iMcvyke.  With this approach you can use double sided tape to mount up to 4 On/Off buttons wherever most convenient!


3. Smart Hot Water Heater Control - $30 

cards
Powered by paypal

Stop wasting excess solar and start enjoying hot water on sunshine alone! This flow watches for threes conditions simultaneously:

  • Time of Day within the range you specify (e.g., 10:00 - 16:00)

  • Battery State‑of‑Charge (SoC) greater than your chosen threshold (.e.g. 85%)

  • Solar input greater than your chosen threshold (e.g., 850W)

When both boxes are ticked, your hot water heater(s) fire up for exactly the duration you specify—so you never lose out on free solar energy, and you’re never left cold.

The script is very customizable to cover as many user needs as possible.  These include

  • Run everyday if on Shore Power: Yes/No
  • Automatically turn off Hot Water Heaters at midnight: Yes/No (In case left on)
  • Automatically turn off Hot Water Heaters is they were started manually: Yes/No
  • Automatically turn on your Inverter/Charger when Heating Water: Yes/No
  • Automatically turn off your Inverter/Charger when Heating is Complete: Yes/No
The script can also detect engines running if you have alternators that will cause "negative" DC Load power and automatically count that as time the heaters have been running each day.

See the Screenshot below to see the settings and reporting that make configuration easy and typically a one-time thing.
Hot Water Control Dashboard


Note: For this script, you will need to have an AC power relay installed that can handle the power of your Hot Water Heater(s).
This relay will typically be placed in the AC power lines after your Hot Water Heater Breaker(s), which will now be always let in the on position. The coil, or input, to the relay will be controlled by a output relay on the Cerbo GX / Ekrano GX. 
You will be able to manually turn on your Hot Water Heater(s) at any time by using a switch on the Touch GX display, or from the scripts web interface. A schematic diagram will be provided illustrating what is required. 

NO LIABILITY IS ASSUMED FOR IMPORPER INSTALLTION OF THIS CIRCUIT.  THIS SHOULD BE INSTALLED TO AYBC STANDARDS BY A CAPABLE MARINE ELECTRICIAN.


4. Custom Scripts, Your Way

Every boat, Victron Setup, and power profile is different—if you need something bespoke, I’m your guy. Pricing and scope are handled on a case‑by‑case basis, so drop me a line at [email protected] with your idea. We’ll hash out feasibility, timeline, and cost, and have you running your Victron system like a digital ninja in no time.

Comments

Popular posts from this blog

Using a NAS (Network Attached Storage) device on a boat as your own personal Cloud.

Living on a self-sufficient boat without giving up The Cloud?! If you are at all like me, you've begun to rely more and more on one or more Cloud Services.  Apple iCloud, Dropbox, Google Drive, Microsoft OneDrive and many, many more basically all offer the same solution: "You have digital things that are important to you; you pay us a small amount per month and we'll manage keeping it safe and protect you from hardware failures and data loss." I firmly believe that hosted cloud storage is one of the great conveniences that just about anyone under the age of 70 should be using.  The solutions are downright cheap, given how much storage capacity you can get and how much you would pay to get that data back if you lost it. I have used all of the above and my provider of choice is Google Drive, though we also use Apple iCloud to automatically backup our iDevices, as least for now. Life 2.0 We will still have a cloud storage provider when we set sail, but what are we going ...

Common Questions from other Vision Owners

Update: 7 Oct 2024 Before we get to the blog article, which I wrote in March of 2023, I want to let you know that I just found out about Google's NotebookLM, which is an AI powered tool that allows you to create a Podcast style audio piece based off of whatever input you provide, in this case, the following article. Here is a link to the "podcast" it created . Honestly, I'm blown away! Original Article follows... Introduction  I received a list of questions from Steve and Lisa Heidenthal (Hull #13, Sla'inte) about how we set up our boat, where we purchased things in SA and instead of just answering them for Steve, I thought I might as well make a blog article to also help others. All of these answers will be from the following perspective: sailing the boat over from SA to where-ever having the boat built with strictly 230V/50Hz power If the boat is being shipped, I wouldn't suggest buying much in SA, as you will have an easier time finding more options (and us...

Victron Isolation Transformer - How to lower the output voltage

Re-configuring a Victron Energy isolation transformer This is a companion article to a YouTube video  covering the same topic. What are they and why do I need one? Victron Energy isolation transformers are often used on boats that connect to shore power in order to provide a means of providing isolation between the shore power and the AC power that exists on the boat.  The transformer sits in between those two worlds and isolates that two power supplies through magnetic flux and an air-gap. The reason this is needed on a marine vessel is because without it, small leakage currents can flow between the earth ground for shore power and the "earth ground" connection on the boat, which is usually connected to water through a propeller shaft, out-drive, sail-drive or sacrificial zincs. That creates a loop and that small leakage current greatly accelerates any galvanic corrosion that naturally happens. Current flows through the water because of the salt content, or even in fresh-wat...