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. ioBroker out ack==true setzen

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    ioBroker out ack==true setzen

    This topic has been deleted. Only users with topic management privileges can see it.
    • AxelRHD
      AxelRHD last edited by

      Hallo zusammen,

      ich experimetiere gerade mit Node-RED im Zusammenspiel mit ioBroker. Jetzt habe ich leider nirgends gefunden ob und wie man bei dem Knoten "ioBroker out" den Wert acknowlegded auf true setzen kann.

      Vielleicht kann da ja jemand weiter helfen? Besten Dank.

      H mickym 2 Replies Last reply Reply Quote 0
      • H
        Hc-Yami @AxelRHD last edited by

        @AxelRHD Hey die Frage verstehe ich nicht ganz. Kannst du mal ein Foto machen oder den Flow posten?

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

          @AxelRHD Das ist einfach. Wenn Du value setzt ist ack gleich true, bei command ist ack gleich false.

          Hiermit kannst Du testen:

          [
              {
                  "id": "49aa0ad5.53b3b4",
                  "type": "ioBroker out",
                  "z": "6e170384.60c96c",
                  "name": "test",
                  "topic": "0_userdata.0.test",
                  "ack": "false",
                  "autoCreate": "false",
                  "stateName": "",
                  "role": "",
                  "payloadType": "",
                  "readonly": "",
                  "stateUnit": "",
                  "stateMin": "",
                  "stateMax": "",
                  "x": 1490,
                  "y": 640,
                  "wires": []
              },
              {
                  "id": "6c45636c.1b696c",
                  "type": "inject",
                  "z": "6e170384.60c96c",
                  "name": "",
                  "props": [
                      {
                          "p": "payload"
                      },
                      {
                          "p": "topic",
                          "vt": "str"
                      }
                  ],
                  "repeat": "",
                  "crontab": "",
                  "once": false,
                  "onceDelay": 0.1,
                  "topic": "",
                  "payload": "test",
                  "payloadType": "str",
                  "x": 1330,
                  "y": 640,
                  "wires": [
                      [
                          "49aa0ad5.53b3b4"
                      ]
                  ]
              },
              {
                  "id": "f0ca83d6.d1312",
                  "type": "debug",
                  "z": "6e170384.60c96c",
                  "name": "",
                  "active": true,
                  "tosidebar": true,
                  "console": false,
                  "tostatus": false,
                  "complete": "payload",
                  "targetType": "msg",
                  "statusVal": "",
                  "statusType": "auto",
                  "x": 1670,
                  "y": 580,
                  "wires": []
              },
              {
                  "id": "c27a0537.3243f8",
                  "type": "ioBroker get",
                  "z": "6e170384.60c96c",
                  "name": "test",
                  "topic": "0_userdata.0.test",
                  "attrname": "payload",
                  "payloadType": "object",
                  "x": 1500,
                  "y": 580,
                  "wires": [
                      [
                          "f0ca83d6.d1312"
                      ]
                  ]
              },
              {
                  "id": "12184eb7.895281",
                  "type": "inject",
                  "z": "6e170384.60c96c",
                  "name": "",
                  "props": [
                      {
                          "p": "payload"
                      },
                      {
                          "p": "topic",
                          "vt": "str"
                      }
                  ],
                  "repeat": "",
                  "crontab": "",
                  "once": false,
                  "onceDelay": 0.1,
                  "topic": "",
                  "payload": "true",
                  "payloadType": "bool",
                  "x": 1320,
                  "y": 580,
                  "wires": [
                      [
                          "c27a0537.3243f8"
                      ]
                  ]
              }
          ]
          

          screen.png

          screen.png

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

            @mickym sagte in ioBroker out ack==true setzen:

            @AxelRHD Das ist einfach. Wenn Du value setzt ist ack gleich true, bei command ist ack gleich false.

            Hiermit kannst Du testen:

            [
                {
                    "id": "49aa0ad5.53b3b4",
                    "type": "ioBroker out",
                    "z": "6e170384.60c96c",
                    "name": "test",
                    "topic": "0_userdata.0.test",
                    "ack": "false",
                    "autoCreate": "false",
                    "stateName": "",
                    "role": "",
                    "payloadType": "",
                    "readonly": "",
                    "stateUnit": "",
                    "stateMin": "",
                    "stateMax": "",
                    "x": 1490,
                    "y": 640,
                    "wires": []
                },
                {
                    "id": "6c45636c.1b696c",
                    "type": "inject",
                    "z": "6e170384.60c96c",
                    "name": "",
                    "props": [
                        {
                            "p": "payload"
                        },
                        {
                            "p": "topic",
                            "vt": "str"
                        }
                    ],
                    "repeat": "",
                    "crontab": "",
                    "once": false,
                    "onceDelay": 0.1,
                    "topic": "",
                    "payload": "test",
                    "payloadType": "str",
                    "x": 1330,
                    "y": 640,
                    "wires": [
                        [
                            "49aa0ad5.53b3b4"
                        ]
                    ]
                },
                {
                    "id": "f0ca83d6.d1312",
                    "type": "debug",
                    "z": "6e170384.60c96c",
                    "name": "",
                    "active": true,
                    "tosidebar": true,
                    "console": false,
                    "tostatus": false,
                    "complete": "payload",
                    "targetType": "msg",
                    "statusVal": "",
                    "statusType": "auto",
                    "x": 1670,
                    "y": 580,
                    "wires": []
                },
                {
                    "id": "c27a0537.3243f8",
                    "type": "ioBroker get",
                    "z": "6e170384.60c96c",
                    "name": "test",
                    "topic": "0_userdata.0.test",
                    "attrname": "payload",
                    "payloadType": "object",
                    "x": 1500,
                    "y": 580,
                    "wires": [
                        [
                            "f0ca83d6.d1312"
                        ]
                    ]
                },
                {
                    "id": "12184eb7.895281",
                    "type": "inject",
                    "z": "6e170384.60c96c",
                    "name": "",
                    "props": [
                        {
                            "p": "payload"
                        },
                        {
                            "p": "topic",
                            "vt": "str"
                        }
                    ],
                    "repeat": "",
                    "crontab": "",
                    "once": false,
                    "onceDelay": 0.1,
                    "topic": "",
                    "payload": "true",
                    "payloadType": "bool",
                    "x": 1320,
                    "y": 580,
                    "wires": [
                        [
                            "c27a0537.3243f8"
                        ]
                    ]
                }
            ]
            

            screen.png

            screen.png

            Vielen Dank für den Input. Sehe ich das richtig, dass hier das ganze Objekt übegeben werden muss? Schade, dass man nicht einfach den payload und ack als zusätzlichen key in der message übergeben kann. Nimmst du dann schon am Eingang das ganze Objekt auf?

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

              @AxelRHD Nein das ist nur zu Demonstration. Einfach den payload als value (ack=true) oder command (ack=false) schreiben.

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

                @mickym sagte in ioBroker out ack==true setzen:

                @AxelRHD Nein das ist nur zu Demonstration. Einfach den payload als value (ack=true) oder command (ack=false) schreiben.

                Aaah. Jetzt verstehe ich. Dann ist der Wert ein String mit ack in Klammern. Das werde ich bei Gelegenheit ausprobieren. Danke für die Erläuterung.

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

                  @AxelRHD Nee ich glaube Du denkst zu kompliziert. Der payload wird geschrieben - in dem iobroker out node - steuerst Du über den Type ob ack =true oder false gesetzt wird.

                  screen.png

                  command = ack=false
                  value = ack =true

                  Da ist nichts mit Klammern etc.

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

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  785
                  Online

                  31.7k
                  Users

                  79.7k
                  Topics

                  1.3m
                  Posts

                  3
                  7
                  1144
                  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