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. zweimal einen Datenpunkt Button schalten

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    zweimal einen Datenpunkt Button schalten

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

      @aphofis Das geht einfacher. Schalte in der Adapterkonfig den Sicherheitsmodus ein, dann kannst Du Deine Flows bearbeiten ohne dass diese ausgeführt werden. Lösche die fehlerhaften Nodes, schalte den Sicherheitsmodus wieder aus.

      Aphofis 1 Reply Last reply Reply Quote 1
      • Aphofis
        Aphofis @mickym last edited by Aphofis

        @mickym
        ganz vergessen gibt ja den Sicherheitsmodus ich töffel ich ........................... Danke

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

          @aphofis An die split Node hängst Du eine switch Node für jede Ziffer und hängst dann die entsprechenden Nodes Deiner Fernbedienung.

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

            @mickym
            und wo wird dann verzögert ?

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

              @aphofis Ok wenn Du verzögern willst, dann hänge hinter die Split Node ein Delay, wobei ich halt erst mal ausprobieren würde ob es nicht ohne geht - mein Harmony Hub arbeitet auch ohne Verzögerung.

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

                @mickym

                HIHI ja ich wollte auch per Alexa mein Harmony direkt Sender anwählen

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

                  @aphofis Ja kannst ja machen.

                  Ich habe mir so halte eine ganze Fernbedienung gemacht. 😉

                  728f82ba-b233-4771-a940-0a6302715626-image.png

                  Aber nicht in VIS sondern im NR Dashboard:

                  eadade4d-9869-42e9-b4f9-e8cee9cd796d-image.png

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

                    @mickym Wie gesagt einfach nach der Splitnode einen switch für jede Taste und damit quasi die Tasten Deiner Harmony ansteuern.

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

                      @mickym
                      Ach du Kacke!!! Ne ich hab ja ne Harmony Remote und auch die Harmony APP
                      ich wollte nur direkt die TV sender schalten in dem ich sage Echo, schalte ARD ein oder sonst einen
                      Aber coole Fernbedienung

                      Aphofis 1 Reply Last reply Reply Quote 0
                      • Aphofis
                        Aphofis @Aphofis last edited by

                        @aphofis
                        also nicht so:
                        Unbenannt2.png

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

                          @aphofis Nein - so nicht. Was kommt denn aus Deiner payload raus ? Ein String "10" für ARD?

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

                            @mickym
                            Ups sorry ne da sollte WDR stehen und 10 sollte raus kommen
                            Nur mein Node-Red will irgendwas nicht immer nicht erreichbar

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

                              @aphofis Also wenn wie bei mir ein String "10" in die Split Node kommt, dann siehst Du hier anhand der Debug Nodes, die Du halt gegen die Tastenpunkte Deiner Harmony ersetzen musst:

                              57d7c06f-7be3-4ffb-be2f-5013779c0414-image.png

                              hier mal dieser Beispielflow:

                              [
                                  {
                                      "id": "41550327.2bf39c",
                                      "type": "split",
                                      "z": "e8c5c56.e220438",
                                      "name": "",
                                      "splt": "1",
                                      "spltType": "len",
                                      "arraySplt": 1,
                                      "arraySpltType": "len",
                                      "stream": false,
                                      "addname": "",
                                      "x": 610,
                                      "y": 180,
                                      "wires": [
                                          [
                                              "717ffa37.5bf7e4"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "8a918032.ba379",
                                      "type": "inject",
                                      "z": "e8c5c56.e220438",
                                      "name": "",
                                      "props": [
                                          {
                                              "p": "payload"
                                          }
                                      ],
                                      "repeat": "",
                                      "crontab": "",
                                      "once": false,
                                      "onceDelay": 0.1,
                                      "topic": "",
                                      "payload": "10",
                                      "payloadType": "str",
                                      "x": 430,
                                      "y": 180,
                                      "wires": [
                                          [
                                              "41550327.2bf39c"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "6af7e799.ee3168",
                                      "type": "debug",
                                      "z": "e8c5c56.e220438",
                                      "name": "Phillips Nr. 0",
                                      "active": true,
                                      "tosidebar": true,
                                      "console": false,
                                      "tostatus": false,
                                      "complete": "payload",
                                      "targetType": "msg",
                                      "statusVal": "",
                                      "statusType": "auto",
                                      "x": 970,
                                      "y": 40,
                                      "wires": []
                                  },
                                  {
                                      "id": "717ffa37.5bf7e4",
                                      "type": "switch",
                                      "z": "e8c5c56.e220438",
                                      "name": "",
                                      "property": "payload",
                                      "propertyType": "msg",
                                      "rules": [
                                          {
                                              "t": "eq",
                                              "v": "0",
                                              "vt": "str"
                                          },
                                          {
                                              "t": "eq",
                                              "v": "1",
                                              "vt": "str"
                                          },
                                          {
                                              "t": "eq",
                                              "v": "2",
                                              "vt": "str"
                                          },
                                          {
                                              "t": "eq",
                                              "v": "3",
                                              "vt": "str"
                                          },
                                          {
                                              "t": "eq",
                                              "v": "4",
                                              "vt": "str"
                                          },
                                          {
                                              "t": "eq",
                                              "v": "5",
                                              "vt": "str"
                                          },
                                          {
                                              "t": "eq",
                                              "v": "6",
                                              "vt": "str"
                                          },
                                          {
                                              "t": "eq",
                                              "v": "7",
                                              "vt": "str"
                                          },
                                          {
                                              "t": "eq",
                                              "v": "8",
                                              "vt": "str"
                                          },
                                          {
                                              "t": "eq",
                                              "v": "9",
                                              "vt": "str"
                                          }
                                      ],
                                      "checkall": "true",
                                      "repair": false,
                                      "outputs": 10,
                                      "x": 770,
                                      "y": 180,
                                      "wires": [
                                          [
                                              "6af7e799.ee3168"
                                          ],
                                          [
                                              "d6f4657d.bcc268"
                                          ],
                                          [
                                              "fc1a91f1.e1c14"
                                          ],
                                          [
                                              "113e7478.8fecec"
                                          ],
                                          [],
                                          [],
                                          [],
                                          [],
                                          [],
                                          []
                                      ]
                                  },
                                  {
                                      "id": "d6f4657d.bcc268",
                                      "type": "debug",
                                      "z": "e8c5c56.e220438",
                                      "name": "Phillips Nr. 1",
                                      "active": true,
                                      "tosidebar": true,
                                      "console": false,
                                      "tostatus": false,
                                      "complete": "payload",
                                      "targetType": "msg",
                                      "statusVal": "",
                                      "statusType": "auto",
                                      "x": 970,
                                      "y": 80,
                                      "wires": []
                                  },
                                  {
                                      "id": "fc1a91f1.e1c14",
                                      "type": "debug",
                                      "z": "e8c5c56.e220438",
                                      "name": "Phillips Nr. 2",
                                      "active": true,
                                      "tosidebar": true,
                                      "console": false,
                                      "tostatus": false,
                                      "complete": "payload",
                                      "targetType": "msg",
                                      "statusVal": "",
                                      "statusType": "auto",
                                      "x": 970,
                                      "y": 120,
                                      "wires": []
                                  },
                                  {
                                      "id": "113e7478.8fecec",
                                      "type": "debug",
                                      "z": "e8c5c56.e220438",
                                      "name": "Phillips Nr. 3",
                                      "active": true,
                                      "tosidebar": true,
                                      "console": false,
                                      "tostatus": false,
                                      "complete": "payload",
                                      "targetType": "msg",
                                      "statusVal": "",
                                      "statusType": "auto",
                                      "x": 970,
                                      "y": 160,
                                      "wires": []
                                  }
                              ]
                              

                              Die switch Node braucht natürlich für jede Taste einen eigenen Ausgang:

                              686f5b3d-d561-4624-a723-6eb716284837-image.png

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

                                @mickym
                                Das verstehe ich aber noch nicht so ganz

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

                                  @aphofis Also ich habe mal mit meiner Inject Node angenommen es kommt ein String "10" raus. Importiere halt mal den Flow.

                                  Also kommt 10 in die split Node rein.

                                  Die Zerlegt nun den String in 2 Nachrichten mit jeweils EINER Ziffer. Also kommt erst eine Nachricht mit "1" gefolgt von einer Nachricht mit "0".

                                  Diese werden nun in der Switch Node auf die Eingänge 0 - 9 verteilt und dort hängt dann der Zifferndatenpunkte Deiner Fernbedienung dran. Also als ob Du in Deiner Fernbedienung erst die 1 und dann die 0 drückst.

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

                                    @mickym
                                    Ah OK cool jetzt verstehe ich
                                    ok moment
                                    (Node-Red Fehler gefunden, hatte zweimal den selben Port bei zwei verschiedenen Geräten für Alexa)

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

                                      @aphofis Im Prinzip wirst Du in Deinem harmony Adapter bei Deinem Fernseher (bei mir halt Pioneer) für jede Ziffer einen eigenen Datenpunkt haben:

                                      Es kann zwar sein, dass der keine Zahlen sondern lieber true oder immer eine 1 haben will, aber dann setzt Du das mit einer Change Node entsprechend.

                                      cca68f1f-51cf-43ee-afbd-04e76ad8526f-image.png

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

                                        @mickym
                                        und wie implementiere ich dann alexa dazu???

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

                                          @aphofis Na Deine Alexa gibt doch den String aus oder nicht?

                                          Also was kommt den raus, wenn Du ARD oben sagst?

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

                                            @mickym Wenn da nur true aus der Alexa Node oben rauskommt, dann hängst Du halt eine Change Node dahinter, um Dir den entsprechenden Programmplatz zu übersetzen. Irgendwie musst Du ja in Deinen Sendeplatz übersetzen.

                                            Sprich wenn Du ARD sagst und die obige Node triggerst - und es soll auf der Fernbedienung 1 und 0 gedrückt werden, dann setzt Du hinter die Alexa Node einfach ein Change Node mit dem String 10.

                                            Hier mal der ganze Flow - Du musst nun einfach nur die Inject Nodes gegen Alexa Nodes ersetzen und hinten die Debug Nodes gegen Dein iobroker out Nodes mit den Tastenpunkten:

                                            2ded2aaa-2dec-402a-bff8-fe6e9e632393-image.png

                                            Hier wieder der gesamte Flow zum Import:

                                            [
                                               {
                                                   "id": "41550327.2bf39c",
                                                   "type": "split",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "",
                                                   "splt": "1",
                                                   "spltType": "len",
                                                   "arraySplt": 1,
                                                   "arraySpltType": "len",
                                                   "stream": false,
                                                   "addname": "",
                                                   "x": 610,
                                                   "y": 180,
                                                   "wires": [
                                                       [
                                                           "717ffa37.5bf7e4"
                                                       ]
                                                   ]
                                               },
                                               {
                                                   "id": "8a918032.ba379",
                                                   "type": "inject",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "ARD",
                                                   "props": [
                                                       {
                                                           "p": "payload"
                                                       }
                                                   ],
                                                   "repeat": "",
                                                   "crontab": "",
                                                   "once": false,
                                                   "onceDelay": 0.1,
                                                   "topic": "",
                                                   "payload": "10",
                                                   "payloadType": "str",
                                                   "x": 250,
                                                   "y": 140,
                                                   "wires": [
                                                       [
                                                           "710e3c6d.11f0b4"
                                                       ]
                                                   ]
                                               },
                                               {
                                                   "id": "6af7e799.ee3168",
                                                   "type": "debug",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "Phillips Nr. 0",
                                                   "active": true,
                                                   "tosidebar": true,
                                                   "console": false,
                                                   "tostatus": false,
                                                   "complete": "payload",
                                                   "targetType": "msg",
                                                   "statusVal": "",
                                                   "statusType": "auto",
                                                   "x": 1230,
                                                   "y": 40,
                                                   "wires": []
                                               },
                                               {
                                                   "id": "717ffa37.5bf7e4",
                                                   "type": "switch",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "",
                                                   "property": "payload",
                                                   "propertyType": "msg",
                                                   "rules": [
                                                       {
                                                           "t": "eq",
                                                           "v": "0",
                                                           "vt": "str"
                                                       },
                                                       {
                                                           "t": "eq",
                                                           "v": "1",
                                                           "vt": "str"
                                                       },
                                                       {
                                                           "t": "eq",
                                                           "v": "2",
                                                           "vt": "str"
                                                       },
                                                       {
                                                           "t": "eq",
                                                           "v": "3",
                                                           "vt": "str"
                                                       },
                                                       {
                                                           "t": "eq",
                                                           "v": "4",
                                                           "vt": "str"
                                                       },
                                                       {
                                                           "t": "eq",
                                                           "v": "5",
                                                           "vt": "str"
                                                       },
                                                       {
                                                           "t": "eq",
                                                           "v": "6",
                                                           "vt": "str"
                                                       },
                                                       {
                                                           "t": "eq",
                                                           "v": "7",
                                                           "vt": "str"
                                                       },
                                                       {
                                                           "t": "eq",
                                                           "v": "8",
                                                           "vt": "str"
                                                       },
                                                       {
                                                           "t": "eq",
                                                           "v": "9",
                                                           "vt": "str"
                                                       }
                                                   ],
                                                   "checkall": "true",
                                                   "repair": false,
                                                   "outputs": 10,
                                                   "x": 770,
                                                   "y": 180,
                                                   "wires": [
                                                       [
                                                           "ac8cd608.ff2d78"
                                                       ],
                                                       [
                                                           "81031c96.e4e03"
                                                       ],
                                                       [
                                                           "6dc90375.86eebc"
                                                       ],
                                                       [
                                                           "a9da448a.767fd8"
                                                       ],
                                                       [],
                                                       [],
                                                       [],
                                                       [],
                                                       [],
                                                       []
                                                   ]
                                               },
                                               {
                                                   "id": "d6f4657d.bcc268",
                                                   "type": "debug",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "Phillips Nr. 1",
                                                   "active": true,
                                                   "tosidebar": true,
                                                   "console": false,
                                                   "tostatus": false,
                                                   "complete": "payload",
                                                   "targetType": "msg",
                                                   "statusVal": "",
                                                   "statusType": "auto",
                                                   "x": 1230,
                                                   "y": 80,
                                                   "wires": []
                                               },
                                               {
                                                   "id": "fc1a91f1.e1c14",
                                                   "type": "debug",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "Phillips Nr. 2",
                                                   "active": true,
                                                   "tosidebar": true,
                                                   "console": false,
                                                   "tostatus": false,
                                                   "complete": "payload",
                                                   "targetType": "msg",
                                                   "statusVal": "",
                                                   "statusType": "auto",
                                                   "x": 1230,
                                                   "y": 120,
                                                   "wires": []
                                               },
                                               {
                                                   "id": "113e7478.8fecec",
                                                   "type": "debug",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "Phillips Nr. 3",
                                                   "active": true,
                                                   "tosidebar": true,
                                                   "console": false,
                                                   "tostatus": false,
                                                   "complete": "payload",
                                                   "targetType": "msg",
                                                   "statusVal": "",
                                                   "statusType": "auto",
                                                   "x": 1230,
                                                   "y": 160,
                                                   "wires": []
                                               },
                                               {
                                                   "id": "ac8cd608.ff2d78",
                                                   "type": "change",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "Setze 1 für Tastendruck",
                                                   "rules": [
                                                       {
                                                           "t": "set",
                                                           "p": "payload",
                                                           "pt": "msg",
                                                           "to": "1",
                                                           "tot": "num"
                                                       }
                                                   ],
                                                   "action": "",
                                                   "property": "",
                                                   "from": "",
                                                   "to": "",
                                                   "reg": false,
                                                   "x": 990,
                                                   "y": 40,
                                                   "wires": [
                                                       [
                                                           "6af7e799.ee3168"
                                                       ]
                                                   ]
                                               },
                                               {
                                                   "id": "710e3c6d.11f0b4",
                                                   "type": "change",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "Programmplatz 10",
                                                   "rules": [
                                                       {
                                                           "t": "set",
                                                           "p": "payload",
                                                           "pt": "msg",
                                                           "to": "10",
                                                           "tot": "str"
                                                       }
                                                   ],
                                                   "action": "",
                                                   "property": "",
                                                   "from": "",
                                                   "to": "",
                                                   "reg": false,
                                                   "x": 430,
                                                   "y": 140,
                                                   "wires": [
                                                       [
                                                           "41550327.2bf39c"
                                                       ]
                                                   ]
                                               },
                                               {
                                                   "id": "f7c2bd16.233fd",
                                                   "type": "inject",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "ZDF",
                                                   "props": [
                                                       {
                                                           "p": "payload"
                                                       }
                                                   ],
                                                   "repeat": "",
                                                   "crontab": "",
                                                   "once": false,
                                                   "onceDelay": 0.1,
                                                   "topic": "",
                                                   "payload": "11",
                                                   "payloadType": "str",
                                                   "x": 250,
                                                   "y": 180,
                                                   "wires": [
                                                       [
                                                           "b1042862.fb3ba8"
                                                       ]
                                                   ]
                                               },
                                               {
                                                   "id": "b1042862.fb3ba8",
                                                   "type": "change",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "Programmplatz 11",
                                                   "rules": [
                                                       {
                                                           "t": "set",
                                                           "p": "payload",
                                                           "pt": "msg",
                                                           "to": "11",
                                                           "tot": "str"
                                                       }
                                                   ],
                                                   "action": "",
                                                   "property": "",
                                                   "from": "",
                                                   "to": "",
                                                   "reg": false,
                                                   "x": 430,
                                                   "y": 180,
                                                   "wires": [
                                                       [
                                                           "41550327.2bf39c"
                                                       ]
                                                   ]
                                               },
                                               {
                                                   "id": "81031c96.e4e03",
                                                   "type": "change",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "Setze 1 für Tastendruck",
                                                   "rules": [
                                                       {
                                                           "t": "set",
                                                           "p": "payload",
                                                           "pt": "msg",
                                                           "to": "1",
                                                           "tot": "num"
                                                       }
                                                   ],
                                                   "action": "",
                                                   "property": "",
                                                   "from": "",
                                                   "to": "",
                                                   "reg": false,
                                                   "x": 990,
                                                   "y": 80,
                                                   "wires": [
                                                       [
                                                           "d6f4657d.bcc268"
                                                       ]
                                                   ]
                                               },
                                               {
                                                   "id": "6dc90375.86eebc",
                                                   "type": "change",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "Setze 1 für Tastendruck",
                                                   "rules": [
                                                       {
                                                           "t": "set",
                                                           "p": "payload",
                                                           "pt": "msg",
                                                           "to": "1",
                                                           "tot": "num"
                                                       }
                                                   ],
                                                   "action": "",
                                                   "property": "",
                                                   "from": "",
                                                   "to": "",
                                                   "reg": false,
                                                   "x": 990,
                                                   "y": 120,
                                                   "wires": [
                                                       [
                                                           "fc1a91f1.e1c14"
                                                       ]
                                                   ]
                                               },
                                               {
                                                   "id": "a9da448a.767fd8",
                                                   "type": "change",
                                                   "z": "e8c5c56.e220438",
                                                   "name": "Setze 1 für Tastendruck",
                                                   "rules": [
                                                       {
                                                           "t": "set",
                                                           "p": "payload",
                                                           "pt": "msg",
                                                           "to": "1",
                                                           "tot": "num"
                                                       }
                                                   ],
                                                   "action": "",
                                                   "property": "",
                                                   "from": "",
                                                   "to": "",
                                                   "reg": false,
                                                   "x": 990,
                                                   "y": 160,
                                                   "wires": [
                                                       [
                                                           "113e7478.8fecec"
                                                       ]
                                                   ]
                                               }
                                            ]
                                            

                                            Im Moment siehst Du anhand der Debug Nodes - das die richtigen Tasten gedrückt werden - habe ich markiert über das Topic:

                                            f215e1a5-3901-4ac5-9f62-7836f6e9e2b1-image.png

                                            Aphofis 2 Replies 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

                                            2
                                            42
                                            1002
                                            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