# Node red help please

**URL:** <https://community.victronenergy.com/t/node-red-help-please/64718>\
**Category:** Node-RED\
**Tags:** node-red, beginner, cerbo\_gx, multiplus-ii, offgrid, cerbo-gx\
**Created:** [4 November 2026 09:50 UTC](https://community.victronenergy.com/t/node-red-help-please/64718 "2026-11-04T09:50:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfred868](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mfred868](https://community.victronenergy.com/u/mfred868)\
**Post date:** [4 November 2026 09:50 UTC](https://community.victronenergy.com/t/node-red-help-please/64718/1 "2026-11-04T09:50:49Z")

</div>

I want to use just the clock in the cerbo puerly as a relay on off timer for relay 2 on the cerbo, (relay one is already in use) I want relay two to close at midnight and open at 5am regardless of any conditions, only the clock needs to time that relay.

I have node red installed, but cant figure out which nodes to choose from the left and how to wire them, or if this is even possible.

Can anyone please help and possibly draw me a node flow diagram?

---

<div class="post-metadata">

**Author:** ![sender](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/sender/32/520_2.png) [@sender](https://community.victronenergy.com/u/sender)\
**Post date:** [4 November 2026 13:01 UTC](https://community.victronenergy.com/t/node-red-help-please/64718/3 "2026-11-04T13:01:46Z")

</div>

I edited my post above, but unfortunately the changes aren’t showing.  
The information above is wrong—you want to control the relay, not react to its state, sorry…

The node you need calls “Relay Control”.

 ![Screenshot 2026-11-04 135458](https://europe1.discourse-cdn.com/victron/original/3X/e/b/ebb4b224ac9a93f6bf01014891b1791cc9639239.png)  
 ![Screenshot 2026-11-04 135458_2](https://europe1.discourse-cdn.com/victron/original/3X/c/7/c739630303099e26c688980b44f539c51702a87b.png)

---

<div class="post-metadata">

**Author:** ![\_m0nsam](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/_m0nsam/32/2783_2.png) [@\_m0nsam](https://community.victronenergy.com/u/_m0nsam)\
**Post date:** [4 November 2026 14:14 UTC](https://community.victronenergy.com/t/node-red-help-please/64718/4 "2026-11-04T14:14:47Z")

</div>

Hi @mfred868,

Victron recently published a blog post about the website cpv24.pl.

It has a Node-RED code generation feature that gives you an importable result based on what you ask it to do.

It might be useful for getting your flow started and finding the nodes you need, after which you can apply any adjustments you need or continue from there. I find it useful for getting started with flows and finding nodes.

Cheers, 👋

---

<div class="post-metadata">

**Author:** ![Al-2.0](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/al-2.0/32/338_2.png) [@Al-2.0](https://community.victronenergy.com/u/Al-2.0)\
**Post date:** [4 November 2026 16:38 UTC](https://community.victronenergy.com/t/node-red-help-please/64718/5 "2026-11-04T16:38:37Z")

</div>

Just ask your favoured AI model to create a downloadable .JSON flow for you, using clear comprehensive instructions on what you want it to do, then import the flow, test and modify if necessary.

I have been using Gemini 4 Argon, all from my written prompts to create a quite complex flow, it is very reliable now and gives a working flow everytime compared to ChatGPT models I tried a year ago. Often things may need tweaking but you don’t need to fully learn Node Red to get something working. I believe you can integrate Claude in NR now too which is probably a good way of using Ai to help.

---

<div class="post-metadata">

**Author:** ![Al-2.0](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/al-2.0/32/338_2.png) [@Al-2.0](https://community.victronenergy.com/u/Al-2.0)\
**Post date:** [4 November 2026 16:52 UTC](https://community.victronenergy.com/t/node-red-help-please/64718/6 "2026-11-04T16:52:21Z")

</div>

I just asked Gemini Argon, and it made a working flow by the looks of it, I manually tested the relay and it works on my Ekrano.

This is what I asked:

"Can you make a downloadable Node Red Flow for someone else to use who has a Victron Cerbo. this is what they want: I want to use just the clock in the cerbo purely as a relay on off timer for relay 2 on the cerbo, (relay one is already in use) I want relay two to close at midnight and open at 5am regardless of any conditions, only the clock needs to time that relay.

I have node red installed, but cant figure out which nodes to choose from the left and how to wire them, or if this is even possible.

Can anyone please help and possibly draw me a node flow diagram? "

```flows
[
    {
        "id": "tab_cerbo_relay2_timer",
        "type": "tab",
        "label": "Cerbo Relay 2 Timer",
        "disabled": false,
        "info": "Simple clock-based timer for Victron Cerbo GX Relay 2.\nCloses at 00:00 (Midnight) and opens at 05:00 AM.\nIncludes a 1-minute watchdog check so the relay recovers its correct state if the Cerbo reboots."
    },
    {
        "id": "comment_instructions",
        "type": "comment",
        "z": "tab_cerbo_relay2_timer",
        "name": "IMPORTANT: Set Relay 2 Function to 'Manual' in Cerbo Remote Console (Settings -> Relays)",
        "info": "For Node-RED to control Relay 2 without Venus OS overriding it, ensure Relay 2 is set to 'Manual' in the Cerbo GX settings.",
        "x": 370,
        "y": 60,
        "wires": []
    },
    {
        "id": "inject_midnight_on",
        "type": "inject",
        "z": "tab_cerbo_relay2_timer",
        "name": "00:00 - Close Relay (1)",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "00 00 * * *",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 190,
        "y": 140,
        "wires": [
            [
                "victron_relay_2_out"
            ]
        ]
    },
    {
        "id": "inject_5am_off",
        "type": "inject",
        "z": "tab_cerbo_relay2_timer",
        "name": "05:00 - Open Relay (0)",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "00 05 * * *",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 190,
        "y": 200,
        "wires": [
            [
                "victron_relay_2_out"
            ]
        ]
    },
    {
        "id": "inject_boot_watchdog",
        "type": "inject",
        "z": "tab_cerbo_relay2_timer",
        "name": "Boot & 1-Min Check",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": "5",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 180,
        "y": 280,
        "wires": [
            [
                "func_time_window_check"
            ]
        ]
    },
    {
        "id": "func_time_window_check",
        "type": "function",
        "z": "tab_cerbo_relay2_timer",
        "name": "00:00 to 05:00?",
        "func": "const now = new Date();\nconst hour = now.getHours();\n\n// Between 00:00:00 and 04:59:59, Relay 2 should be CLOSED (1)\n// From 05:00:00 onwards, Relay 2 should be OPEN (0)\nif (hour >= 0 && hour < 5) {\n msg.payload = 1;\n node.status({fill: \"green\", shape: \"dot\", text: \"Active Window: ON (1)\"});\n} else {\n msg.payload = 0;\n node.status({fill: \"grey\", shape: \"ring\", text: \"Outside Window: OFF (0)\"});\n}\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 380,
        "y": 280,
        "wires": [
            [
                "rbe_filter_changes"
            ]
        ]
    },
    {
        "id": "rbe_filter_changes",
        "type": "rbe",
        "z": "tab_cerbo_relay2_timer",
        "name": "Filter (Send on Change)",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": false,
        "property": "payload",
        "topi": "topic",
        "x": 590,
        "y": 280,
        "wires": [
            [
                "victron_relay_2_out"
            ]
        ]
    },
    {
        "id": "victron_relay_2_out",
        "type": "victron-output-relay",
        "z": "tab_cerbo_relay2_timer",
        "outputs": 0,
        "service": "com.victronenergy.system/0",
        "path": "/Relay/1/State",
        "serviceObj": {
            "service": "com.victronenergy.system/0",
            "name": "Venus device"
        },
        "pathObj": {
            "path": "/Relay/1/State",
            "type": "enum",
            "name": "Venus relay 2 state",
            "enum": {
                "0": "Open",
                "1": "Closed"
            },
            "writable": true
        },
        "initial": "",
        "name": "Cerbo GX Relay 2",
        "onlyChanges": false,
        "x": 630,
        "y": 170,
        "wires": []
    },
    {
        "id": "41dc70bdd995c9dc",
        "type": "global-config",
        "env": [],
        "modules": {
            "@victronenergy/node-red-contrib-victron": "1.7.27"
        }
    }
]
```

---

<div class="post-metadata">

**Author:** ![mfred868](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mfred868](https://community.victronenergy.com/u/mfred868)\
**Post date:** [4 November 2026 21:15 UTC](https://community.victronenergy.com/t/node-red-help-please/64718/7 "2026-11-04T21:15:50Z")

</div>

Wow this looks promising, thanks for going round that effort. It never dawned on me to ask an ai for help, yet i use chat gpt all the time.

Just one question, once I download this file, how do I install it into my node red screen?

---

<div class="post-metadata">

**Author:** ![mfred868](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mfred868](https://community.victronenergy.com/u/mfred868)\
**Post date:** [4 November 2026 21:18 UTC](https://community.victronenergy.com/t/node-red-help-please/64718/8 "2026-11-04T21:18:46Z")

</div>

Thanks this gives me a good starting point. I’ll try the ai option first that somone kindly made for me. And see how that goes. But knowing how to set nodes manually is for me just as important so thanks again.

---

<div class="post-metadata">

**Author:** ![Al-2.0](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/al-2.0/32/338_2.png) [@Al-2.0](https://community.victronenergy.com/u/Al-2.0)\
**Post date:** [4 November 2026 21:24 UTC](https://community.victronenergy.com/t/node-red-help-please/64718/9 "2026-11-04T21:24:30Z")

</div>

Download the .JSON, open Node Red from VRM (Venus OS Large) , In Node Red click the top three lines on the right, click import, select the.JSON you downloaded then when it’s showing on your flow, click big red Deploy button. Double click on the nodes to find out more info on them.

You can click on the Inject nodes (Open / Close) and should hear your Cerbo relay clicking
