Node red unresponsive // one specific flow

Hello,

I've started using node red as an home assistant add on a couple of months ago, and all went fine for some time. Then began the trouble of an unresponsive node red and failing automations. After a lot of hassle. I've settled for node red on a separate rpi, running the home assistant automations.

This runs fine till i import one of my older flows into node red. If i do node red starts slowing down directly. Good thing is that i can pinpoint my problem now, but how can i check what my problem could be? I need this flow to get my heating working properly so...

Any advice would be welcome.

Can someone tell me how to share a flow on this forum?

All the best!

Adam

can you show us this flow?

How to export...

  1. Select the nodes in the flow to export
  2. Press CTRL-E
  3. Press copy to clipboard

How to (correctly) paste code/flow into a reply

  1. Press the </> Code button on the forum toolbar (or press CTRL-E)
  2. Paste your exported flow from the cliboard to replace the inside part that says type or paste code here

Thanks Steve,

I'm a bit further and found the problem in my flow. One big timer node keeps sending multiple messages every second. i think this floods the system.

Strange thing is i have this node indifferent flows working without the messaging problem.
Attached a screenshot of the flow when triggered and an the piece of the problematic flow.

[
    {
        "id": "765c729a58cbcddc",
        "type": "tab",
        "label": "Flow 2",
        "disabled": true,
        "info": "",
        "env": []
    },
    {
        "id": "49d9a1bcc7f6a164",
        "type": "comment",
        "z": "765c729a58cbcddc",
        "name": "day / night badkamer",
        "info": "",
        "x": 1000,
        "y": 580,
        "wires": []
    },
    {
        "id": "716f7eb5647e3704",
        "type": "bigtimer",
        "z": "765c729a58cbcddc",
        "outtopic": "",
        "outpayload1": "on",
        "outpayload2": "off",
        "name": "07:00 - 08:30  weekday oct - mar",
        "comment": "",
        "lat": 0,
        "lon": 0,
        "starttime": "420",
        "endtime": "510",
        "starttime2": 0,
        "endtime2": 0,
        "startoff": 0,
        "endoff": 0,
        "startoff2": 0,
        "endoff2": 0,
        "offs": 0,
        "outtext1": "on",
        "outtext2": "off",
        "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": false,
        "jun": false,
        "jul": false,
        "aug": false,
        "sep": false,
        "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": 0,
        "xmonth7": 0,
        "xday8": 0,
        "xmonth8": 0,
        "xday9": 0,
        "xmonth9": 0,
        "xday10": 0,
        "xmonth10": 0,
        "xday11": 0,
        "xmonth11": 0,
        "xday12": 0,
        "xmonth12": 0,
        "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": false,
        "atstart": true,
        "odd": false,
        "even": false,
        "x": 1040,
        "y": 500,
        "wires": [
            [],
            [
                "388175a0a03ae312",
                "4cda956f14b8a408"
            ],
            []
        ]
    },
    {
        "id": "2a3ba5668310ac08",
        "type": "change",
        "z": "765c729a58cbcddc",
        "name": "stop",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "stop",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 690,
        "y": 540,
        "wires": [
            [
                "716f7eb5647e3704"
            ]
        ]
    },
    {
        "id": "23b7529625e4c54e",
        "type": "switch",
        "z": "765c729a58cbcddc",
        "name": "on / off",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "1",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "0",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 1520,
        "y": 500,
        "wires": [
            [
                "8f408aab7a004bb0"
            ],
            [
                "a29db957b33dac1e"
            ]
        ]
    },
    {
        "id": "19b780a5845f401d",
        "type": "link out",
        "z": "765c729a58cbcddc",
        "name": "link out 85",
        "mode": "link",
        "links": [
            "e6b4ca66b7f64b90"
        ],
        "x": 1855,
        "y": 500,
        "wires": []
    },
    {
        "id": "57ed144968b14567",
        "type": "link in",
        "z": "765c729a58cbcddc",
        "name": "link in 21",
        "links": [
            "6f79d17e7c73027f"
        ],
        "x": 575,
        "y": 500,
        "wires": [
            [
                "c2251c0e74891e7a"
            ]
        ]
    },
    {
        "id": "acae513561dac9e0",
        "type": "link in",
        "z": "765c729a58cbcddc",
        "name": "link in 22",
        "links": [
            "43e1bd983e0791fc",
            "bce1a0791627b555",
            "50d1f3df5b935b6c"
        ],
        "x": 575,
        "y": 540,
        "wires": [
            [
                "2a3ba5668310ac08"
            ]
        ]
    },
    {
        "id": "6e9629403f9516ce",
        "type": "comment",
        "z": "765c729a58cbcddc",
        "name": "van 7u tot 8u30 tijdens week",
        "info": "",
        "x": 1200,
        "y": 360,
        "wires": []
    },
    {
        "id": "4550d97acaaaa532",
        "type": "inject",
        "z": "765c729a58cbcddc",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "auto",
        "payloadType": "str",
        "x": 690,
        "y": 460,
        "wires": [
            [
                "716f7eb5647e3704"
            ]
        ]
    },
    {
        "id": "7872cc919c3905f9",
        "type": "inject",
        "z": "765c729a58cbcddc",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "stop",
        "payloadType": "str",
        "x": 690,
        "y": 420,
        "wires": [
            [
                "716f7eb5647e3704"
            ]
        ]
    },
    {
        "id": "c2251c0e74891e7a",
        "type": "change",
        "z": "765c729a58cbcddc",
        "name": "auto",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "auto",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 690,
        "y": 500,
        "wires": [
            [
                "716f7eb5647e3704"
            ]
        ]
    },
    {
        "id": "9edaa0f5652d48cb",
        "type": "inject",
        "z": "765c729a58cbcddc",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "timer 10",
        "payloadType": "str",
        "x": 680,
        "y": 620,
        "wires": [
            [
                "85952535a0675c96"
            ]
        ]
    },
    {
        "id": "fa66dd39eda121dc",
        "type": "change",
        "z": "765c729a58cbcddc",
        "name": "timer 10 /5400",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "timer 10",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 660,
        "y": 580,
        "wires": [
            [
                "85952535a0675c96"
            ]
        ]
    },
    {
        "id": "5b323261ab35a883",
        "type": "link in",
        "z": "765c729a58cbcddc",
        "name": "link in 23",
        "links": [
            "e7cbf9482ef5aa76"
        ],
        "x": 545,
        "y": 580,
        "wires": [
            [
                "fa66dd39eda121dc"
            ]
        ]
    },
    {
        "id": "d7885cd52eb2cc78",
        "type": "comment",
        "z": "765c729a58cbcddc",
        "name": "Nazien state change = deur open -> stop / manueel timer = raam open + verwarmen / raam toe = auto dus timer override",
        "info": "",
        "x": 470,
        "y": 340,
        "wires": []
    },
    {
        "id": "5fd007e3c38fe2ea",
        "type": "comment",
        "z": "765c729a58cbcddc",
        "name": "Hoe badkamer bigtimer overrule programmeren?",
        "info": "",
        "x": 600,
        "y": 820,
        "wires": []
    },
    {
        "id": "85952535a0675c96",
        "type": "bigtimer",
        "z": "765c729a58cbcddc",
        "outtopic": "control",
        "outpayload1": "close",
        "outpayload2": "open",
        "name": "altijd OFF / enkel timer",
        "comment": "",
        "lat": 0,
        "lon": 0,
        "starttime": "0",
        "endtime": "0",
        "starttime2": 0,
        "endtime2": 0,
        "startoff": 0,
        "endoff": 0,
        "startoff2": 0,
        "endoff2": 0,
        "offs": 0,
        "outtext1": "close",
        "outtext2": "open",
        "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": false,
        "jun": false,
        "jul": false,
        "aug": false,
        "sep": false,
        "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": 0,
        "xmonth7": 0,
        "xday8": 0,
        "xmonth8": 0,
        "xday9": 0,
        "xmonth9": 0,
        "xday10": 0,
        "xmonth10": 0,
        "xday11": 0,
        "xmonth11": 0,
        "xday12": 0,
        "xmonth12": 0,
        "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": false,
        "atstart": true,
        "odd": false,
        "even": false,
        "x": 1000,
        "y": 640,
        "wires": [
            [
                "388175a0a03ae312"
            ],
            [
                "fef64d90dae57b16",
                "9a7676e0c4ba90ab"
            ],
            []
        ]
    },
    {
        "id": "388175a0a03ae312",
        "type": "gate",
        "z": "765c729a58cbcddc",
        "name": "",
        "controlTopic": "control",
        "defaultState": "open",
        "openCmd": "open",
        "closeCmd": "close",
        "toggleCmd": "toggle",
        "defaultCmd": "default",
        "statusCmd": "status",
        "persist": false,
        "storeName": "memory",
        "x": 1350,
        "y": 500,
        "wires": [
            [
                "23b7529625e4c54e",
                "d551f58175e13126"
            ]
        ]
    },
    {
        "id": "d325f62daf4c2651",
        "type": "change",
        "z": "765c729a58cbcddc",
        "name": "stop",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "stop",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1170,
        "y": 900,
        "wires": [
            [
                "85952535a0675c96"
            ]
        ]
    },
    {
        "id": "fef64d90dae57b16",
        "type": "api-current-state",
        "z": "765c729a58cbcddc",
        "name": "Schuif badk 10'",
        "server": "43edf570.794d9c",
        "version": 3,
        "outputs": 2,
        "halt_if": "open",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "sensor.beneden_schuifraam",
        "state_type": "str",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": "5",
        "forType": "num",
        "forUnits": "seconds",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 1380,
        "y": 760,
        "wires": [
            [
                "d325f62daf4c2651"
            ],
            []
        ]
    },
    {
        "id": "a29db957b33dac1e",
        "type": "api-current-state",
        "z": "765c729a58cbcddc",
        "name": "bad.off",
        "server": "43edf570.794d9c",
        "version": 3,
        "outputs": 1,
        "halt_if": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "input_number.bad_off",
        "state_type": "str",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 1700,
        "y": 560,
        "wires": [
            [
                "19b780a5845f401d"
            ]
        ]
    },
    {
        "id": "8f408aab7a004bb0",
        "type": "api-current-state",
        "z": "765c729a58cbcddc",
        "name": "bad.heat",
        "server": "43edf570.794d9c",
        "version": 3,
        "outputs": 1,
        "halt_if": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "input_number.bad_heat",
        "state_type": "str",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 1700,
        "y": 480,
        "wires": [
            [
                "19b780a5845f401d"
            ]
        ]
    },
    {
        "id": "d551f58175e13126",
        "type": "debug",
        "z": "765c729a58cbcddc",
        "name": "debug 106",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1730,
        "y": 640,
        "wires": []
    },
    {
        "id": "5705ea0b5aa1bdee",
        "type": "comment",
        "z": "765c729a58cbcddc",
        "name": "timer 2 iedere minuut = probleem verstoren standaart timer!",
        "info": "",
        "x": 1520,
        "y": 700,
        "wires": []
    },
    {
        "id": "9a7676e0c4ba90ab",
        "type": "debug",
        "z": "765c729a58cbcddc",
        "name": "debug 107",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1390,
        "y": 660,
        "wires": []
    },
    {
        "id": "4cda956f14b8a408",
        "type": "debug",
        "z": "765c729a58cbcddc",
        "name": "debug 108",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1350,
        "y": 420,
        "wires": []
    },
    {
        "id": "43edf570.794d9c",
        "type": "server",
        "name": "Home Assistant",
        "version": 5,
        "addon": false,
        "rejectUnauthorizedCerts": true,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true,
        "cacheJson": true,
        "heartbeat": false,
        "heartbeatInterval": "30",
        "areaSelector": "friendlyName",
        "deviceSelector": "friendlyName",
        "entitySelector": "friendlyName",
        "statusSeparator": "at: ",
        "statusYear": "hidden",
        "statusMonth": "short",
        "statusDay": "numeric",
        "statusHourCycle": "h23",
        "statusTimeFormat": "h:m",
        "enableGlobalContextStore": true
    }
]

https://www.dropbox.com/s/slnm6d1uoasq2gb/Screenshot%202022-10-21%20at%2017.51.25.png?dl=0

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.