NodeRed Flow wanted to control Cerbo’s Relay based on Timer and Sunset

We are looking for a Node Red developper who can help us programming some rules/conditions.
Or provide us with some guidance

We have a lighting system using Victron components.

We are using the Cerbo GX.
We want to switch on the lights following a certain schedule.
On and off end and beginning of the day.
In the Cerbo GX we can only activate one condition.

Who can support?

Just let us know so we can exchange a few more details.

I know that this may not be the answer you seek and sorry for that, but did you saw the Victron tutorials on youtube on Node Red?
It may not be as complicated as you think…
This, this and this.

1 Like

How are the lights switchable? Are they connected to some smart device?

Setting up to switch something on/off on a certain daytime isn‘t that hard. The question is just how to communicate it to the target.

As we don’t know much about the environment to control the lights, in NodeRed the node to consider to controll the lights might be “BigTimer” from Peter Scargill.

https://flows.nodered.org/node/node-red-contrib-bigtimer

This should at least satisfy all timer related needs inside NodeRed (including Sunrise/Sunset and even randomisation, if needed)

the red node in the screenshot is called “BooleanLogicUltimate” and his “OR” Output is used. https://flows.nodered.org/node/node-red-contrib-boolean-logic-ultimate but this could be done as well with a “function” node. I like the better overview like this, but needs said node to be added to NodeRed.

For completeness sake here the Code in Json you see on the Screenshot: (could be copy and pasted into NodeRed)

[
    {
        "id": "ad165ab65423ba31",
        "type": "bigtimer",
        "z": "49f39a1906f99fca",
        "outtopic": "",
        "outpayload1": "",
        "outpayload2": "",
        "name": "WorkingDays Morning",
        "comment": "",
        "lat": 0,
        "lon": 0,
        "starttime": "375",
        "endtime": "450",
        "starttime2": 0,
        "endtime2": 0,
        "startoff": "0",
        "endoff": "5",
        "startoff2": 0,
        "endoff2": 0,
        "offs": 0,
        "outtext1": "",
        "outtext2": "",
        "timeout": 1440,
        "sun": false,
        "mon": true,
        "tue": true,
        "wed": true,
        "thu": true,
        "fri": true,
        "sat": false,
        "jan": true,
        "feb": true,
        "mar": true,
        "apr": true,
        "may": true,
        "jun": true,
        "jul": true,
        "aug": true,
        "sep": true,
        "oct": true,
        "nov": true,
        "dec": true,
        "day1": 0,
        "month1": 0,
        "day2": 0,
        "month2": 0,
        "day3": 0,
        "month3": 0,
        "day4": 0,
        "month4": 0,
        "day5": 0,
        "month5": 0,
        "day6": 0,
        "month6": 0,
        "day7": 0,
        "month7": 0,
        "day8": 0,
        "month8": 0,
        "day9": 0,
        "month9": 0,
        "day10": 0,
        "month10": 0,
        "day11": 0,
        "month11": 0,
        "day12": 0,
        "month12": 0,
        "d1": 0,
        "w1": 0,
        "d2": 0,
        "w2": 0,
        "d3": 0,
        "w3": 0,
        "d4": 0,
        "w4": 0,
        "d5": 0,
        "w5": 0,
        "d6": 0,
        "w6": 0,
        "xday1": 0,
        "xmonth1": 0,
        "xday2": 0,
        "xmonth2": 0,
        "xday3": 0,
        "xmonth3": 0,
        "xday4": 0,
        "xmonth4": 0,
        "xday5": 0,
        "xmonth5": 0,
        "xday6": 0,
        "xmonth6": 0,
        "xday7": "",
        "xmonth7": "",
        "xday8": "",
        "xmonth8": "",
        "xday9": "",
        "xmonth9": "",
        "xday10": "",
        "xmonth10": "",
        "xday11": "",
        "xmonth11": "",
        "xday12": "",
        "xmonth12": "",
        "xd1": 0,
        "xw1": 0,
        "xd2": 0,
        "xw2": 0,
        "xd3": 0,
        "xw3": 0,
        "xd4": 0,
        "xw4": 0,
        "xd5": 0,
        "xw5": 0,
        "xd6": 0,
        "xw6": 0,
        "suspend": false,
        "random": false,
        "randon1": false,
        "randoff1": true,
        "randon2": false,
        "randoff2": false,
        "repeat": true,
        "atstart": true,
        "odd": false,
        "even": false,
        "x": 180,
        "y": 1980,
        "wires": [
            [],
            [
                "dfb1c331fa9d2444"
            ],
            []
        ]
    },
    {
        "id": "27d0399f1a4a72d1",
        "type": "bigtimer",
        "z": "49f39a1906f99fca",
        "outtopic": "",
        "outpayload1": "",
        "outpayload2": "",
        "name": "Weekend",
        "comment": "",
        "lat": 0,
        "lon": 0,
        "starttime": "705",
        "endtime": "780",
        "starttime2": 0,
        "endtime2": 0,
        "startoff": "15",
        "endoff": "15",
        "startoff2": 0,
        "endoff2": 0,
        "offs": 0,
        "outtext1": "",
        "outtext2": "",
        "timeout": 1440,
        "sun": true,
        "mon": false,
        "tue": false,
        "wed": false,
        "thu": false,
        "fri": false,
        "sat": true,
        "jan": true,
        "feb": true,
        "mar": true,
        "apr": true,
        "may": true,
        "jun": true,
        "jul": true,
        "aug": true,
        "sep": true,
        "oct": true,
        "nov": true,
        "dec": true,
        "day1": 0,
        "month1": 0,
        "day2": 0,
        "month2": 0,
        "day3": 0,
        "month3": 0,
        "day4": 0,
        "month4": 0,
        "day5": 0,
        "month5": 0,
        "day6": 0,
        "month6": 0,
        "day7": 0,
        "month7": 0,
        "day8": 0,
        "month8": 0,
        "day9": 0,
        "month9": 0,
        "day10": 0,
        "month10": 0,
        "day11": 0,
        "month11": 0,
        "day12": 0,
        "month12": 0,
        "d1": 0,
        "w1": 0,
        "d2": 0,
        "w2": 0,
        "d3": 0,
        "w3": 0,
        "d4": 0,
        "w4": 0,
        "d5": 0,
        "w5": 0,
        "d6": 0,
        "w6": 0,
        "xday1": 0,
        "xmonth1": 0,
        "xday2": 0,
        "xmonth2": 0,
        "xday3": 0,
        "xmonth3": 0,
        "xday4": 0,
        "xmonth4": 0,
        "xday5": 0,
        "xmonth5": 0,
        "xday6": 0,
        "xmonth6": 0,
        "xday7": "",
        "xmonth7": "",
        "xday8": "",
        "xmonth8": "",
        "xday9": "",
        "xmonth9": "",
        "xday10": "",
        "xmonth10": "",
        "xday11": "",
        "xmonth11": "",
        "xday12": "",
        "xmonth12": "",
        "xd1": 0,
        "xw1": 0,
        "xd2": 0,
        "xw2": 0,
        "xd3": 0,
        "xw3": 0,
        "xd4": 0,
        "xw4": 0,
        "xd5": 0,
        "xw5": 0,
        "xd6": 0,
        "xw6": 0,
        "suspend": false,
        "random": false,
        "randon1": true,
        "randoff1": true,
        "randon2": false,
        "randoff2": false,
        "repeat": true,
        "atstart": true,
        "odd": false,
        "even": false,
        "x": 140,
        "y": 2100,
        "wires": [
            [],
            [
                "237d2d06d6d18793"
            ],
            []
        ]
    },
    {
        "id": "98fc7fc0599ebc8f",
        "type": "BooleanLogicUltimate",
        "z": "49f39a1906f99fca",
        "name": "",
        "filtertrue": "both",
        "persist": true,
        "sInitializeWith": "WaitForPayload",
        "triggertopic": "trigger",
        "outputtriggeredby": "all",
        "inputCount": "2",
        "topic": "result",
        "x": 640,
        "y": 2040,
        "wires": [
            [],
            [],
            []
        ]
    },
    {
        "id": "437581dd35a93f36",
        "type": "bigtimer",
        "z": "49f39a1906f99fca",
        "outtopic": "",
        "outpayload1": "",
        "outpayload2": "",
        "name": "Sunset - 00:30",
        "comment": "",
        "lat": "48.858513",
        "lon": "2.294483",
        "starttime": "5004",
        "endtime": "30",
        "starttime2": 0,
        "endtime2": 0,
        "startoff": "10",
        "endoff": "30",
        "startoff2": 0,
        "endoff2": 0,
        "offs": 0,
        "outtext1": "",
        "outtext2": "",
        "timeout": 1440,
        "sun": true,
        "mon": true,
        "tue": true,
        "wed": true,
        "thu": true,
        "fri": true,
        "sat": true,
        "jan": true,
        "feb": true,
        "mar": true,
        "apr": true,
        "may": true,
        "jun": true,
        "jul": true,
        "aug": true,
        "sep": true,
        "oct": true,
        "nov": true,
        "dec": true,
        "day1": 0,
        "month1": 0,
        "day2": 0,
        "month2": 0,
        "day3": 0,
        "month3": 0,
        "day4": 0,
        "month4": 0,
        "day5": 0,
        "month5": 0,
        "day6": 0,
        "month6": 0,
        "day7": 0,
        "month7": 0,
        "day8": 0,
        "month8": 0,
        "day9": 0,
        "month9": 0,
        "day10": 0,
        "month10": 0,
        "day11": 0,
        "month11": 0,
        "day12": 0,
        "month12": 0,
        "d1": 0,
        "w1": 0,
        "d2": 0,
        "w2": 0,
        "d3": 0,
        "w3": 0,
        "d4": 0,
        "w4": 0,
        "d5": 0,
        "w5": 0,
        "d6": 0,
        "w6": 0,
        "xday1": 0,
        "xmonth1": 0,
        "xday2": 0,
        "xmonth2": 0,
        "xday3": 0,
        "xmonth3": 0,
        "xday4": 0,
        "xmonth4": 0,
        "xday5": 0,
        "xmonth5": 0,
        "xday6": 0,
        "xmonth6": 0,
        "xday7": "",
        "xmonth7": "",
        "xday8": "",
        "xmonth8": "",
        "xday9": "",
        "xmonth9": "",
        "xday10": "",
        "xmonth10": "",
        "xday11": "",
        "xmonth11": "",
        "xday12": "",
        "xmonth12": "",
        "xd1": 0,
        "xw1": 0,
        "xd2": 0,
        "xw2": 0,
        "xd3": 0,
        "xw3": 0,
        "xd4": 0,
        "xw4": 0,
        "xd5": 0,
        "xw5": 0,
        "xd6": 0,
        "xw6": 0,
        "suspend": false,
        "random": false,
        "randon1": true,
        "randoff1": true,
        "randon2": false,
        "randoff2": false,
        "repeat": true,
        "atstart": true,
        "odd": false,
        "even": false,
        "x": 160,
        "y": 2040,
        "wires": [
            [],
            [
                "c03176e43f5ed41d"
            ],
            []
        ]
    },
    {
        "id": "dfb1c331fa9d2444",
        "type": "change",
        "z": "49f39a1906f99fca",
        "name": "set msg.topic to \"one\"",
        "rules": [
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "one",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 400,
        "y": 1980,
        "wires": [
            [
                "98fc7fc0599ebc8f"
            ]
        ]
    },
    {
        "id": "c03176e43f5ed41d",
        "type": "change",
        "z": "49f39a1906f99fca",
        "name": "set msg.topic to \"two\"",
        "rules": [
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "two",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 400,
        "y": 2040,
        "wires": [
            [
                "98fc7fc0599ebc8f"
            ]
        ]
    },
    {
        "id": "237d2d06d6d18793",
        "type": "change",
        "z": "49f39a1906f99fca",
        "name": "set msg.topic to \"three\"",
        "rules": [
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "three",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 390,
        "y": 2100,
        "wires": [
            [
                "98fc7fc0599ebc8f"
            ]
        ]
    }
]

hope this might give some ideas,
best regards!

What we want to achieve is that we can switch the light on and off via a time table. In our case during the rush traffic hours so approximately. 6.00 to 10.00 and 15.00 till 20.00. We tried to use the relay 1 output of the Cerbo GX and were hoping that we were able to make a time schedule via the Generator Conditions option. Unfortunately this option is only capable of just one time setting and we need two time settings daily It would also nice if we can remotely change these settings if needed. Do you think below described “Bigtimer” is capable of this?

Yours sincerely

Ed van der Kruijssen

@Jaap
Your local dealership (or any to be honest) would be able to recommend and refer someone from the software integrators. There are contacts on the blog.

1 Like


Ed,

you can archive this externally also with a Tasmota Switch which is a bargain.
You can programm the timers either via the web-frontend of the Tasmota itself, or control it via Node-Red and MQTT.

Best Wishes,
Wilm

Thank you for your reply but I believe the tasmota switch or relay is jot available in 12 volt but only in 230 volt

Our system is entirely 12 volt

Kind regards

Ed

So the lights you need to switch are 12V as well?

I like the Tasmota solution! :+1: Running my christmaslights with this. :wink:

As the request was though to use (or stay within) Victron-Gear I clicked together this little Flow:

The gray Input nodes give some control over the Timers and might be handy during commissioning. Keep in mind: if you restart the cerbo, nodered or deploy within nodered the Timer will default back to automatic mode. If you want to permanently stop them to control the Venus’s relay, simply delete the last connection between the “function OR” node and the “Venus Relay 2” node.

The “Morning Rushhour Timer” turns on at 06:00 and turns off at sunrise (the coordinates are set to the Eiffel Tower in Paris, so please adjust accordingly if you’re somwhere else than in Paris :rofl: )

The “Evening Rushhour Timer” turns on at sunset and turns off at 22:00 (these coordinates are set to the Eiffel Tower as well)

Disclaimer:
This code is provided “as is” and without any warranties, express or implied. I do not accept any responsibility or liability for any damage, loss, or other issues arising from the use, misuse, or reliance on this code. Use it at your own risk.

I don’t know for example what happens if the sun rises before 6 O’clock or sets after 10PM in your location.

Here is the code in json:

[
    {
        "id": "ad165ab65423ba31",
        "type": "bigtimer",
        "z": "e6f988e8940936fc",
        "outtopic": "morning",
        "outpayload1": "1",
        "outpayload2": "0",
        "name": "Morning Rushhour",
        "comment": "",
        "lat": "48.858513",
        "lon": "2.294483",
        "starttime": "360",
        "endtime": "5003",
        "starttime2": 0,
        "endtime2": 0,
        "startoff": "0",
        "endoff": "0",
        "startoff2": 0,
        "endoff2": 0,
        "offs": 0,
        "outtext1": "",
        "outtext2": "",
        "timeout": 1440,
        "sun": true,
        "mon": true,
        "tue": true,
        "wed": true,
        "thu": true,
        "fri": true,
        "sat": true,
        "jan": true,
        "feb": true,
        "mar": true,
        "apr": true,
        "may": true,
        "jun": true,
        "jul": true,
        "aug": true,
        "sep": true,
        "oct": true,
        "nov": true,
        "dec": true,
        "day1": 0,
        "month1": 0,
        "day2": 0,
        "month2": 0,
        "day3": 0,
        "month3": 0,
        "day4": 0,
        "month4": 0,
        "day5": 0,
        "month5": 0,
        "day6": 0,
        "month6": 0,
        "day7": 0,
        "month7": 0,
        "day8": 0,
        "month8": 0,
        "day9": 0,
        "month9": 0,
        "day10": 0,
        "month10": 0,
        "day11": 0,
        "month11": 0,
        "day12": 0,
        "month12": 0,
        "d1": 0,
        "w1": 0,
        "d2": 0,
        "w2": 0,
        "d3": 0,
        "w3": 0,
        "d4": 0,
        "w4": 0,
        "d5": 0,
        "w5": 0,
        "d6": 0,
        "w6": 0,
        "xday1": 0,
        "xmonth1": 0,
        "xday2": 0,
        "xmonth2": 0,
        "xday3": 0,
        "xmonth3": 0,
        "xday4": 0,
        "xmonth4": 0,
        "xday5": 0,
        "xmonth5": 0,
        "xday6": 0,
        "xmonth6": 0,
        "xday7": "",
        "xmonth7": "",
        "xday8": "",
        "xmonth8": "",
        "xday9": "",
        "xmonth9": "",
        "xday10": "",
        "xmonth10": "",
        "xday11": "",
        "xmonth11": "",
        "xday12": "",
        "xmonth12": "",
        "xd1": 0,
        "xw1": 0,
        "xd2": 0,
        "xw2": 0,
        "xd3": 0,
        "xw3": 0,
        "xd4": 0,
        "xw4": 0,
        "xd5": 0,
        "xw5": 0,
        "xd6": 0,
        "xw6": 0,
        "suspend": false,
        "random": false,
        "randon1": false,
        "randoff1": false,
        "randon2": false,
        "randoff2": false,
        "repeat": true,
        "atstart": true,
        "odd": false,
        "even": false,
        "x": 530,
        "y": 140,
        "wires": [
            [
                "c0269dca4e1a0941"
            ],
            [],
            []
        ]
    },
    {
        "id": "0b0b40eb3847cf4d",
        "type": "bigtimer",
        "z": "e6f988e8940936fc",
        "outtopic": "evening",
        "outpayload1": "1",
        "outpayload2": "0",
        "name": "Evening Rushhour",
        "comment": "",
        "lat": "48.858513",
        "lon": "2.294483",
        "starttime": "5004",
        "endtime": "1320",
        "starttime2": 0,
        "endtime2": 0,
        "startoff": "0",
        "endoff": "0",
        "startoff2": 0,
        "endoff2": 0,
        "offs": 0,
        "outtext1": "",
        "outtext2": "",
        "timeout": 1440,
        "sun": true,
        "mon": true,
        "tue": true,
        "wed": true,
        "thu": true,
        "fri": true,
        "sat": true,
        "jan": true,
        "feb": true,
        "mar": true,
        "apr": true,
        "may": true,
        "jun": true,
        "jul": true,
        "aug": true,
        "sep": true,
        "oct": true,
        "nov": true,
        "dec": true,
        "day1": 0,
        "month1": 0,
        "day2": 0,
        "month2": 0,
        "day3": 0,
        "month3": 0,
        "day4": 0,
        "month4": 0,
        "day5": 0,
        "month5": 0,
        "day6": 0,
        "month6": 0,
        "day7": 0,
        "month7": 0,
        "day8": 0,
        "month8": 0,
        "day9": 0,
        "month9": 0,
        "day10": 0,
        "month10": 0,
        "day11": 0,
        "month11": 0,
        "day12": 0,
        "month12": 0,
        "d1": 0,
        "w1": 0,
        "d2": 0,
        "w2": 0,
        "d3": 0,
        "w3": 0,
        "d4": 0,
        "w4": 0,
        "d5": 0,
        "w5": 0,
        "d6": 0,
        "w6": 0,
        "xday1": 0,
        "xmonth1": 0,
        "xday2": 0,
        "xmonth2": 0,
        "xday3": 0,
        "xmonth3": 0,
        "xday4": 0,
        "xmonth4": 0,
        "xday5": 0,
        "xmonth5": 0,
        "xday6": 0,
        "xmonth6": 0,
        "xday7": "",
        "xmonth7": "",
        "xday8": "",
        "xmonth8": "",
        "xday9": "",
        "xmonth9": "",
        "xday10": "",
        "xmonth10": "",
        "xday11": "",
        "xmonth11": "",
        "xday12": "",
        "xmonth12": "",
        "xd1": 0,
        "xw1": 0,
        "xd2": 0,
        "xw2": 0,
        "xd3": 0,
        "xw3": 0,
        "xd4": 0,
        "xw4": 0,
        "xd5": 0,
        "xw5": 0,
        "xd6": 0,
        "xw6": 0,
        "suspend": false,
        "random": false,
        "randon1": false,
        "randoff1": false,
        "randon2": false,
        "randoff2": false,
        "repeat": true,
        "atstart": true,
        "odd": false,
        "even": false,
        "x": 530,
        "y": 240,
        "wires": [
            [
                "c0269dca4e1a0941"
            ],
            [],
            []
        ]
    },
    {
        "id": "c0269dca4e1a0941",
        "type": "function",
        "z": "e6f988e8940936fc",
        "name": "function OR",
        "func": "// Save incoming payload based on topic\nif (msg.topic === \"morning\") {\n    context.set(\"morning\", Number(msg.payload));\n} else if (msg.topic === \"evening\") {\n    context.set(\"evening\", Number(msg.payload));\n}\n\n// Get latest values, default to 0\nlet val1 = context.get(\"morning\") || 0;\nlet val2 = context.get(\"evening\") || 0;\n\n// OR logic for numeric values (1 or 0)\nlet result = (val1 === 1 || val2 === 1) ? 1 : 0;\n\nreturn { payload: result };\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 180,
        "wires": [
            [
                "fa9f9e621bc2c379"
            ]
        ]
    },
    {
        "id": "fa9f9e621bc2c379",
        "type": "victron-output-relay",
        "z": "e6f988e8940936fc",
        "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"
            },
            "mode": "both"
        },
        "name": "Venus Relay 2",
        "onlyChanges": false,
        "x": 1000,
        "y": 180,
        "wires": []
    },
    {
        "id": "33c85f48466665b4",
        "type": "inject",
        "z": "e6f988e8940936fc",
        "name": "OFF till next scheduled event",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "off",
        "payloadType": "str",
        "x": 240,
        "y": 120,
        "wires": [
            [
                "0b0b40eb3847cf4d",
                "ad165ab65423ba31"
            ]
        ]
    },
    {
        "id": "3222e335fe6dd817",
        "type": "inject",
        "z": "e6f988e8940936fc",
        "name": "ON till next scheduled event",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "on",
        "payloadType": "str",
        "x": 240,
        "y": 160,
        "wires": [
            [
                "ad165ab65423ba31",
                "0b0b40eb3847cf4d"
            ]
        ]
    },
    {
        "id": "2b45ce86ee8bbfd1",
        "type": "inject",
        "z": "e6f988e8940936fc",
        "name": "Automatic-Mode (default)",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "auto",
        "payloadType": "str",
        "x": 230,
        "y": 220,
        "wires": [
            [
                "ad165ab65423ba31",
                "0b0b40eb3847cf4d"
            ]
        ]
    },
    {
        "id": "5b48c19547e4b611",
        "type": "inject",
        "z": "e6f988e8940936fc",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "stop",
        "payloadType": "str",
        "x": 170,
        "y": 260,
        "wires": [
            [
                "ad165ab65423ba31",
                "0b0b40eb3847cf4d"
            ]
        ]
    }
]

we use a CERBO CX, the conditions in the general settings, periodic run only comes with one slot to switch them on and off. That’s not enough for our installation.
We want to run various schedules.

What about my suggestion above with the two Timers for morning rush hour and evening rush hour? This should satisfiy your request of turning on the lights (via Cebo’s relay) twice a day?

Best Regards!

We will explore your suggestion.
We have a timer now but cannot control it remotely.
Do you have any specific timers in mind?
Our system is 12v.

Hi

I copied and managed to install you workflow. I deployed it on relay 1 instead of relay 2. Because that’s the one that is connected to our lights. Somehow it doesn’t function yet. Is there something that I do wrong in my setup or do I need to activate something in the Cerbo as well?

Kind regards

Ed

Hi!

OK, great to hear! The only thing I can think of might be the setting on the Cerbo itself.
Cerbo needs to be set up to know how we want to use Relay 1.
So you need to access your Cerbo (Touchscreen, VRM, VictronConnect, via WebBrowser) see here: victronenergy.com accessing-the-gx-device
Once on the Cerbo, navigate from Settings Menu → Relay → Function (Relay 1/2) → set it to “Manual”
Thats the way in “classic UI”:




Or in Gui V2:
Settings Menu → Integrations → Relays → Function (Relay 1)




Back in NodeRed, if you press the Inject Node “ON till next scheduled event” or “OFF till next scheduled event”

you should hear the relay click and the state of the Relay should also be changed on the GUI:

Let us know, if this helped!

Best Regards!

Hi

Once we activated Signal K in the menu it works perfectly! Thanks a lot being so helpful!

Kind Regards

Ed

Hm interessting! :thinking:
I never switched Signal K on on my device it seems to be ment to run on a central hub in a boat…
Anyway, great to hear, that it is running!

Question is now, if the title of this thread should/could be changed to something like:
NodeRed Flow wanted to control Cerbo’s Relay based on Timer and Sunset

I don’t know if you can do that as the starter of the thread of if some of the community administrators have to do that?

Best Regards!