Auto off problem

Bonjour à tous

j'ai ce code qui me permet de d'activée le relai n°2 de la carte denkovi

I have this code that allows me to activate relay No. 2 on the map
https://denkovi.com/daenetip2-v2-snmp-ethernet-controller-with-24-digital-analog-io

mai voila mon problème est que je n'arrive pas a réalisée un AUTO OFF après 2 secondes

this may be my problem is that I can not achieve ** AUTO OFF ** after 2 seconds

code:
[{"id":"e3b16ff2.eeb65","type":"function","z":"3705ff16.53319","name":"","func":"flow.set("tmpVar", 0);\nvar password = flow.get("password");\nvar ip = flow.get("ip");\nvar port = flow.get("port");\nif(password === "" || ip === "" || port === "")\n msg.payload = "Please check fields!";\nelse \n msg.payload = "Connecting...";\nflow.set("host", ip + ":" + port);\nmsg.host = flow.get("host");\nmsg.community = flow.get("password");\nmsg.oid = "1.3.6.1.4.1.42505.9.2.1.1.0";\nreturn msg;","outputs":1,"noerr":0,"x":504.58338928222656,"y":270.25000762939453,"wires":[["58130c58.f3c444","1cc0ec85.331673"]]},{"id":"bd56479b.866598","type":"ui_button","z":"3705ff16.53319","name":"","group":"d2d6fe5d.5694b","order":5,"width":0,"height":0,"passthru":false,"label":"Refresh","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"","x":332.58338928222656,"y":271.25000762939453,"wires":[["e3b16ff2.eeb65"]]},{"id":"1cc0ec85.331673","type":"ui_text","z":"3705ff16.53319","group":"d2d6fe5d.5694b","order":1,"width":0,"height":0,"name":"","label":"STATUS","format":"{{msg.payload}}","layout":"row-spread","x":1055.5833892822266,"y":111.25000762939453,"wires":},{"id":"ca5de4d7.cbe018","type":"ui_text_input","z":"3705ff16.53319","name":"","label":"Community","tooltip":"","group":"d2d6fe5d.5694b","order":4,"width":0,"height":0,"passthru":true,"mode":"password","delay":300,"topic":"","x":352.58338928222656,"y":128.25000762939453,"wires":[["a914a0ff.6a73"]]},{"id":"a914a0ff.6a73","type":"function","z":"3705ff16.53319","name":"","func":"flow.set("password", msg.payload);\nif(msg.payload === "")\n msg.payload = "Please PASS";\nelse \n msg.payload = "";\nreturn msg;","outputs":1,"noerr":0,"x":503.58338928222656,"y":128.25000762939453,"wires":[["1cc0ec85.331673"]]},{"id":"48f94df6.12eeb4","type":"ui_text_input","z":"3705ff16.53319","name":"","label":"IP","group":"d2d6fe5d.5694b","order":2,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"","x":334.58338928222656,"y":179.25000762939453,"wires":[["3b7eb6b0.1bc6ca"]]},{"id":"3b7eb6b0.1bc6ca","type":"function","z":"3705ff16.53319","name":"","func":"flow.set("ip", msg.payload);\nif(msg.payload === "")\n msg.payload = "Please enter valid IP!";\nelse \n msg.payload = "";\nreturn msg;","outputs":1,"noerr":0,"x":505.58338928222656,"y":179.25000762939453,"wires":[["1cc0ec85.331673"]]},{"id":"d5e2674c.f56948","type":"ui_text_input","z":"3705ff16.53319","name":"","label":"Port","group":"d2d6fe5d.5694b","order":3,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"","x":334.58338928222656,"y":228.25000762939453,"wires":[["4f30cb44.09aae4"]]},{"id":"4f30cb44.09aae4","type":"function","z":"3705ff16.53319","name":"","func":"flow.set("port", msg.payload);\nif(msg.payload === "")\n msg.payload = "Please enter valid port!";\nelse \n msg.payload = "";\nreturn msg;","outputs":1,"noerr":0,"x":505.58338928222656,"y":228.25000762939453,"wires":[["1cc0ec85.331673"]]},{"id":"3198ed57.627f52","type":"function","z":"3705ff16.53319","name":"checkResponse","func":"\nif(msg.oid === "1.3.6.1.4.1.42505.9.2.1.1.0"){\nflow.set("updatingNow1", true);\n}\nif(msg.oid === "1.3.6.1.4.1.42505.9.2.2.1.0"){\nflow.set("updatingNow2", true);\n}\n\nreturn;","outputs":1,"noerr":0,"x":874.5833892822266,"y":255.25000762939453,"wires":[["1cc0ec85.331673"]]},{"id":"5ff4e536.21133c","type":"function","z":"3705ff16.53319","name":"module","func":"var password = flow.get("password");\nvar ip = flow.get("ip");\nvar port = flow.get("port");\nif(password === "" || ip === "" || port === "")\n msg.payload = "Please check fields!";\nelse \n msg.payload = "Connecting...";\nflow.set("host", ip + ":" + port);\nmsg.host = flow.get("host");\nmsg.community = flow.get("password");\nmsg.oid = "1.3.6.1.4.1.42505.9.2.2.1.0";\nreturn msg;","outputs":1,"noerr":0,"x":419.58338928222656,"y":574.2500076293945,"wires":[["f436c60.e5d0c38"]]},{"id":"78aafa58.0b77e4","type":"delay","z":"3705ff16.53319","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":507.58338928222656,"y":403.25000762939453,"wires":[["5ff4e536.21133c"]]},{"id":"58130c58.f3c444","type":"snmp","z":"3705ff16.53319","host":"","community":"","version":"1","oids":"","timeout":5,"name":"Get Port 3.1","x":740.5833892822266,"y":325.25000762939453,"wires":[["3198ed57.627f52","78aafa58.0b77e4"]]},{"id":"f436c60.e5d0c38","type":"snmp","z":"3705ff16.53319","host":"","community":"","version":"1","oids":"","timeout":5,"name":"Get Port 5.2","x":592.5833892822266,"y":574.2500076293945,"wires":[["f7aceb4f.471a08"]]},{"id":"1671ec83.2cdc63","type":"snmp set","z":"3705ff16.53319","host":"","community":"","version":"1","varbinds":"","timeout":"2","name":"Set Relay","x":1427.833396911621,"y":616.2500095367432,"wires":},{"id":"46424cbf.9b3fa4","type":"ui_switch","z":"3705ff16.53319","name":"","label":"Action AUTO OFF after 2 second","tooltip":"","group":"d2d6fe5d.5694b","order":7,"width":"0","height":"0","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"53=ON","onvalueType":"str","onicon":"","oncolor":"","offvalue":"53=OFF","offvalueType":"str","officon":"","offcolor":"","x":1129.0833892822266,"y":608.2500076293945,"wires":[["f1b8c46b.f24b48"]]},{"id":"f7aceb4f.471a08","type":"function","z":"3705ff16.53319","name":"Port 3","func":"var tmp = (flow.get("tmpVar")) + 1;\nflow.set("tmpVar", tmp);\n\nvar p53 = {payload:msg.payload.value === 0 ? "53=OFF" : "53=ON"}\n\nreturn [p53];","outputs":1,"noerr":0,"x":826.0833892822266,"y":607.2500076293945,"wires":[["46424cbf.9b3fa4"]]},{"id":"f1b8c46b.f24b48","type":"function","z":"3705ff16.53319","name":"Port 3","func":"if(flow.get("updatingNow1") === true) {\n flow.set("updatingNow1",false);\n return;\n}\nif(flow.get("updatingNow2") === true) {\n flow.set("updatingNow2",false);\n return;\n}\n\n\nmsg.host = flow.get("host");\nmsg.community = flow.get("password");\nmsg.varbinds = [\n {\n "oid": msg.payload.indexOf("53") != -1 ? "1.3.6.1.4.1.42505.9.2.2.3.0" : "1.3.6.1.4.1.42505.9.2.2.3.0",\n "type": "Integer",\n "value": msg.payload.indexOf("ON") != -1 ? 1 : 0\n }\n\n\n\n]\n\nreturn msg;","outputs":1,"noerr":0,"x":1350.0833930969238,"y":536.7500085830688,"wires":[["1671ec83.2cdc63"]]},{"id":"f9cce91.87c5218","type":"debug","z":"3705ff16.53319","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":754.0833892822266,"y":69.25000762939453,"wires":},{"id":"c7322c02.0620f","type":"ui_text_input","z":"3705ff16.53319","name":"","label":"PORTAIL N° 1 GEDICO","tooltip":"","group":"d2d6fe5d.5694b","order":6,"width":"0","height":"0","passthru":true,"mode":"text","delay":300,"topic":"","x":1126.1112213134766,"y":557.0833215713501,"wires":[]},{"id":"d2d6fe5d.5694b","type":"ui_group","z":"","name":"I/O","tab":"19a6e833.1c3e48","disp":true,"width":"6","collapse":true},{"id":"19a6e833.1c3e48","type":"ui_tab","z":"","name":"Denkovi Dashboard","icon":"standby","disabled":false,"hidden":false}]

Sorry but somehting about the format of your code makes in un-paste-able

désolée

[
    {
        "id": "e3b16ff2.eeb65",
        "type": "function",
        "z": "3705ff16.53319",
        "name": "",
        "func": "flow.set(\"tmpVar\", 0);\nvar password = flow.get(\"password\");\nvar ip = flow.get(\"ip\");\nvar port = flow.get(\"port\");\nif(password === \"\" || ip === \"\" || port === \"\")\n    msg.payload = \"Please check fields!\";\nelse \n    msg.payload = \"Connecting...\";\nflow.set(\"host\", ip + \":\" + port);\nmsg.host = flow.get(\"host\");\nmsg.community = flow.get(\"password\");\nmsg.oid = \"1.3.6.1.4.1.42505.9.2.1.1.0\";\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 333.3333511352539,
        "y": 264.00002098083496,
        "wires": [
            [
                "58130c58.f3c444",
                "1cc0ec85.331673"
            ]
        ]
    },
    {
        "id": "bd56479b.866598",
        "type": "ui_button",
        "z": "3705ff16.53319",
        "name": "",
        "group": "d2d6fe5d.5694b",
        "order": 5,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "Refresh",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "icon": "",
        "payload": "true",
        "payloadType": "bool",
        "topic": "",
        "x": 161.3333511352539,
        "y": 265.00002098083496,
        "wires": [
            [
                "e3b16ff2.eeb65"
            ]
        ]
    },
    {
        "id": "1cc0ec85.331673",
        "type": "ui_text",
        "z": "3705ff16.53319",
        "group": "d2d6fe5d.5694b",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "STATUS",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 884.3333511352539,
        "y": 105.00002098083496,
        "wires": []
    },
    {
        "id": "ca5de4d7.cbe018",
        "type": "ui_text_input",
        "z": "3705ff16.53319",
        "name": "",
        "label": "Community",
        "tooltip": "",
        "group": "d2d6fe5d.5694b",
        "order": 4,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "password",
        "delay": 300,
        "topic": "",
        "x": 181.3333511352539,
        "y": 122.00002098083496,
        "wires": [
            [
                "a914a0ff.6a73"
            ]
        ]
    },
    {
        "id": "a914a0ff.6a73",
        "type": "function",
        "z": "3705ff16.53319",
        "name": "",
        "func": "flow.set(\"password\", msg.payload);\nif(msg.payload === \"\")\n    msg.payload = \"Please PASS\";\nelse \n    msg.payload = \"\";\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 332.3333511352539,
        "y": 122.00002098083496,
        "wires": [
            [
                "1cc0ec85.331673"
            ]
        ]
    },
    {
        "id": "48f94df6.12eeb4",
        "type": "ui_text_input",
        "z": "3705ff16.53319",
        "name": "",
        "label": "IP",
        "group": "d2d6fe5d.5694b",
        "order": 2,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "text",
        "delay": 300,
        "topic": "",
        "x": 163.3333511352539,
        "y": 173.00002098083496,
        "wires": [
            [
                "3b7eb6b0.1bc6ca"
            ]
        ]
    },
    {
        "id": "3b7eb6b0.1bc6ca",
        "type": "function",
        "z": "3705ff16.53319",
        "name": "",
        "func": "flow.set(\"ip\", msg.payload);\nif(msg.payload === \"\")\n    msg.payload = \"Please enter valid IP!\";\nelse \n    msg.payload = \"\";\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 334.3333511352539,
        "y": 173.00002098083496,
        "wires": [
            [
                "1cc0ec85.331673"
            ]
        ]
    },
    {
        "id": "d5e2674c.f56948",
        "type": "ui_text_input",
        "z": "3705ff16.53319",
        "name": "",
        "label": "Port",
        "group": "d2d6fe5d.5694b",
        "order": 3,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "text",
        "delay": 300,
        "topic": "",
        "x": 163.3333511352539,
        "y": 222.00002098083496,
        "wires": [
            [
                "4f30cb44.09aae4"
            ]
        ]
    },
    {
        "id": "4f30cb44.09aae4",
        "type": "function",
        "z": "3705ff16.53319",
        "name": "",
        "func": "flow.set(\"port\", msg.payload);\nif(msg.payload === \"\")\n    msg.payload = \"Please enter valid port!\";\nelse \n    msg.payload = \"\";\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 334.3333511352539,
        "y": 222.00002098083496,
        "wires": [
            [
                "1cc0ec85.331673"
            ]
        ]
    },
    {
        "id": "3198ed57.627f52",
        "type": "function",
        "z": "3705ff16.53319",
        "name": "checkResponse",
        "func": "\nif(msg.oid === \"1.3.6.1.4.1.42505.9.2.1.1.0\"){\nflow.set(\"updatingNow1\", true);\n}\nif(msg.oid === \"1.3.6.1.4.1.42505.9.2.2.1.0\"){\nflow.set(\"updatingNow2\", true);\n}\n\nreturn;",
        "outputs": 1,
        "noerr": 0,
        "x": 703.3333511352539,
        "y": 249.00002098083496,
        "wires": [
            [
                "1cc0ec85.331673"
            ]
        ]
    },
    {
        "id": "5ff4e536.21133c",
        "type": "function",
        "z": "3705ff16.53319",
        "name": "module",
        "func": "var password = flow.get(\"password\");\nvar ip = flow.get(\"ip\");\nvar port = flow.get(\"port\");\nif(password === \"\" || ip === \"\" || port === \"\")\n    msg.payload = \"Please check fields!\";\nelse \n    msg.payload = \"Connecting...\";\nflow.set(\"host\", ip + \":\" + port);\nmsg.host = flow.get(\"host\");\nmsg.community = flow.get(\"password\");\nmsg.oid = \"1.3.6.1.4.1.42505.9.2.2.1.0\";\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 248.3333511352539,
        "y": 568.000020980835,
        "wires": [
            [
                "f436c60.e5d0c38"
            ]
        ]
    },
    {
        "id": "78aafa58.0b77e4",
        "type": "delay",
        "z": "3705ff16.53319",
        "name": "",
        "pauseType": "delay",
        "timeout": "1",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 336.3333511352539,
        "y": 397.00002098083496,
        "wires": [
            [
                "5ff4e536.21133c"
            ]
        ]
    },
    {
        "id": "58130c58.f3c444",
        "type": "snmp",
        "z": "3705ff16.53319",
        "host": "",
        "community": "",
        "version": "1",
        "oids": "",
        "timeout": 5,
        "name": "Get Port 3.1",
        "x": 569.3333511352539,
        "y": 319.00002098083496,
        "wires": [
            [
                "3198ed57.627f52",
                "78aafa58.0b77e4"
            ]
        ]
    },
    {
        "id": "f436c60.e5d0c38",
        "type": "snmp",
        "z": "3705ff16.53319",
        "host": "",
        "community": "",
        "version": "1",
        "oids": "",
        "timeout": 5,
        "name": "Get Port 5.2",
        "x": 421.3333511352539,
        "y": 568.000020980835,
        "wires": [
            [
                "f7aceb4f.471a08"
            ]
        ]
    },
    {
        "id": "1671ec83.2cdc63",
        "type": "snmp set",
        "z": "3705ff16.53319",
        "host": "",
        "community": "",
        "version": "1",
        "varbinds": "",
        "timeout": "2",
        "name": "Set Relay",
        "x": 1280.333351135254,
        "y": 580.000020980835,
        "wires": []
    },
    {
        "id": "46424cbf.9b3fa4",
        "type": "ui_switch",
        "z": "3705ff16.53319",
        "name": "",
        "label": "Action Portail",
        "tooltip": "",
        "group": "d2d6fe5d.5694b",
        "order": 7,
        "width": "0",
        "height": "0",
        "passthru": true,
        "decouple": "false",
        "topic": "",
        "style": "",
        "onvalue": "53=ON",
        "onvalueType": "str",
        "onicon": "",
        "oncolor": "",
        "offvalue": "53=OFF",
        "offvalueType": "str",
        "officon": "",
        "offcolor": "",
        "x": 887.8333511352539,
        "y": 602.000020980835,
        "wires": [
            [
                "f1b8c46b.f24b48"
            ]
        ]
    },
    {
        "id": "f7aceb4f.471a08",
        "type": "function",
        "z": "3705ff16.53319",
        "name": "Port 3",
        "func": "var tmp = (flow.get(\"tmpVar\")) + 1;\nflow.set(\"tmpVar\", tmp);\n\nvar p53 = {payload:msg.payload.value === 0 ? \"53=OFF\" : \"53=ON\"}\n\nreturn [p53];",
        "outputs": 1,
        "noerr": 0,
        "x": 654.8333511352539,
        "y": 601.000020980835,
        "wires": [
            [
                "46424cbf.9b3fa4"
            ]
        ]
    },
    {
        "id": "f1b8c46b.f24b48",
        "type": "function",
        "z": "3705ff16.53319",
        "name": "Port 3",
        "func": "if(flow.get(\"updatingNow1\") === true) {\n    flow.set(\"updatingNow1\",false);\n    return;\n}\nif(flow.get(\"updatingNow2\") === true) {\n    flow.set(\"updatingNow2\",false);\n    return;\n}\n\n\nmsg.host = flow.get(\"host\");\nmsg.community = flow.get(\"password\");\nmsg.varbinds = [\n    {\n        \"oid\":   msg.payload.indexOf(\"53\") != -1 ? \"1.3.6.1.4.1.42505.9.2.2.3.0\" : \"1.3.6.1.4.1.42505.9.2.2.3.0\",\n        \"type\":  \"Integer\",\n        \"value\": msg.payload.indexOf(\"ON\") != -1 ? 1 : 0\n    }\n\n\n\n]\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 1098.833351135254,
        "y": 588.000020980835,
        "wires": [
            [
                "1671ec83.2cdc63"
            ]
        ]
    },
    {
        "id": "827df640.1d6388",
        "type": "snmp",
        "z": "3705ff16.53319",
        "host": "127.0.0.1",
        "community": "public",
        "version": "1",
        "oids": "",
        "timeout": 5,
        "name": "",
        "x": 259.5,
        "y": 737,
        "wires": [
            []
        ]
    },
    {
        "id": "f9cce91.87c5218",
        "type": "debug",
        "z": "3705ff16.53319",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 582.8333511352539,
        "y": 63.00002098083496,
        "wires": []
    },
    {
        "id": "c7322c02.0620f",
        "type": "ui_text_input",
        "z": "3705ff16.53319",
        "name": "",
        "label": "PORTAIL N° 1 GEDICO",
        "tooltip": "",
        "group": "d2d6fe5d.5694b",
        "order": 6,
        "width": "0",
        "height": "0",
        "passthru": true,
        "mode": "text",
        "delay": 300,
        "topic": "",
        "x": 1029.4444961547851,
        "y": 234.44442749023437,
        "wires": [
            []
        ]
    },
    {
        "id": "d2d6fe5d.5694b",
        "type": "ui_group",
        "z": "",
        "name": "I/O",
        "tab": "19a6e833.1c3e48",
        "disp": true,
        "width": "6",
        "collapse": true
    },
    {
        "id": "19a6e833.1c3e48",
        "type": "ui_tab",
        "z": "",
        "name": "Denkovi Dashboard",
        "icon": "standby",
        "disabled": false,
        "hidden": false
    }
]

Please export your flow and paste it in this thread in between ``` so it formats it correctly

:yum:

the line concerned

[{"id":"1671ec83.2cdc63","type":"snmp set","z":"3705ff16.53319","host":"","community":"","version":"1","varbinds":"","timeout":"2","name":"Set Relay","x":1280.333351135254,"y":580.000020980835,"wires":[]},{"id":"46424cbf.9b3fa4","type":"ui_switch","z":"3705ff16.53319","name":"","label":"Action Portail","tooltip":"","group":"d2d6fe5d.5694b","order":7,"width":"0","height":"0","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"53=ON","onvalueType":"str","onicon":"","oncolor":"","offvalue":"53=OFF","offvalueType":"str","officon":"","offcolor":"","x":887.8333511352539,"y":602.000020980835,"wires":[["f1b8c46b.f24b48"]]},{"id":"f7aceb4f.471a08","type":"function","z":"3705ff16.53319","name":"Port 3","func":"var tmp = (flow.get(\"tmpVar\")) + 1;\nflow.set(\"tmpVar\", tmp);\n\nvar p53 = {payload:msg.payload.value === 0 ? \"53=OFF\" : \"53=ON\"}\n\nreturn [p53];","outputs":1,"noerr":0,"x":654.8333511352539,"y":601.000020980835,"wires":[["46424cbf.9b3fa4"]]},{"id":"f1b8c46b.f24b48","type":"function","z":"3705ff16.53319","name":"Port 3","func":"if(flow.get(\"updatingNow1\") === true) {\n    flow.set(\"updatingNow1\",false);\n    return;\n}\nif(flow.get(\"updatingNow2\") === true) {\n    flow.set(\"updatingNow2\",false);\n    return;\n}\n\n\nmsg.host = flow.get(\"host\");\nmsg.community = flow.get(\"password\");\nmsg.varbinds = [\n    {\n        \"oid\":   msg.payload.indexOf(\"53\") != -1 ? \"1.3.6.1.4.1.42505.9.2.2.3.0\" : \"1.3.6.1.4.1.42505.9.2.2.3.0\",\n        \"type\":  \"Integer\",\n        \"value\": msg.payload.indexOf(\"ON\") != -1 ? 1 : 0\n    }\n\n\n\n]\n\nreturn msg;","outputs":1,"noerr":0,"x":1098.833351135254,"y":588.000020980835,"wires":[["1671ec83.2cdc63"]]},{"id":"d2d6fe5d.5694b","type":"ui_group","z":"","name":"I/O","tab":"19a6e833.1c3e48","disp":true,"width":"6","collapse":true},{"id":"19a6e833.1c3e48","type":"ui_tab","z":"","name":"Denkovi Dashboard","icon":"standby","disabled":false,"hidden":false}]

I think the problem comes from this node

if(flow.get("updatingNow1") === true) {
    flow.set("updatingNow1",false);
    return;
}
if(flow.get("updatingNow2") === true) {
    flow.set("updatingNow2",false);
    return;
}


msg.host = flow.get("host");
msg.community = flow.get("password");
msg.varbinds = [
    {
        "oid":   msg.payload.indexOf("53") != -1 ? "1.3.6.1.4.1.42505.9.2.2.3.0" : "1.3.6.1.4.1.42505.9.2.2.3.0",
        "type":  "Integer",
        "value": msg.payload.indexOf("ON") != -1 ? 1 : 0
    }



]

return msg;

j'au tester ça, mai ça fonctionne pas

I test it, it may not work

if ON the OFF in 2S :thinking:

r1