# Monitoring my Generator and Energy Supply - make the setup more fault tolerant

**URL:** https://discourse.nodered.org/t/monitoring-my-generator-and-energy-supply-make-the-setup-more-fault-tolerant/100732
**Category:** General
**Created:** [8 April 2026 04:33 UTC](https://discourse.nodered.org/t/monitoring-my-generator-and-energy-supply-make-the-setup-more-fault-tolerant/100732 "2026-04-08T04:33:03Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ebnerjoh](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@ebnerjoh](https://discourse.nodered.org/u/ebnerjoh)
#### Post date: [8 April 2026 04:33 UTC](https://discourse.nodered.org/t/monitoring-my-generator-and-energy-supply-make-the-setup-more-fault-tolerant/100732/1 "2026-04-08T04:33:03Z")

</div>

Hello,

I have a very special project for a volunteer firedepartment.

We have a Generator which automatically detects a Power Outage from the Power Company, starts up, and supports the fire department again with power.

As it has no options for montoring I have installed a Shelly EM3, with each of the meters I monitor one line of the main power supply (230 Voltage), the output from the switchbox to the building (230 Volt) and one line of the Generator (Ampere), as I want to monitor if it is delivering power, not only running in stand by).

In addition I am also sending an message, if the power outage lasts longer as 90 minutes.

So far everything works good except that I want to prevent sending out messages for outages shorter then 30 seconds.  
Every change of power below 30 seconds should be muted.

What is the best option to achive this?

Best Regards,  
Johannes

```auto
[
    {
        "id": "32434cb40916f61f",
        "type": "tab",
        "label": "Notstrom Test 2",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "1b46324bca46efa8",
        "type": "rbe",
        "z": "32434cb40916f61f",
        "name": "",
        "func": "rbei",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 790,
        "y": 500,
        "wires": [
            [
                "b29baee6080a2694"
            ]
        ]
    },
    {
        "id": "abcd2cd1ebfb0b79",
        "type": "http request",
        "z": "32434cb40916f61f",
        "name": "",
        "method": "use",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 1990,
        "y": 680,
        "wires": [
            []
        ]
    },
    {
        "id": "b29baee6080a2694",
        "type": "switch",
        "z": "32434cb40916f61f",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "false"
            },
            {
                "t": "true"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 970,
        "y": 500,
        "wires": [
            [
                "7dac6f3c72f8a798",
                "0e170474779e955c"
            ],
            [
                "c68c1223242136fd",
                "ed9acfdd8d945360"
            ]
        ]
    },
    {
        "id": "ed9acfdd8d945360",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "Stromversorgung KELAG Rüsthaus wiederhergestellt.",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "Stromversorgung KELAG Rüsthaus wiederhergestellt.",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1160,
        "y": 500,
        "wires": [
            [
                "d273de0f27a5c2ad"
            ]
        ]
    },
    {
        "id": "0e170474779e955c",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "Stromversorgung KELAG Rüsthaus ausgefallen",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "Stromversorgung KELAG Rüsthaus ausgefallen",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1160,
        "y": 460,
        "wires": [
            [
                "043677186cdb10c5"
            ]
        ]
    },
    {
        "id": "043677186cdb10c5",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "method",
                "pt": "msg",
                "to": "post",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "url",
                "pt": "msg",
                "to": "https://api.blaulichtsms.net/blaulicht/api/alarm/v1/trigger",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "headers.content-type",
                "pt": "msg",
                "to": "application/json",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"username\":\"xyz\",\"password\":\"xyz\",\"customerId\":\"xyz\",\"hideTriggerDetails\":false,\"alarmText\":\"KELAG Netz schon 90 Minuten ausgefallen - Ausschuss soll sich im Rüsthaus einfinden!\",\"type\":\"alarm\",\"needsAcknowledgement\":false,\"duration\":60,\"recipientConfirmation\":false,\"groupCodes\":[\"G3\"]}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1340,
        "y": 460,
        "wires": [
            [
                "abcd2cd1ebfb0b79",
                "575636e6070a3bdc"
            ]
        ]
    },
    {
        "id": "d273de0f27a5c2ad",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "method",
                "pt": "msg",
                "to": "post",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "url",
                "pt": "msg",
                "to": "https://api.blaulichtsms.net/blaulicht/api/alarm/v1/trigger",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "headers.content-type",
                "pt": "msg",
                "to": "application/json",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"username\":\"xyz\",\"password\":\"xyz\",\"customerId\":\"xyz\",\"hideTriggerDetails\":false,\"alarmText\":\"KELAG Netz schon 90 Minuten ausgefallen - Ausschuss soll sich im Rüsthaus einfinden!\",\"type\":\"alarm\",\"needsAcknowledgement\":false,\"duration\":60,\"recipientConfirmation\":false,\"groupCodes\":[\"G3\"]}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1340,
        "y": 500,
        "wires": [
            [
                "abcd2cd1ebfb0b79",
                "c352524fc6e91e45"
            ]
        ]
    },
    {
        "id": "7dac6f3c72f8a798",
        "type": "trigger",
        "z": "32434cb40916f61f",
        "name": "",
        "op1": "",
        "op2": "1",
        "op1type": "nul",
        "op2type": "str",
        "duration": "90",
        "extend": true,
        "overrideDelay": false,
        "units": "min",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 1150,
        "y": 340,
        "wires": [
            [
                "652ee03e47d1e87a"
            ]
        ]
    },
    {
        "id": "c68c1223242136fd",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "reset",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1160,
        "y": 420,
        "wires": [
            [
                "7dac6f3c72f8a798"
            ]
        ]
    },
    {
        "id": "652ee03e47d1e87a",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "KELAG Netz schon 90 Minuten ausgefallen - Ausschuss soll sich im Rüsthaus einfinden!",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "Generator",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1340,
        "y": 340,
        "wires": [
            [
                "7093fbb40ab0c7a6"
            ]
        ]
    },
    {
        "id": "7093fbb40ab0c7a6",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "method",
                "pt": "msg",
                "to": "post",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "url",
                "pt": "msg",
                "to": "https://api.blaulichtsms.net/blaulicht/api/alarm/v1/trigger",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "headers.content-type",
                "pt": "msg",
                "to": "application/json",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"username\":\"xyz\",\"password\":\"xyz\",\"customerId\":\"xyz\",\"hideTriggerDetails\":false,\"alarmText\":\"KELAG Netz schon 90 Minuten ausgefallen - Ausschuss soll sich im Rüsthaus einfinden!\",\"type\":\"alarm\",\"needsAcknowledgement\":false,\"duration\":60,\"recipientConfirmation\":false,\"groupCodes\":[\"G3\"]}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1580,
        "y": 340,
        "wires": [
            [
                "abcd2cd1ebfb0b79"
            ]
        ]
    },
    {
        "id": "628c3112377d22a7",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "true in (payload.em0.b_voltage >= 150)",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 630,
        "y": 580,
        "wires": [
            [
                "1b46324bca46efa8"
            ]
        ]
    },
    {
        "id": "5ee1a199cf0bf775",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "true in (payload.em0.c_current > 0.05)",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 630,
        "y": 640,
        "wires": [
            [
                "31a13eaa46e02c58"
            ]
        ]
    },
    {
        "id": "0847ce4a34b691d3",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "true in (payload.em0.a_voltage >= 220)",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 630,
        "y": 700,
        "wires": [
            [
                "b1082ba4597f5b25"
            ]
        ]
    },
    {
        "id": "b1082ba4597f5b25",
        "type": "rbe",
        "z": "32434cb40916f61f",
        "name": "",
        "func": "rbei",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 790,
        "y": 800,
        "wires": [
            [
                "dff736692f374b4a"
            ]
        ]
    },
    {
        "id": "dff736692f374b4a",
        "type": "switch",
        "z": "32434cb40916f61f",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "true"
            },
            {
                "t": "false"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 970,
        "y": 800,
        "wires": [
            [
                "2287e3abb6d9b49a"
            ],
            [
                "848ba7271a56efd5"
            ]
        ]
    },
    {
        "id": "848ba7271a56efd5",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "Notstromgenerator Rüsthaus ausgeschalten",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "Notstromgenerator Rüsthaus ausgeschalten",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1180,
        "y": 820,
        "wires": [
            [
                "68485de88bdbe032"
            ]
        ]
    },
    {
        "id": "2287e3abb6d9b49a",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "Notstromgenerator Rüsthaus gestartet",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "Notstromgenerator Rüsthaus gestartet",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1180,
        "y": 780,
        "wires": [
            [
                "3af0f02a26db474a"
            ]
        ]
    },
    {
        "id": "3af0f02a26db474a",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "method",
                "pt": "msg",
                "to": "post",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "url",
                "pt": "msg",
                "to": "https://api.blaulichtsms.net/blaulicht/api/alarm/v1/trigger",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "headers.content-type",
                "pt": "msg",
                "to": "application/json",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"username\":\"xyz\",\"password\":\"xyz\",\"customerId\":\"xyz\",\"hideTriggerDetails\":false,\"alarmText\":\"KELAG Netz schon 90 Minuten ausgefallen - Ausschuss soll sich im Rüsthaus einfinden!\",\"type\":\"alarm\",\"needsAcknowledgement\":false,\"duration\":60,\"recipientConfirmation\":false,\"groupCodes\":[\"G3\"]}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1380,
        "y": 780,
        "wires": [
            [
                "95dee9fb0e3a3bf3",
                "abcd2cd1ebfb0b79"
            ]
        ]
    },
    {
        "id": "68485de88bdbe032",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "method",
                "pt": "msg",
                "to": "post",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "url",
                "pt": "msg",
                "to": "https://api.blaulichtsms.net/blaulicht/api/alarm/v1/trigger",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "headers.content-type",
                "pt": "msg",
                "to": "application/json",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"username\":\"ag-ff-metnitz\",\"password\":\"fw4)2jd!Br43\",\"customerId\":\"105050\",\"hideTriggerDetails\":false,\"alarmText\":\"Notstromgenerator Rüsthaus ausgeschalten\",\"type\":\"info\",\"needsAcknowledgement\":false,\"duration\":60,\"recipientConfirmation\":false,\"groupCodes\":[\"G3\"]}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1380,
        "y": 820,
        "wires": [
            [
                "6a16e9411ba57596",
                "abcd2cd1ebfb0b79"
            ]
        ]
    },
    {
        "id": "31a13eaa46e02c58",
        "type": "rbe",
        "z": "32434cb40916f61f",
        "name": "",
        "func": "rbei",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 790,
        "y": 640,
        "wires": [
            [
                "9a81b5a953b974f5"
            ]
        ]
    },
    {
        "id": "9a81b5a953b974f5",
        "type": "switch",
        "z": "32434cb40916f61f",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "false"
            },
            {
                "t": "true"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 970,
        "y": 640,
        "wires": [
            [
                "3463b53f90866979"
            ],
            [
                "1d233924f73fa789",
                "6e06f2ec1fad77ee"
            ]
        ]
    },
    {
        "id": "3463b53f90866979",
        "type": "trigger",
        "z": "32434cb40916f61f",
        "name": "",
        "op1": "",
        "op2": "1",
        "op1type": "nul",
        "op2type": "str",
        "duration": "10",
        "extend": true,
        "overrideDelay": false,
        "units": "min",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 1190,
        "y": 600,
        "wires": [
            [
                "d1c3616add1da5fd"
            ]
        ]
    },
    {
        "id": "1d233924f73fa789",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "reset",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1200,
        "y": 640,
        "wires": [
            [
                "3463b53f90866979"
            ]
        ]
    },
    {
        "id": "d1c3616add1da5fd",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "Stromausfall, aber Notstromversorgung läuft nicht!",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "Stromausfall, aber Notstromversorgung läuft nicht!",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1380,
        "y": 600,
        "wires": [
            [
                "ab7babeaf56a9a82"
            ]
        ]
    },
    {
        "id": "ab7babeaf56a9a82",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "method",
                "pt": "msg",
                "to": "post",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "url",
                "pt": "msg",
                "to": "https://api.blaulichtsms.net/blaulicht/api/alarm/v1/trigger",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "headers.content-type",
                "pt": "msg",
                "to": "application/json",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"username\":\"xyz\",\"password\":\"xyz\",\"customerId\":\"xyz\",\"hideTriggerDetails\":false,\"alarmText\":\"KELAG Netz schon 90 Minuten ausgefallen - Ausschuss soll sich im Rüsthaus einfinden!\",\"type\":\"alarm\",\"needsAcknowledgement\":false,\"duration\":60,\"recipientConfirmation\":false,\"groupCodes\":[\"G3\"]}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1580,
        "y": 600,
        "wires": [
            [
                "abcd2cd1ebfb0b79",
                "2d115ea9838cd2da"
            ]
        ]
    },
    {
        "id": "6e06f2ec1fad77ee",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "Rüsthaus wird mit Strom versorgt",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "Rüsthaus wird mit Strom versorgt",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1380,
        "y": 680,
        "wires": [
            [
                "814e975d9a529d58"
            ]
        ]
    },
    {
        "id": "814e975d9a529d58",
        "type": "change",
        "z": "32434cb40916f61f",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "method",
                "pt": "msg",
                "to": "post",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "url",
                "pt": "msg",
                "to": "https://api.blaulichtsms.net/blaulicht/api/alarm/v1/trigger",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "headers.content-type",
                "pt": "msg",
                "to": "application/json",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"username\":\"xyz\",\"password\":\"xyz\",\"customerId\":\"xyz\",\"hideTriggerDetails\":false,\"alarmText\":\"KELAG Netz schon 90 Minuten ausgefallen - Ausschuss soll sich im Rüsthaus einfinden!\",\"type\":\"alarm\",\"needsAcknowledgement\":false,\"duration\":60,\"recipientConfirmation\":false,\"groupCodes\":[\"G3\"]}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1580,
        "y": 680,
        "wires": [
            [
                "db8f19ce61619f7c",
                "c54543f6be81664f"
            ]
        ]
    },
    {
        "id": "c352524fc6e91e45",
        "type": "debug",
        "z": "32434cb40916f61f",
        "name": "KELAG Strom da",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 2010,
        "y": 540,
        "wires": []
    },
    {
        "id": "575636e6070a3bdc",
        "type": "debug",
        "z": "32434cb40916f61f",
        "name": "KELAG Strom weg",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 2010,
        "y": 500,
        "wires": []
    },
    {
        "id": "2d115ea9838cd2da",
        "type": "debug",
        "z": "32434cb40916f61f",
        "name": "RÜSTHAUS Strom weg",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 2030,
        "y": 600,
        "wires": []
    },
    {
        "id": "db8f19ce61619f7c",
        "type": "debug",
        "z": "32434cb40916f61f",
        "name": "RÜSTHAUS Strom da",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 2020,
        "y": 740,
        "wires": []
    },
    {
        "id": "95dee9fb0e3a3bf3",
        "type": "debug",
        "z": "32434cb40916f61f",
        "name": "NOTSTROM Strom da",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 2020,
        "y": 780,
        "wires": []
    },
    {
        "id": "6a16e9411ba57596",
        "type": "debug",
        "z": "32434cb40916f61f",
        "name": "NOTSTROM Strom weg",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 2030,
        "y": 840,
        "wires": []
    },
    {
        "id": "c54543f6be81664f",
        "type": "delay",
        "z": "32434cb40916f61f",
        "name": "",
        "pauseType": "delay",
        "timeout": "2",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 1760,
        "y": 680,
        "wires": [
            [
                "abcd2cd1ebfb0b79"
            ]
        ]
    },
    {
        "id": "97f2e0ea77222df1",
        "type": "inject",
        "z": "32434cb40916f61f",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 260,
        "y": 640,
        "wires": [
            [
                "692131982627038e"
            ]
        ]
    },
    {
        "id": "692131982627038e",
        "type": "shelly-gen2",
        "z": "32434cb40916f61f",
        "hostname": "192.168.0.66",
        "description": "",
        "mode": "polling",
        "verbose": false,
        "server": "",
        "outputmode": "event",
        "uploadretryinterval": 5000,
        "pollinginterval": "15000",
        "pollstatus": true,
        "getstatusoncommand": true,
        "devicetype": "SPEM-003CEBEU",
        "devicetypemustmatchexactly": true,
        "captureblutooth": false,
        "outputs": 1,
        "x": 430,
        "y": 640,
        "wires": [
            [
                "0847ce4a34b691d3",
                "5ee1a199cf0bf775",
                "628c3112377d22a7"
            ]
        ]
    },
    {
        "id": "149be9e80e2dfac0",
        "type": "global-config",
        "env": [],
        "modules": {
            "node-red-contrib-shelly": "11.8.0"
        }
    }
]

```

[Edited by moderator, removed the `[flows.json|attachment](upload://yZYoK4NmSZ4QT2EEMSW547xn2ek.json) (28.0 KB)` at end of flow JSON]

---

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [8 April 2026 05:53 UTC](https://discourse.nodered.org/t/monitoring-my-generator-and-energy-supply-make-the-setup-more-fault-tolerant/100732/2 "2026-04-08T05:53:56Z")

</div>

Something is wrong with your listing/format as it fails to **Import** for me.

---

<div class="post-metadata">

### Author: ![Tany](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tany](https://discourse.nodered.org/u/Tany)
#### Post date: [8 April 2026 06:13 UTC](https://discourse.nodered.org/t/monitoring-my-generator-and-energy-supply-make-the-setup-more-fault-tolerant/100732/3 "2026-04-08T06:13:39Z")

</div>

> [@ebnerjoh](#):
>
> Shelly EM3

Hi,  
I work with ZigBee iso Shelly, and a 3 step flow :

1. ZB devices continuously publish changes of properties, which are stored in a persistent global. As wel the timestamp of receipt.
2. a function runs every x secs. (or is triggered immed by 1.)

- sets/resets a timestamp for eg VoltageDrop
- track LastFetchVoltageDrop older then 30 secs, and in case of relevant alert -\> payload to an "Alert flow" Info, Warning or Alert.

1. In the Alert-flow you can handle like :

- 1 time transmit
- transmit requiring a respond...

Cheers

---

<div class="post-metadata">

### Author: ![ebnerjoh](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@ebnerjoh](https://discourse.nodered.org/u/ebnerjoh)
#### Post date: [8 April 2026 06:28 UTC](https://discourse.nodered.org/t/monitoring-my-generator-and-energy-supply-make-the-setup-more-fault-tolerant/100732/4 "2026-04-08T06:28:29Z")

</div>

Yes, it seems that the uploaded file was embedded in the code section. a Moderator has already moved it out.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [9 April 2026 07:47 UTC](https://discourse.nodered.org/t/monitoring-my-generator-and-energy-supply-make-the-setup-more-fault-tolerant/100732/5 "2026-04-09T07:47:27Z")

</div>

> [@ebnerjoh](#):
>
> Every change of power below 30 seconds should be muted.

You can use the classic watchdog flow, using a Trigger node configured like this

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/a/fab0745bef2b14166a007687a1a65c3ed9bb53e7.png)

Send it a message every time that there is _no_ outage, at least once every 30 seconds. If no messages arrive for 30 seconds then it will send the notification message. Presumably you are monitoring the power at least that often so that should not be a problem.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [8 July 2026 07:48 UTC](https://discourse.nodered.org/t/monitoring-my-generator-and-energy-supply-make-the-setup-more-fault-tolerant/100732/6 "2026-07-08T07:48:05Z")

</div>

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