Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. Nodered Dashboard Template

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Nodered Dashboard Template

    This topic has been deleted. Only users with topic management privileges can see it.
    • mickym
      mickym Most Active @frankyboy73 last edited by mickym

      @frankyboy73 OK Du hast Recht. 😁 👍

      Ich habe die Lösung eine 3. Trigger Node. 😉 und eine Change Node - Habs getestet:

      5eaa8bff-835b-4dd6-b32e-cf10f004b65e-image.png

      [
         {
             "id": "90a44e1a.ea1a4",
             "type": "trigger",
             "z": "1557a383.3bbd1c",
             "name": "",
             "op1": "{\"color\":\"#333333\",\"icon\":\"lock\"}",
             "op2": "{\"color\":\"red\",\"icon\":\"lock\"}",
             "op1type": "json",
             "op2type": "json",
             "duration": "450",
             "extend": false,
             "overrideDelay": false,
             "units": "ms",
             "reset": "",
             "bytopic": "all",
             "topic": "topic",
             "outputs": 1,
             "x": 680,
             "y": 1460,
             "wires": [
                 [
                     "13171610.b0467a"
                 ]
             ]
         },
         {
             "id": "e2a0cd0f.674ae",
             "type": "inject",
             "z": "1557a383.3bbd1c",
             "name": "Fehler",
             "props": [
                 {
                     "p": "payload"
                 }
             ],
             "repeat": "",
             "crontab": "",
             "once": false,
             "onceDelay": 0.1,
             "topic": "",
             "payload": "true",
             "payloadType": "bool",
             "x": 210,
             "y": 1500,
             "wires": [
                 [
                     "1394480a.160148"
                 ]
             ]
         },
         {
             "id": "1394480a.160148",
             "type": "trigger",
             "z": "1557a383.3bbd1c",
             "name": "",
             "op1": "true",
             "op2": "0",
             "op1type": "bool",
             "op2type": "str",
             "duration": "-1",
             "extend": false,
             "overrideDelay": false,
             "units": "s",
             "reset": "",
             "bytopic": "all",
             "topic": "topic",
             "outputs": 1,
             "x": 460,
             "y": 1460,
             "wires": [
                 [
                     "90a44e1a.ea1a4"
                 ]
             ]
         },
         {
             "id": "6e945.0b1fa6bc",
             "type": "trigger",
             "z": "1557a383.3bbd1c",
             "name": "",
             "op1": "true",
             "op2": "",
             "op1type": "bool",
             "op2type": "pay",
             "duration": "2",
             "extend": false,
             "overrideDelay": false,
             "units": "s",
             "reset": "",
             "bytopic": "all",
             "topic": "topic",
             "outputs": 2,
             "x": 460,
             "y": 1300,
             "wires": [
                 [
                     "eabb6de1.5b5e9"
                 ],
                 [
                     "13171610.b0467a"
                 ]
             ]
         },
         {
             "id": "eabb6de1.5b5e9",
             "type": "change",
             "z": "1557a383.3bbd1c",
             "name": "",
             "rules": [
                 {
                     "t": "move",
                     "p": "payload",
                     "pt": "msg",
                     "to": "reset",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 220,
             "y": 1440,
             "wires": [
                 [
                     "1394480a.160148"
                 ]
             ]
         },
         {
             "id": "328a43b0.17253c",
             "type": "inject",
             "z": "1557a383.3bbd1c",
             "name": "Gelbes Icon - Fenster gekippt",
             "props": [
                 {
                     "p": "payload"
                 }
             ],
             "repeat": "",
             "crontab": "",
             "once": false,
             "onceDelay": 0.1,
             "topic": "",
             "payload": "{\"color\":\"yellow\",\"icon\":\"lock\"}",
             "payloadType": "json",
             "x": 220,
             "y": 1300,
             "wires": [
                 [
                     "6e945.0b1fa6bc"
                 ]
             ]
         }
      ]
      

      Diese Trigger Node ist so genial

      F 2 Replies Last reply Reply Quote 0
      • F
        frankyboy73 @mickym last edited by frankyboy73

        @mickym Hi, habs mal aufgebaut. Das passiert wenn ich zum ungünstigen Zeit punkt von Fehler auf Closed wechsel. Siehe Debug Output, es wird noch mal Rot geschrieben.
        Blink6.jpg

        Edit: Hat sich überschnitten. Ok, das ist auch ne Lösung 👍

        mickym 2 Replies Last reply Reply Quote 0
        • mickym
          mickym Most Active @frankyboy73 last edited by

          @frankyboy73 sagte in Nodered Dashboard Template:

          @mickym Hi, habs mal aufgebaut. Das passiert wenn ich zum ungünstigen Zeit punkt von Fehler auf Closed wechsel. Siehe Debug Output, es wird noch mal Rot geschrieben.
          Blink6.jpg

          Jo hatte ich schon verstanden - Lösung siehe unten. 😁

          1 Reply Last reply Reply Quote 1
          • mickym
            mickym Most Active @frankyboy73 last edited by mickym

            @frankyboy73 sagte in Nodered Dashboard Template:

            Edit: Hat sich überschnitten. Ok, das ist auch ne Lösung 👍

            Um sicher zu sein ist halt der Reset Trigger auf die doppelte Zeitperiode des Blinkentriggers eingestellt. 🙂

            Ich finde diese Trigger Node und die Vielseitigkeit der Einsetzbarkeit - bislang die genialste Node in NodeRed. 😉

            1 Reply Last reply Reply Quote 0
            • F
              frankyboy73 @mickym last edited by frankyboy73

              @mickym sagte in Nodered Dashboard Template:

              Diese Trigger Node ist so genial

              Jo, die ist super. Man könnte die auch mit bool false reseten (kann man in der Node einstellen wo rüber man resetten will), dann spart man sich vielleicht noch ne Change Node. Wenn der Fehler weg geht sollte ja false dort ankommen, bzw. kannst du über deinen Zusatztrigger false senden.
              Trigger2.jpg

              mickym 2 Replies Last reply Reply Quote 0
              • mickym
                mickym Most Active @frankyboy73 last edited by mickym

                @frankyboy73 Beste Idee - schon wieder einfacher. 🙂

                Schon umgesetzt:

                47add21e-cdf2-4070-be9b-22ddd52750a5-image.png

                [
                   {
                       "id": "90a44e1a.ea1a4",
                       "type": "trigger",
                       "z": "1557a383.3bbd1c",
                       "name": "",
                       "op1": "{\"color\":\"#333333\",\"icon\":\"lock\"}",
                       "op2": "{\"color\":\"red\",\"icon\":\"lock\"}",
                       "op1type": "json",
                       "op2type": "json",
                       "duration": "450",
                       "extend": false,
                       "overrideDelay": false,
                       "units": "ms",
                       "reset": "",
                       "bytopic": "all",
                       "topic": "topic",
                       "outputs": 1,
                       "x": 680,
                       "y": 1460,
                       "wires": [
                           [
                               "13171610.b0467a"
                           ]
                       ]
                   },
                   {
                       "id": "e2a0cd0f.674ae",
                       "type": "inject",
                       "z": "1557a383.3bbd1c",
                       "name": "Fehler",
                       "props": [
                           {
                               "p": "payload"
                           }
                       ],
                       "repeat": "",
                       "crontab": "",
                       "once": false,
                       "onceDelay": 0.1,
                       "topic": "",
                       "payload": "true",
                       "payloadType": "bool",
                       "x": 210,
                       "y": 1500,
                       "wires": [
                           [
                               "1394480a.160148"
                           ]
                       ]
                   },
                   {
                       "id": "1394480a.160148",
                       "type": "trigger",
                       "z": "1557a383.3bbd1c",
                       "name": "",
                       "op1": "true",
                       "op2": "0",
                       "op1type": "bool",
                       "op2type": "str",
                       "duration": "-1",
                       "extend": false,
                       "overrideDelay": false,
                       "units": "s",
                       "reset": "false",
                       "bytopic": "all",
                       "topic": "topic",
                       "outputs": 1,
                       "x": 460,
                       "y": 1460,
                       "wires": [
                           [
                               "90a44e1a.ea1a4"
                           ]
                       ]
                   },
                   {
                       "id": "6e945.0b1fa6bc",
                       "type": "trigger",
                       "z": "1557a383.3bbd1c",
                       "name": "Reset Blink Trigger",
                       "op1": "false",
                       "op2": "",
                       "op1type": "bool",
                       "op2type": "pay",
                       "duration": "2",
                       "extend": false,
                       "overrideDelay": false,
                       "units": "s",
                       "reset": "",
                       "bytopic": "all",
                       "topic": "topic",
                       "outputs": 2,
                       "x": 490,
                       "y": 1300,
                       "wires": [
                           [
                               "1394480a.160148"
                           ],
                           [
                               "13171610.b0467a"
                           ]
                       ]
                   },
                   {
                       "id": "328a43b0.17253c",
                       "type": "inject",
                       "z": "1557a383.3bbd1c",
                       "name": "Gelbes Icon - Fenster gekippt",
                       "props": [
                           {
                               "p": "payload"
                           }
                       ],
                       "repeat": "",
                       "crontab": "",
                       "once": false,
                       "onceDelay": 0.1,
                       "topic": "",
                       "payload": "{\"color\":\"yellow\",\"icon\":\"lock\"}",
                       "payloadType": "json",
                       "x": 220,
                       "y": 1300,
                       "wires": [
                           [
                               "6e945.0b1fa6bc"
                           ]
                       ]
                   }
                ]
                

                Diese Trigger Node ersetzt sicher 10 Blocklies. 😉

                F 1 Reply Last reply Reply Quote 0
                • mickym
                  mickym Most Active @frankyboy73 last edited by

                  @frankyboy73 Wir wären ein Superteam - beim Brainstorming zum Erstellen von Flows.

                  1 Reply Last reply Reply Quote 0
                  • F
                    frankyboy73 @mickym last edited by

                    @mickym Das sehe ich auch so. Super, macht momentan echt Spaß hier. Ich habe auch mit großem Interesse den Max Cube Beitrag verfolgt. Ich werde in Zukunft bestimmt wieder mehr in diesem Forum rumgeistern.

                    mickym 1 Reply Last reply Reply Quote 0
                    • mickym
                      mickym Most Active @frankyboy73 last edited by

                      @frankyboy73 sagte in Nodered Dashboard Template:

                      @mickym Das sehe ich auch so. Super, macht momentan echt Spaß hier. Ich habe auch mit großem Interesse den Max Cube Beitrag verfolgt. Ich werde in Zukunft bestimmt wieder mehr in diesem Forum rumgeistern.

                      Tja das ist schon komplexer - und man muss halt immer die ganze Logik im Kopf haben - weil man halt nicht die gleiche Umgebung hat. Insofern probiert man was aus, wartet auf Rückmeldung, um zu wissen, dass man auf dem richtigen Weg ist.
                      Dann ist es halt besonders schwierig, wenn nebenher noch ganz andere Dinge gemacht werden.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Saranger @mickym last edited by

                        @mickym

                        anbei mal meine Lösung, ichhabe einen Button eingefügt, der unsichtbar ist und der triggert die Schleife immer wieder von neuen. Sobald aber einer der beieden Zustände wieder zurückgeht, wird über die Undabfrage (Blauerpfeil) die Schleife an beiden Triggern gestoppt.

                        Sehr cool so viele Varianten und Lösungen 🙂

                        Nodered_1.JPG

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        1.0k
                        Online

                        31.7k
                        Users

                        79.7k
                        Topics

                        1.3m
                        Posts

                        template
                        3
                        32
                        3403
                        Loading More Posts
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes
                        Reply
                        • Reply as topic
                        Log in to reply
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                        The ioBroker Community 2014-2023
                        logo