Skip to content
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Shellys ("Alt und Plus") über MQTT Adapter

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.1k

Shellys ("Alt und Plus") über MQTT Adapter

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
512 Beiträge 5 Kommentatoren 93.2k Aufrufe 6 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • mickymM mickym

    @hotspot_2 anscheinend hast du nicht das extra Backup von Node-red gehabt und zurückgespielt sondern nur den Standard Backup. Du musst nun halt im Palettenmanager alle Nodetypen die fehlen noch nach installieren.

    Also die lightscheduler,time-range und die pushover node im Palettenmanager installieren.
    Für die Zukunft ggf. das NodeRed backup zurückspielen.

    Falls du das wider Erwarten hattest, dann sollten in deinem Node-Red Verzeichnis eine Datei package.json vorhanden sein, die die entsprechenden Referenzen hat. Dann kann man die fehlenden-Module im Instanzenverzeichnis mit npm install nachinstallieren. Aber bei 3 Nodetypen geht das auch über den Palettenmanager.

    Und für die Zukunft check mal, ob du NodeRed extra mit dem Backup Adapter sicherst.

    H Offline
    H Offline
    hotspot_2
    schrieb am zuletzt editiert von
    #489

    @mickym Das mit den Nodes passt jetzt, habe alle über den Palettenmanager nachinstalliert.

    Leider funktionieren die Flows trotzdem (noch) nicht.

    Sehe diese Meldung hier im Protokoll:

    fac8ba4a-bf03-4a48-a910-cc6ad79ba3c2-image.png

    Was ist denn noch zu tun?

    mickymM 1 Antwort Letzte Antwort
    0
    • H hotspot_2

      @mickym Das mit den Nodes passt jetzt, habe alle über den Palettenmanager nachinstalliert.

      Leider funktionieren die Flows trotzdem (noch) nicht.

      Sehe diese Meldung hier im Protokoll:

      fac8ba4a-bf03-4a48-a910-cc6ad79ba3c2-image.png

      Was ist denn noch zu tun?

      mickymM Online
      mickymM Online
      mickym
      Most Active
      schrieb am zuletzt editiert von mickym
      #490

      @hotspot_2 also die Projekte Warnung kannst du ignorieren. Die andere Meldung kenne ich nicht, weil ich keine Authentifizierung nutze. Da kann ich leider im Moment nichts dazu sagen.

      https://forum.iobroker.net/post/775793

      Wie gesagt es scheint dass du Authentifizierung nutzt und dadurch irgendwas in die settings eingetragen wird. Ich habe mich damit nicht beschäftigt da ich das alles nicht nutze.

      Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

      H 1 Antwort Letzte Antwort
      0
      • mickymM mickym

        @hotspot_2 also die Projekte Warnung kannst du ignorieren. Die andere Meldung kenne ich nicht, weil ich keine Authentifizierung nutze. Da kann ich leider im Moment nichts dazu sagen.

        https://forum.iobroker.net/post/775793

        Wie gesagt es scheint dass du Authentifizierung nutzt und dadurch irgendwas in die settings eingetragen wird. Ich habe mich damit nicht beschäftigt da ich das alles nicht nutze.

        H Offline
        H Offline
        hotspot_2
        schrieb am zuletzt editiert von
        #491

        @mickym Ich glaube das ist aber nicht mein Problem das bei mir keine Shellys mehr angesteuert werden. Also die beiden Meldungen oben.

        3b20c2f1-293e-469e-8d6e-91e7ef5807a6-image.png

        Wenn ich status_update injecte dann passiert in der Ausgabe gar nichts obwohl ein Debug mir anzeigt das der Payload rausgeht. Ich krieg aber unter den unteren drei Debugs gar keine Ausgabe.

        Kann es sein das ich nur irgendwas am MQTT-Adapter machen muss? Der Adapter läuft eigentlich, Node-Red auch und mosquitto habe ich auch installiert auf dem proxmox Container.

        mickymM 1 Antwort Letzte Antwort
        0
        • H hotspot_2

          @mickym Ich glaube das ist aber nicht mein Problem das bei mir keine Shellys mehr angesteuert werden. Also die beiden Meldungen oben.

          3b20c2f1-293e-469e-8d6e-91e7ef5807a6-image.png

          Wenn ich status_update injecte dann passiert in der Ausgabe gar nichts obwohl ein Debug mir anzeigt das der Payload rausgeht. Ich krieg aber unter den unteren drei Debugs gar keine Ausgabe.

          Kann es sein das ich nur irgendwas am MQTT-Adapter machen muss? Der Adapter läuft eigentlich, Node-Red auch und mosquitto habe ich auch installiert auf dem proxmox Container.

          mickymM Online
          mickymM Online
          mickym
          Most Active
          schrieb am zuletzt editiert von mickym
          #492

          @hotspot_2 Na Deine Verbindung von NodeRed geht ja direkt zu mosquitto und ich sehe den Status verbunden. Das heißt wichtig ist erst mal diese Verbindung - das hat mit dem iobroker mqtt Adapter ja nichts zu tun. - Ich gehe mal davon aus, dass Du mit NodeRed direkt eine Verbindung zu mosquitto aufbauen willst.

          Ich würde da erst mal ganz einfach anfangen in dem ich ein topic schreibe und gleichzeitig höre. Im Prinzip ist ja nur mosquitto der Broker - das heisst sowohl NodeRed als auch der mqtt-Adapter brauchen Kommunikation zum mosquitto.

          Wenn das in einem anderen Container läuft dann musst Du halt schauen, dass da nichts verschluckt wird.

          das muss funktionieren:

          e3dd0b05-0c3e-4cf1-ad06-e147980bca6c-image.png

          Wenn das tut - dann hast Du mit den Shellies ein Problem aber nicht mit mqtt und NodeRed. Der mqtt-Adapter im iobroker dient nur als Client um weiter zu schalten oder zu monitoren.

          Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

          H 1 Antwort Letzte Antwort
          0
          • mickymM mickym

            @hotspot_2 Na Deine Verbindung von NodeRed geht ja direkt zu mosquitto und ich sehe den Status verbunden. Das heißt wichtig ist erst mal diese Verbindung - das hat mit dem iobroker mqtt Adapter ja nichts zu tun. - Ich gehe mal davon aus, dass Du mit NodeRed direkt eine Verbindung zu mosquitto aufbauen willst.

            Ich würde da erst mal ganz einfach anfangen in dem ich ein topic schreibe und gleichzeitig höre. Im Prinzip ist ja nur mosquitto der Broker - das heisst sowohl NodeRed als auch der mqtt-Adapter brauchen Kommunikation zum mosquitto.

            Wenn das in einem anderen Container läuft dann musst Du halt schauen, dass da nichts verschluckt wird.

            das muss funktionieren:

            e3dd0b05-0c3e-4cf1-ad06-e147980bca6c-image.png

            Wenn das tut - dann hast Du mit den Shellies ein Problem aber nicht mit mqtt und NodeRed. Der mqtt-Adapter im iobroker dient nur als Client um weiter zu schalten oder zu monitoren.

            H Offline
            H Offline
            hotspot_2
            schrieb am zuletzt editiert von
            #493

            @mickym Ich hab's. Den mosquitto sollte man auch noch konfigurieren. Nachdem das gemacht wurde klappt nun alles wieder.

            Danke für deine Hilfe!

            H 1 Antwort Letzte Antwort
            1
            • H hotspot_2

              @mickym Ich hab's. Den mosquitto sollte man auch noch konfigurieren. Nachdem das gemacht wurde klappt nun alles wieder.

              Danke für deine Hilfe!

              H Offline
              H Offline
              hotspot_2
              schrieb am zuletzt editiert von
              #494

              @hotspot_2 Ich habe nochmal eine andere Frage zu einem Flow. Ich überwache bei allen Shellys mit Batterie (Bewegungsmelder, Wassermelder usw.) wenn die Batterie schwach wird und lasse dann eine Mail / Pushover verschicken.

              Nun meine Frage dazu: Gibt es eine einfache Möglichkeit sicherzustellen das so eine Meldung nur einmal am Tag versendet wird?

              Danke schon mal.

              mickymM 1 Antwort Letzte Antwort
              0
              • H hotspot_2

                @hotspot_2 Ich habe nochmal eine andere Frage zu einem Flow. Ich überwache bei allen Shellys mit Batterie (Bewegungsmelder, Wassermelder usw.) wenn die Batterie schwach wird und lasse dann eine Mail / Pushover verschicken.

                Nun meine Frage dazu: Gibt es eine einfache Möglichkeit sicherzustellen das so eine Meldung nur einmal am Tag versendet wird?

                Danke schon mal.

                mickymM Online
                mickymM Online
                mickym
                Most Active
                schrieb am zuletzt editiert von mickym
                #495

                @hotspot_2 am wenigsten Aufwand ist es, wenn Du den Batteriezustand im Kontext oder in einem Datenpunkt festhältst und diesen einmal zu einer bestimmten Zeit abrufst. Alternativ kannst du auch einen Marker setzen, den Du einmal in der Nacht zurücksetzt.

                Wenn es kein Problem ist, dass ein Neustart von NodeRed den Zustand vergisst, dann speicherst Du den Status in einer Variablen, sonst musst halt wieder einen Datenpunkt als Indikator verwenden.

                Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                H 1 Antwort Letzte Antwort
                0
                • mickymM mickym

                  @hotspot_2 am wenigsten Aufwand ist es, wenn Du den Batteriezustand im Kontext oder in einem Datenpunkt festhältst und diesen einmal zu einer bestimmten Zeit abrufst. Alternativ kannst du auch einen Marker setzen, den Du einmal in der Nacht zurücksetzt.

                  Wenn es kein Problem ist, dass ein Neustart von NodeRed den Zustand vergisst, dann speicherst Du den Status in einer Variablen, sonst musst halt wieder einen Datenpunkt als Indikator verwenden.

                  H Offline
                  H Offline
                  hotspot_2
                  schrieb am zuletzt editiert von hotspot_2
                  #496

                  @mickym Hallo, ich habe mal noch eine Verständnisfrage:

                  Ich habe ja einen Flow gebastelt der drei Lichter im Keller anschaltet wenn der Bewegungsmelder getriggert wird oder wenn der Lichttaster angeht. Nach 5 Minuten geht das Licht dann wieder aus (Trigger). Ich würde nun gerne noch zusätzlich das halten eines Lichtschalters (long push) abfangen um damit das Licht dann manuell aus und einschalten zu können.

                  [
                      {
                          "id": "ae979309777cfd8f",
                          "type": "mqtt in",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "topic": "shellies/sonstiges/bwm_wk/status",
                          "qos": "2",
                          "datatype": "auto-detect",
                          "broker": "b22fc4d3e3f172bb",
                          "nl": false,
                          "rap": true,
                          "rh": 0,
                          "inputs": 0,
                          "x": 170,
                          "y": 140,
                          "wires": [
                              [
                                  "b275779cdcb8ca87"
                              ]
                          ]
                      },
                      {
                          "id": "4d6c21f253707f3a",
                          "type": "mqtt in",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "topic": "shellies/sonstiges/bwm_flur_keller/status",
                          "qos": "2",
                          "datatype": "auto-detect",
                          "broker": "b22fc4d3e3f172bb",
                          "nl": false,
                          "rap": true,
                          "rh": 0,
                          "inputs": 0,
                          "x": 200,
                          "y": 200,
                          "wires": [
                              [
                                  "ce3fea7966a34734"
                              ]
                          ]
                      },
                      {
                          "id": "ce3fea7966a34734",
                          "type": "switch",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "property": "payload.motion",
                          "propertyType": "msg",
                          "rules": [
                              {
                                  "t": "true"
                              }
                          ],
                          "checkall": "true",
                          "repair": false,
                          "outputs": 1,
                          "x": 490,
                          "y": 200,
                          "wires": [
                              [
                                  "ad67b76febdf0a92"
                              ]
                          ]
                      },
                      {
                          "id": "de365cd7a4813149",
                          "type": "change",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "rules": [
                              {
                                  "t": "set",
                                  "p": "payload",
                                  "pt": "msg",
                                  "to": "{\t   \"id\":199,\t   \"src\":\"hotspot_2\",\t   \"method\":\"Switch.Set\",\t   \"params\":{\"id\":0,\"on\":payload}\t}\t \t",
                                  "tot": "jsonata"
                              }
                          ],
                          "action": "",
                          "property": "",
                          "from": "",
                          "to": "",
                          "reg": false,
                          "x": 1230,
                          "y": 260,
                          "wires": [
                              [
                                  "541e8fa04f94475d",
                                  "df00a6eda1372fa1",
                                  "7e4aebe657e40852"
                              ]
                          ]
                      },
                      {
                          "id": "0e35c29460abd499",
                          "type": "mqtt out",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "topic": "shellies/licht/keller/waschkueche/rpc",
                          "qos": "",
                          "retain": "",
                          "respTopic": "",
                          "contentType": "",
                          "userProps": "",
                          "correl": "",
                          "expiry": "",
                          "broker": "b22fc4d3e3f172bb",
                          "x": 2430,
                          "y": 340,
                          "wires": []
                      },
                      {
                          "id": "541e8fa04f94475d",
                          "type": "mqtt out",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "topic": "shellies/licht/keller/flur_keller_vorne/rpc",
                          "qos": "",
                          "retain": "",
                          "respTopic": "",
                          "contentType": "",
                          "userProps": "",
                          "correl": "",
                          "expiry": "",
                          "broker": "b22fc4d3e3f172bb",
                          "x": 1560,
                          "y": 200,
                          "wires": []
                      },
                      {
                          "id": "658b57870ce763a7",
                          "type": "trigger",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "op1": "true",
                          "op2": "false",
                          "op1type": "bool",
                          "op2type": "bool",
                          "duration": "5",
                          "extend": true,
                          "overrideDelay": false,
                          "units": "min",
                          "reset": "",
                          "bytopic": "all",
                          "topic": "topic",
                          "outputs": 1,
                          "x": 1030,
                          "y": 260,
                          "wires": [
                              [
                                  "de365cd7a4813149"
                              ]
                          ]
                      },
                      {
                          "id": "ad67b76febdf0a92",
                          "type": "ioBroker get",
                          "z": "692f3cf44001c136",
                          "name": "Schalter",
                          "topic": "0_userdata.0.hausautomation.bwm_flur_keller_aktiv",
                          "attrname": "payload",
                          "payloadType": "value",
                          "errOnInvalidState": "nothing",
                          "x": 640,
                          "y": 200,
                          "wires": [
                              [
                                  "c7a2538582f26f99"
                              ]
                          ]
                      },
                      {
                          "id": "c7a2538582f26f99",
                          "type": "switch",
                          "z": "692f3cf44001c136",
                          "name": "Schalter = true?",
                          "property": "payload",
                          "propertyType": "msg",
                          "rules": [
                              {
                                  "t": "true"
                              }
                          ],
                          "checkall": "true",
                          "repair": false,
                          "outputs": 1,
                          "x": 820,
                          "y": 200,
                          "wires": [
                              [
                                  "658b57870ce763a7"
                              ]
                          ]
                      },
                      {
                          "id": "df00a6eda1372fa1",
                          "type": "mqtt out",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "topic": "shellies/licht/keller/flur_keller_hinten/rpc",
                          "qos": "",
                          "retain": "",
                          "respTopic": "",
                          "contentType": "",
                          "userProps": "",
                          "correl": "",
                          "expiry": "",
                          "broker": "b22fc4d3e3f172bb",
                          "x": 1560,
                          "y": 260,
                          "wires": []
                      },
                      {
                          "id": "eb3fcf783b74fd7a",
                          "type": "mqtt in",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "topic": "shellies/licht/keller/waschkueche/events/rpc",
                          "qos": "2",
                          "datatype": "auto-detect",
                          "broker": "b22fc4d3e3f172bb",
                          "nl": false,
                          "rap": true,
                          "rh": 0,
                          "inputs": 0,
                          "x": 200,
                          "y": 260,
                          "wires": [
                              [
                                  "1e6515cac6ba6901"
                              ]
                          ]
                      },
                      {
                          "id": "90c60a9f3a115521",
                          "type": "mqtt in",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "topic": "shellies/licht/keller/flur_keller_hinten/events/rpc",
                          "qos": "2",
                          "datatype": "auto-detect",
                          "broker": "b22fc4d3e3f172bb",
                          "nl": false,
                          "rap": true,
                          "rh": 0,
                          "inputs": 0,
                          "x": 220,
                          "y": 320,
                          "wires": [
                              [
                                  "1e6515cac6ba6901"
                              ]
                          ]
                      },
                      {
                          "id": "1416273ebfce58bb",
                          "type": "mqtt in",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "topic": "shellies/licht/keller/flur_keller_vorne/events/rpc",
                          "qos": "2",
                          "datatype": "auto-detect",
                          "broker": "b22fc4d3e3f172bb",
                          "nl": false,
                          "rap": true,
                          "rh": 0,
                          "inputs": 0,
                          "x": 210,
                          "y": 380,
                          "wires": [
                              [
                                  "1e6515cac6ba6901"
                              ]
                          ]
                      },
                      {
                          "id": "1e6515cac6ba6901",
                          "type": "switch",
                          "z": "692f3cf44001c136",
                          "name": "NotifyEvent",
                          "property": "payload.method",
                          "propertyType": "msg",
                          "rules": [
                              {
                                  "t": "eq",
                                  "v": "NotifyEvent",
                                  "vt": "str"
                              }
                          ],
                          "checkall": "true",
                          "repair": false,
                          "outputs": 1,
                          "x": 530,
                          "y": 320,
                          "wires": [
                              [
                                  "ccaf9c5d06ca071a"
                              ]
                          ]
                      },
                      {
                          "id": "ccaf9c5d06ca071a",
                          "type": "switch",
                          "z": "692f3cf44001c136",
                          "name": "input:0 = btn_down",
                          "property": "payload.params.events[0].component=\"input:0\" and payload.params.events[0].event = \"btn_down\"",
                          "propertyType": "jsonata",
                          "rules": [
                              {
                                  "t": "true"
                              }
                          ],
                          "checkall": "true",
                          "repair": false,
                          "outputs": 1,
                          "x": 730,
                          "y": 320,
                          "wires": [
                              [
                                  "658b57870ce763a7"
                              ]
                          ]
                      },
                      {
                          "id": "323856145be0390f",
                          "type": "ioBroker get",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "topic": "0_userdata.0.hausautomation.lux_bewegungsmelder_wk",
                          "attrname": "limit_lux_wk",
                          "payloadType": "value",
                          "errOnInvalidState": "nothing",
                          "x": 1790,
                          "y": 320,
                          "wires": [
                              [
                                  "29d46c0be09b69a6"
                              ]
                          ]
                      },
                      {
                          "id": "29d46c0be09b69a6",
                          "type": "switch",
                          "z": "692f3cf44001c136",
                          "name": "lux_wk < limit_lux_wk",
                          "property": "lux_wk",
                          "propertyType": "flow",
                          "rules": [
                              {
                                  "t": "lte",
                                  "v": "limit_lux_wk",
                                  "vt": "msg"
                              }
                          ],
                          "checkall": "true",
                          "repair": false,
                          "outputs": 1,
                          "x": 2140,
                          "y": 320,
                          "wires": [
                              [
                                  "0e35c29460abd499"
                              ]
                          ]
                      },
                      {
                          "id": "7e4aebe657e40852",
                          "type": "switch",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "property": "payload.params.on",
                          "propertyType": "msg",
                          "rules": [
                              {
                                  "t": "true"
                              },
                              {
                                  "t": "false"
                              }
                          ],
                          "checkall": "true",
                          "repair": false,
                          "outputs": 2,
                          "x": 1450,
                          "y": 340,
                          "wires": [
                              [
                                  "323856145be0390f"
                              ],
                              [
                                  "519701bc8160d15c"
                              ]
                          ]
                      },
                      {
                          "id": "b275779cdcb8ca87",
                          "type": "change",
                          "z": "692f3cf44001c136",
                          "name": "",
                          "rules": [
                              {
                                  "t": "set",
                                  "p": "lux_wk",
                                  "pt": "flow",
                                  "to": "payload.lux",
                                  "tot": "msg"
                              }
                          ],
                          "action": "",
                          "property": "",
                          "from": "",
                          "to": "",
                          "reg": false,
                          "x": 430,
                          "y": 140,
                          "wires": [
                              [
                                  "ce3fea7966a34734"
                              ]
                          ]
                      },
                      {
                          "id": "0a4a5cad7064557a",
                          "type": "junction",
                          "z": "692f3cf44001c136",
                          "x": 2240,
                          "y": 360,
                          "wires": [
                              [
                                  "0e35c29460abd499"
                              ]
                          ]
                      },
                      {
                          "id": "519701bc8160d15c",
                          "type": "junction",
                          "z": "692f3cf44001c136",
                          "x": 1580,
                          "y": 360,
                          "wires": [
                              [
                                  "0a4a5cad7064557a"
                              ]
                          ]
                      },
                      {
                          "id": "b22fc4d3e3f172bb",
                          "type": "mqtt-broker",
                          "name": "iobroker mqtt adapter",
                          "broker": "localhost",
                          "port": "1883",
                          "clientid": "mqttin_nodered",
                          "autoConnect": true,
                          "usetls": false,
                          "protocolVersion": "4",
                          "keepalive": "60",
                          "cleansession": true,
                          "birthTopic": "",
                          "birthQos": "0",
                          "birthPayload": "",
                          "birthMsg": {},
                          "closeTopic": "",
                          "closeQos": "0",
                          "closePayload": "",
                          "closeMsg": {},
                          "willTopic": "",
                          "willQos": "0",
                          "willPayload": "",
                          "willMsg": {},
                          "userProps": "",
                          "sessionExpiry": ""
                      }
                  ]
                  

                  cbdef8f3-edbc-4adb-b837-adb8a52a429d-image.png

                  Wie bekomme ich das hin das ich in dem Switch vor dem Trigger (input:0 = btn_down) das Event für den Long Push noch abfangen kann und von da aus dann verzweige zu dem was passiert wenn das Licht manuell aus und eingeschalten wird? Vor dem Trigger würde ich noch einen Switch einbauen der abfrägt ob das Licht manuell eingeschalten wurde (iobroker_objekt boolean) um dann den Trigger nicht zu starten wenn das Licht manuell angeschalten wurde damit es dann auch manuell wieder ausgeschalten werden muss oder ausgeschaltet werden kann.

                  H 1 Antwort Letzte Antwort
                  0
                  • H hotspot_2

                    @mickym Hallo, ich habe mal noch eine Verständnisfrage:

                    Ich habe ja einen Flow gebastelt der drei Lichter im Keller anschaltet wenn der Bewegungsmelder getriggert wird oder wenn der Lichttaster angeht. Nach 5 Minuten geht das Licht dann wieder aus (Trigger). Ich würde nun gerne noch zusätzlich das halten eines Lichtschalters (long push) abfangen um damit das Licht dann manuell aus und einschalten zu können.

                    [
                        {
                            "id": "ae979309777cfd8f",
                            "type": "mqtt in",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/sonstiges/bwm_wk/status",
                            "qos": "2",
                            "datatype": "auto-detect",
                            "broker": "b22fc4d3e3f172bb",
                            "nl": false,
                            "rap": true,
                            "rh": 0,
                            "inputs": 0,
                            "x": 170,
                            "y": 140,
                            "wires": [
                                [
                                    "b275779cdcb8ca87"
                                ]
                            ]
                        },
                        {
                            "id": "4d6c21f253707f3a",
                            "type": "mqtt in",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/sonstiges/bwm_flur_keller/status",
                            "qos": "2",
                            "datatype": "auto-detect",
                            "broker": "b22fc4d3e3f172bb",
                            "nl": false,
                            "rap": true,
                            "rh": 0,
                            "inputs": 0,
                            "x": 200,
                            "y": 200,
                            "wires": [
                                [
                                    "ce3fea7966a34734"
                                ]
                            ]
                        },
                        {
                            "id": "ce3fea7966a34734",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "property": "payload.motion",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "true"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 1,
                            "x": 490,
                            "y": 200,
                            "wires": [
                                [
                                    "ad67b76febdf0a92"
                                ]
                            ]
                        },
                        {
                            "id": "de365cd7a4813149",
                            "type": "change",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "rules": [
                                {
                                    "t": "set",
                                    "p": "payload",
                                    "pt": "msg",
                                    "to": "{\t   \"id\":199,\t   \"src\":\"hotspot_2\",\t   \"method\":\"Switch.Set\",\t   \"params\":{\"id\":0,\"on\":payload}\t}\t \t",
                                    "tot": "jsonata"
                                }
                            ],
                            "action": "",
                            "property": "",
                            "from": "",
                            "to": "",
                            "reg": false,
                            "x": 1230,
                            "y": 260,
                            "wires": [
                                [
                                    "541e8fa04f94475d",
                                    "df00a6eda1372fa1",
                                    "7e4aebe657e40852"
                                ]
                            ]
                        },
                        {
                            "id": "0e35c29460abd499",
                            "type": "mqtt out",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/waschkueche/rpc",
                            "qos": "",
                            "retain": "",
                            "respTopic": "",
                            "contentType": "",
                            "userProps": "",
                            "correl": "",
                            "expiry": "",
                            "broker": "b22fc4d3e3f172bb",
                            "x": 2430,
                            "y": 340,
                            "wires": []
                        },
                        {
                            "id": "541e8fa04f94475d",
                            "type": "mqtt out",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/flur_keller_vorne/rpc",
                            "qos": "",
                            "retain": "",
                            "respTopic": "",
                            "contentType": "",
                            "userProps": "",
                            "correl": "",
                            "expiry": "",
                            "broker": "b22fc4d3e3f172bb",
                            "x": 1560,
                            "y": 200,
                            "wires": []
                        },
                        {
                            "id": "658b57870ce763a7",
                            "type": "trigger",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "op1": "true",
                            "op2": "false",
                            "op1type": "bool",
                            "op2type": "bool",
                            "duration": "5",
                            "extend": true,
                            "overrideDelay": false,
                            "units": "min",
                            "reset": "",
                            "bytopic": "all",
                            "topic": "topic",
                            "outputs": 1,
                            "x": 1030,
                            "y": 260,
                            "wires": [
                                [
                                    "de365cd7a4813149"
                                ]
                            ]
                        },
                        {
                            "id": "ad67b76febdf0a92",
                            "type": "ioBroker get",
                            "z": "692f3cf44001c136",
                            "name": "Schalter",
                            "topic": "0_userdata.0.hausautomation.bwm_flur_keller_aktiv",
                            "attrname": "payload",
                            "payloadType": "value",
                            "errOnInvalidState": "nothing",
                            "x": 640,
                            "y": 200,
                            "wires": [
                                [
                                    "c7a2538582f26f99"
                                ]
                            ]
                        },
                        {
                            "id": "c7a2538582f26f99",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "Schalter = true?",
                            "property": "payload",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "true"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 1,
                            "x": 820,
                            "y": 200,
                            "wires": [
                                [
                                    "658b57870ce763a7"
                                ]
                            ]
                        },
                        {
                            "id": "df00a6eda1372fa1",
                            "type": "mqtt out",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/flur_keller_hinten/rpc",
                            "qos": "",
                            "retain": "",
                            "respTopic": "",
                            "contentType": "",
                            "userProps": "",
                            "correl": "",
                            "expiry": "",
                            "broker": "b22fc4d3e3f172bb",
                            "x": 1560,
                            "y": 260,
                            "wires": []
                        },
                        {
                            "id": "eb3fcf783b74fd7a",
                            "type": "mqtt in",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/waschkueche/events/rpc",
                            "qos": "2",
                            "datatype": "auto-detect",
                            "broker": "b22fc4d3e3f172bb",
                            "nl": false,
                            "rap": true,
                            "rh": 0,
                            "inputs": 0,
                            "x": 200,
                            "y": 260,
                            "wires": [
                                [
                                    "1e6515cac6ba6901"
                                ]
                            ]
                        },
                        {
                            "id": "90c60a9f3a115521",
                            "type": "mqtt in",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/flur_keller_hinten/events/rpc",
                            "qos": "2",
                            "datatype": "auto-detect",
                            "broker": "b22fc4d3e3f172bb",
                            "nl": false,
                            "rap": true,
                            "rh": 0,
                            "inputs": 0,
                            "x": 220,
                            "y": 320,
                            "wires": [
                                [
                                    "1e6515cac6ba6901"
                                ]
                            ]
                        },
                        {
                            "id": "1416273ebfce58bb",
                            "type": "mqtt in",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/flur_keller_vorne/events/rpc",
                            "qos": "2",
                            "datatype": "auto-detect",
                            "broker": "b22fc4d3e3f172bb",
                            "nl": false,
                            "rap": true,
                            "rh": 0,
                            "inputs": 0,
                            "x": 210,
                            "y": 380,
                            "wires": [
                                [
                                    "1e6515cac6ba6901"
                                ]
                            ]
                        },
                        {
                            "id": "1e6515cac6ba6901",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "NotifyEvent",
                            "property": "payload.method",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "eq",
                                    "v": "NotifyEvent",
                                    "vt": "str"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 1,
                            "x": 530,
                            "y": 320,
                            "wires": [
                                [
                                    "ccaf9c5d06ca071a"
                                ]
                            ]
                        },
                        {
                            "id": "ccaf9c5d06ca071a",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "input:0 = btn_down",
                            "property": "payload.params.events[0].component=\"input:0\" and payload.params.events[0].event = \"btn_down\"",
                            "propertyType": "jsonata",
                            "rules": [
                                {
                                    "t": "true"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 1,
                            "x": 730,
                            "y": 320,
                            "wires": [
                                [
                                    "658b57870ce763a7"
                                ]
                            ]
                        },
                        {
                            "id": "323856145be0390f",
                            "type": "ioBroker get",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "0_userdata.0.hausautomation.lux_bewegungsmelder_wk",
                            "attrname": "limit_lux_wk",
                            "payloadType": "value",
                            "errOnInvalidState": "nothing",
                            "x": 1790,
                            "y": 320,
                            "wires": [
                                [
                                    "29d46c0be09b69a6"
                                ]
                            ]
                        },
                        {
                            "id": "29d46c0be09b69a6",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "lux_wk < limit_lux_wk",
                            "property": "lux_wk",
                            "propertyType": "flow",
                            "rules": [
                                {
                                    "t": "lte",
                                    "v": "limit_lux_wk",
                                    "vt": "msg"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 1,
                            "x": 2140,
                            "y": 320,
                            "wires": [
                                [
                                    "0e35c29460abd499"
                                ]
                            ]
                        },
                        {
                            "id": "7e4aebe657e40852",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "property": "payload.params.on",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "true"
                                },
                                {
                                    "t": "false"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 2,
                            "x": 1450,
                            "y": 340,
                            "wires": [
                                [
                                    "323856145be0390f"
                                ],
                                [
                                    "519701bc8160d15c"
                                ]
                            ]
                        },
                        {
                            "id": "b275779cdcb8ca87",
                            "type": "change",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "rules": [
                                {
                                    "t": "set",
                                    "p": "lux_wk",
                                    "pt": "flow",
                                    "to": "payload.lux",
                                    "tot": "msg"
                                }
                            ],
                            "action": "",
                            "property": "",
                            "from": "",
                            "to": "",
                            "reg": false,
                            "x": 430,
                            "y": 140,
                            "wires": [
                                [
                                    "ce3fea7966a34734"
                                ]
                            ]
                        },
                        {
                            "id": "0a4a5cad7064557a",
                            "type": "junction",
                            "z": "692f3cf44001c136",
                            "x": 2240,
                            "y": 360,
                            "wires": [
                                [
                                    "0e35c29460abd499"
                                ]
                            ]
                        },
                        {
                            "id": "519701bc8160d15c",
                            "type": "junction",
                            "z": "692f3cf44001c136",
                            "x": 1580,
                            "y": 360,
                            "wires": [
                                [
                                    "0a4a5cad7064557a"
                                ]
                            ]
                        },
                        {
                            "id": "b22fc4d3e3f172bb",
                            "type": "mqtt-broker",
                            "name": "iobroker mqtt adapter",
                            "broker": "localhost",
                            "port": "1883",
                            "clientid": "mqttin_nodered",
                            "autoConnect": true,
                            "usetls": false,
                            "protocolVersion": "4",
                            "keepalive": "60",
                            "cleansession": true,
                            "birthTopic": "",
                            "birthQos": "0",
                            "birthPayload": "",
                            "birthMsg": {},
                            "closeTopic": "",
                            "closeQos": "0",
                            "closePayload": "",
                            "closeMsg": {},
                            "willTopic": "",
                            "willQos": "0",
                            "willPayload": "",
                            "willMsg": {},
                            "userProps": "",
                            "sessionExpiry": ""
                        }
                    ]
                    

                    cbdef8f3-edbc-4adb-b837-adb8a52a429d-image.png

                    Wie bekomme ich das hin das ich in dem Switch vor dem Trigger (input:0 = btn_down) das Event für den Long Push noch abfangen kann und von da aus dann verzweige zu dem was passiert wenn das Licht manuell aus und eingeschalten wird? Vor dem Trigger würde ich noch einen Switch einbauen der abfrägt ob das Licht manuell eingeschalten wurde (iobroker_objekt boolean) um dann den Trigger nicht zu starten wenn das Licht manuell angeschalten wurde damit es dann auch manuell wieder ausgeschalten werden muss oder ausgeschaltet werden kann.

                    H Offline
                    H Offline
                    hotspot_2
                    schrieb am zuletzt editiert von hotspot_2
                    #497

                    @hotspot_2

                    So, die Abfrage ob das Licht manuell eingeschaltet wurde ist mal drin.

                    [
                        {
                            "id": "ae979309777cfd8f",
                            "type": "mqtt in",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/sonstiges/bwm_wk/status",
                            "qos": "2",
                            "datatype": "auto-detect",
                            "broker": "b22fc4d3e3f172bb",
                            "nl": false,
                            "rap": true,
                            "rh": 0,
                            "inputs": 0,
                            "x": 170,
                            "y": 140,
                            "wires": [
                                [
                                    "b275779cdcb8ca87"
                                ]
                            ]
                        },
                        {
                            "id": "4d6c21f253707f3a",
                            "type": "mqtt in",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/sonstiges/bwm_flur_keller/status",
                            "qos": "2",
                            "datatype": "auto-detect",
                            "broker": "b22fc4d3e3f172bb",
                            "nl": false,
                            "rap": true,
                            "rh": 0,
                            "inputs": 0,
                            "x": 200,
                            "y": 200,
                            "wires": [
                                [
                                    "ce3fea7966a34734"
                                ]
                            ]
                        },
                        {
                            "id": "ce3fea7966a34734",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "property": "payload.motion",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "true"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 1,
                            "x": 490,
                            "y": 200,
                            "wires": [
                                [
                                    "ad67b76febdf0a92"
                                ]
                            ]
                        },
                        {
                            "id": "de365cd7a4813149",
                            "type": "change",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "rules": [
                                {
                                    "t": "set",
                                    "p": "payload",
                                    "pt": "msg",
                                    "to": "{\t   \"id\":199,\t   \"src\":\"hotspot_2\",\t   \"method\":\"Switch.Set\",\t   \"params\":{\"id\":0,\"on\":payload}\t}\t \t",
                                    "tot": "jsonata"
                                }
                            ],
                            "action": "",
                            "property": "",
                            "from": "",
                            "to": "",
                            "reg": false,
                            "x": 1670,
                            "y": 260,
                            "wires": [
                                [
                                    "541e8fa04f94475d",
                                    "df00a6eda1372fa1",
                                    "7e4aebe657e40852"
                                ]
                            ]
                        },
                        {
                            "id": "0e35c29460abd499",
                            "type": "mqtt out",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/waschkueche/rpc",
                            "qos": "",
                            "retain": "",
                            "respTopic": "",
                            "contentType": "",
                            "userProps": "",
                            "correl": "",
                            "expiry": "",
                            "broker": "b22fc4d3e3f172bb",
                            "x": 2870,
                            "y": 340,
                            "wires": []
                        },
                        {
                            "id": "541e8fa04f94475d",
                            "type": "mqtt out",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/flur_keller_vorne/rpc",
                            "qos": "",
                            "retain": "",
                            "respTopic": "",
                            "contentType": "",
                            "userProps": "",
                            "correl": "",
                            "expiry": "",
                            "broker": "b22fc4d3e3f172bb",
                            "x": 2000,
                            "y": 200,
                            "wires": []
                        },
                        {
                            "id": "658b57870ce763a7",
                            "type": "trigger",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "op1": "true",
                            "op2": "false",
                            "op1type": "bool",
                            "op2type": "bool",
                            "duration": "5",
                            "extend": true,
                            "overrideDelay": false,
                            "units": "min",
                            "reset": "",
                            "bytopic": "all",
                            "topic": "topic",
                            "outputs": 1,
                            "x": 1470,
                            "y": 260,
                            "wires": [
                                [
                                    "de365cd7a4813149"
                                ]
                            ]
                        },
                        {
                            "id": "ad67b76febdf0a92",
                            "type": "ioBroker get",
                            "z": "692f3cf44001c136",
                            "name": "Schalter",
                            "topic": "0_userdata.0.hausautomation.bwm_flur_keller_aktiv",
                            "attrname": "payload",
                            "payloadType": "value",
                            "errOnInvalidState": "nothing",
                            "x": 640,
                            "y": 200,
                            "wires": [
                                [
                                    "c7a2538582f26f99"
                                ]
                            ]
                        },
                        {
                            "id": "c7a2538582f26f99",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "Schalter = true?",
                            "property": "payload",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "true"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 1,
                            "x": 820,
                            "y": 200,
                            "wires": [
                                [
                                    "6ab813a6b99d1545"
                                ]
                            ]
                        },
                        {
                            "id": "df00a6eda1372fa1",
                            "type": "mqtt out",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/flur_keller_hinten/rpc",
                            "qos": "",
                            "retain": "",
                            "respTopic": "",
                            "contentType": "",
                            "userProps": "",
                            "correl": "",
                            "expiry": "",
                            "broker": "b22fc4d3e3f172bb",
                            "x": 2000,
                            "y": 260,
                            "wires": []
                        },
                        {
                            "id": "eb3fcf783b74fd7a",
                            "type": "mqtt in",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/waschkueche/events/rpc",
                            "qos": "2",
                            "datatype": "auto-detect",
                            "broker": "b22fc4d3e3f172bb",
                            "nl": false,
                            "rap": true,
                            "rh": 0,
                            "inputs": 0,
                            "x": 200,
                            "y": 260,
                            "wires": [
                                [
                                    "1e6515cac6ba6901"
                                ]
                            ]
                        },
                        {
                            "id": "90c60a9f3a115521",
                            "type": "mqtt in",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/flur_keller_hinten/events/rpc",
                            "qos": "2",
                            "datatype": "auto-detect",
                            "broker": "b22fc4d3e3f172bb",
                            "nl": false,
                            "rap": true,
                            "rh": 0,
                            "inputs": 0,
                            "x": 220,
                            "y": 320,
                            "wires": [
                                [
                                    "1e6515cac6ba6901"
                                ]
                            ]
                        },
                        {
                            "id": "1416273ebfce58bb",
                            "type": "mqtt in",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "shellies/licht/keller/flur_keller_vorne/events/rpc",
                            "qos": "2",
                            "datatype": "auto-detect",
                            "broker": "b22fc4d3e3f172bb",
                            "nl": false,
                            "rap": true,
                            "rh": 0,
                            "inputs": 0,
                            "x": 210,
                            "y": 380,
                            "wires": [
                                [
                                    "1e6515cac6ba6901"
                                ]
                            ]
                        },
                        {
                            "id": "1e6515cac6ba6901",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "NotifyEvent",
                            "property": "payload.method",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "eq",
                                    "v": "NotifyEvent",
                                    "vt": "str"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 1,
                            "x": 530,
                            "y": 320,
                            "wires": [
                                [
                                    "ccaf9c5d06ca071a"
                                ]
                            ]
                        },
                        {
                            "id": "ccaf9c5d06ca071a",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "input:0 = btn_down",
                            "property": "payload.params.events[0].component=\"input:0\" and payload.params.events[0].event = \"btn_down\"",
                            "propertyType": "jsonata",
                            "rules": [
                                {
                                    "t": "true"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 1,
                            "x": 730,
                            "y": 320,
                            "wires": [
                                [
                                    "6ab813a6b99d1545"
                                ]
                            ]
                        },
                        {
                            "id": "323856145be0390f",
                            "type": "ioBroker get",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "topic": "0_userdata.0.hausautomation.lux_bewegungsmelder_wk",
                            "attrname": "limit_lux_wk",
                            "payloadType": "value",
                            "errOnInvalidState": "nothing",
                            "x": 2230,
                            "y": 320,
                            "wires": [
                                [
                                    "29d46c0be09b69a6"
                                ]
                            ]
                        },
                        {
                            "id": "29d46c0be09b69a6",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "lux_wk < limit_lux_wk",
                            "property": "lux_wk",
                            "propertyType": "flow",
                            "rules": [
                                {
                                    "t": "lte",
                                    "v": "limit_lux_wk",
                                    "vt": "msg"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 1,
                            "x": 2580,
                            "y": 320,
                            "wires": [
                                [
                                    "0e35c29460abd499"
                                ]
                            ]
                        },
                        {
                            "id": "7e4aebe657e40852",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "property": "payload.params.on",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "true"
                                },
                                {
                                    "t": "false"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 2,
                            "x": 1890,
                            "y": 340,
                            "wires": [
                                [
                                    "323856145be0390f"
                                ],
                                [
                                    "519701bc8160d15c"
                                ]
                            ]
                        },
                        {
                            "id": "b275779cdcb8ca87",
                            "type": "change",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "rules": [
                                {
                                    "t": "set",
                                    "p": "lux_wk",
                                    "pt": "flow",
                                    "to": "payload.lux",
                                    "tot": "msg"
                                }
                            ],
                            "action": "",
                            "property": "",
                            "from": "",
                            "to": "",
                            "reg": false,
                            "x": 430,
                            "y": 140,
                            "wires": [
                                [
                                    "ce3fea7966a34734"
                                ]
                            ]
                        },
                        {
                            "id": "6ab813a6b99d1545",
                            "type": "ioBroker get",
                            "z": "692f3cf44001c136",
                            "name": "licht_flur_keller_manuell",
                            "topic": "0_userdata.0.hausautomation.licht_flur_keller_manuell",
                            "attrname": "licht_flur_keller_manuell",
                            "payloadType": "value",
                            "errOnInvalidState": "nothing",
                            "x": 1090,
                            "y": 260,
                            "wires": [
                                [
                                    "1fb3162fdf7cba13"
                                ]
                            ]
                        },
                        {
                            "id": "1fb3162fdf7cba13",
                            "type": "switch",
                            "z": "692f3cf44001c136",
                            "name": "",
                            "property": "llicht_flur_keller_manuell",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "false"
                                },
                                {
                                    "t": "true"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 2,
                            "x": 1290,
                            "y": 260,
                            "wires": [
                                [
                                    "658b57870ce763a7"
                                ],
                                []
                            ]
                        },
                        {
                            "id": "0a4a5cad7064557a",
                            "type": "junction",
                            "z": "692f3cf44001c136",
                            "x": 2680,
                            "y": 360,
                            "wires": [
                                [
                                    "0e35c29460abd499"
                                ]
                            ]
                        },
                        {
                            "id": "519701bc8160d15c",
                            "type": "junction",
                            "z": "692f3cf44001c136",
                            "x": 2020,
                            "y": 360,
                            "wires": [
                                [
                                    "0a4a5cad7064557a"
                                ]
                            ]
                        },
                        {
                            "id": "b22fc4d3e3f172bb",
                            "type": "mqtt-broker",
                            "name": "iobroker mqtt adapter",
                            "broker": "localhost",
                            "port": "1883",
                            "clientid": "mqttin_nodered",
                            "autoConnect": true,
                            "usetls": false,
                            "protocolVersion": "4",
                            "keepalive": "60",
                            "cleansession": true,
                            "birthTopic": "",
                            "birthQos": "0",
                            "birthPayload": "",
                            "birthMsg": {},
                            "closeTopic": "",
                            "closeQos": "0",
                            "closePayload": "",
                            "closeMsg": {},
                            "willTopic": "",
                            "willQos": "0",
                            "willPayload": "",
                            "willMsg": {},
                            "userProps": "",
                            "sessionExpiry": ""
                        }
                    ]
                    

                    Nun, bräuchte ich noch einen Tipp wie ich hier verzweigen kann wenn der Schalter lange gedrückt wurde.

                    3f2e6291-4466-4ef1-ba65-e4a85f910149-image.png

                    Der Event, der laut der Shelly Dokumenation, beim langen Schalterdruck erzeugt wird ist "long_push".

                    1 Antwort Letzte Antwort
                    0
                    • mickymM Online
                      mickymM Online
                      mickym
                      Most Active
                      schrieb am zuletzt editiert von
                      #498

                      Mit dem langen Drücken würde ich halt eine Flowvariable toggeln und diese in einem Switch abfragen und so die Automatik blockieren.

                      Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                      H 1 Antwort Letzte Antwort
                      0
                      • mickymM mickym

                        Mit dem langen Drücken würde ich halt eine Flowvariable toggeln und diese in einem Switch abfragen und so die Automatik blockieren.

                        H Offline
                        H Offline
                        hotspot_2
                        schrieb am zuletzt editiert von
                        #499

                        @mickym Hast Du mir noch einen Tipp wie ich die Abfrage hinbekomme bezüglich der zwei unterschiedlichen Events? Kann ich das JSONata in dem switch node so abändern das ich dort dann abzeigen kann je nachdem was gedrückt wurde?

                        mickymM 2 Antworten Letzte Antwort
                        0
                        • H hotspot_2

                          @mickym Hast Du mir noch einen Tipp wie ich die Abfrage hinbekomme bezüglich der zwei unterschiedlichen Events? Kann ich das JSONata in dem switch node so abändern das ich dort dann abzeigen kann je nachdem was gedrückt wurde?

                          mickymM Online
                          mickymM Online
                          mickym
                          Most Active
                          schrieb am zuletzt editiert von mickym
                          #500

                          @hotspot_2 Verstehe ich nicht ganz?

                          long_push

                          Bei den events solltest Du dóch folgendes Event bekommen?

                          {
                             "src": "shellypro4pm-f008d1d8b8b8",
                             "dst": "user_1",
                             "method": "NotifyEvent",
                             "params": {
                                "ts": 1631266629.79,
                                "events": [
                                   {
                                      "component": "input:0",
                                      "id": 0,
                                      "event": "long_push",
                                      "ts": 1631266629.79
                                   }
                                ]
                             }
                          }
                          

                          Und Du brauchst doch nur den long-push um vom Automatik Modus auf den manuellen Modus umzustellen.

                          Oder bekommst Du das Event direkt in einem Datenpunkt Input:0 - Du weißt ich hab die Geräte ja nicht

                          Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                          1 Antwort Letzte Antwort
                          0
                          • H hotspot_2

                            @mickym Hast Du mir noch einen Tipp wie ich die Abfrage hinbekomme bezüglich der zwei unterschiedlichen Events? Kann ich das JSONata in dem switch node so abändern das ich dort dann abzeigen kann je nachdem was gedrückt wurde?

                            mickymM Online
                            mickymM Online
                            mickym
                            Most Active
                            schrieb am zuletzt editiert von mickym
                            #501

                            @hotspot_2 Ich habs mal nicht mit einem Datenpunkt - sondern einer Flowvariable gemacht. Ich hab auch keine Ahnung ob Du mqtt richtig rausfilterts . Kannst natürlich auch wieder einen Datenpunkt toggeln.

                            Ich hab halt nach Beschreibung in die Inject Node so ein Notification Event Objekt genommen, wie es unten steht.

                            d87008da-49d1-4728-888e-c8ebfee84c1d-image.png

                            1b6022ad-b5c9-46f8-a1f3-17e35dd685f8-image.png

                            Ich toggle halt eine Flow variable mit true und false. Geht auch mit einem Datenpunkt im iobroker.
                            2037185a-3d35-46ca-9d85-cf744bea5ef4-image.png

                            Das untenstehende Objekt auf einen long_push event mit der switch Node zu selektieren geht so:

                            988d92c0-858e-4352-83ba-93cbc3c1e911-image.png

                            so selektierst Du alle events der input:0 Komponente und kannst mit mehreren Ausgängen natürlich auch andere Events selektieren.

                            [
                                {
                                    "id": "2d55768c7365f5d3",
                                    "type": "inject",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "props": [
                                        {
                                            "p": "payload"
                                        }
                                    ],
                                    "repeat": "",
                                    "crontab": "",
                                    "once": false,
                                    "onceDelay": 0.1,
                                    "topic": "",
                                    "payload": "{\"src\":\"shellypro4pm-f008d1d8b8b8\",\"dst\":\"user_1\",\"method\":\"NotifyEvent\",\"params\":{\"ts\":1631266629.79,\"events\":[{\"component\":\"input:0\",\"id\":0,\"event\":\"long_push\",\"ts\":1631266629.79}]}}",
                                    "payloadType": "json",
                                    "x": 2410,
                                    "y": 2240,
                                    "wires": [
                                        [
                                            "64eb8e8d7476f747"
                                        ]
                                    ]
                                },
                                {
                                    "id": "64eb8e8d7476f747",
                                    "type": "switch",
                                    "z": "7e6af0015415146d",
                                    "name": "Event of input:0",
                                    "property": "payload.params.events[component=\"input:0\"].event",
                                    "propertyType": "jsonata",
                                    "rules": [
                                        {
                                            "t": "eq",
                                            "v": "long_push",
                                            "vt": "str"
                                        },
                                        {
                                            "t": "eq",
                                            "v": "double_push",
                                            "vt": "str"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 2,
                                    "x": 2620,
                                    "y": 2360,
                                    "wires": [
                                        [
                                            "5b74af2f251d0335",
                                            "3e7660c3a451876a"
                                        ],
                                        [
                                            "1fb9b2d47582aa92"
                                        ]
                                    ]
                                },
                                {
                                    "id": "5b74af2f251d0335",
                                    "type": "change",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "auto",
                                            "pt": "flow",
                                            "to": "$exists($flowContext(\"auto\")) ? $not($flowContext(\"auto\")) : true\t",
                                            "tot": "jsonata"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 2860,
                                    "y": 2340,
                                    "wires": [
                                        []
                                    ]
                                },
                                {
                                    "id": "ae979309777cfd8f",
                                    "type": "mqtt in",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "topic": "shellies/sonstiges/bwm_wk/status",
                                    "qos": "2",
                                    "datatype": "auto-detect",
                                    "broker": "b22fc4d3e3f172bb",
                                    "nl": false,
                                    "rap": true,
                                    "rh": 0,
                                    "inputs": 0,
                                    "x": 2190,
                                    "y": 2580,
                                    "wires": [
                                        [
                                            "b275779cdcb8ca87"
                                        ]
                                    ]
                                },
                                {
                                    "id": "4d6c21f253707f3a",
                                    "type": "mqtt in",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "topic": "shellies/sonstiges/bwm_flur_keller/status",
                                    "qos": "2",
                                    "datatype": "auto-detect",
                                    "broker": "b22fc4d3e3f172bb",
                                    "nl": false,
                                    "rap": true,
                                    "rh": 0,
                                    "inputs": 0,
                                    "x": 2220,
                                    "y": 2640,
                                    "wires": [
                                        [
                                            "ce3fea7966a34734"
                                        ]
                                    ]
                                },
                                {
                                    "id": "ce3fea7966a34734",
                                    "type": "switch",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "property": "payload.motion",
                                    "propertyType": "msg",
                                    "rules": [
                                        {
                                            "t": "true"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 1,
                                    "x": 2510,
                                    "y": 2640,
                                    "wires": [
                                        [
                                            "ad67b76febdf0a92"
                                        ]
                                    ]
                                },
                                {
                                    "id": "de365cd7a4813149",
                                    "type": "change",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "payload",
                                            "pt": "msg",
                                            "to": "{\t   \"id\":199,\t   \"src\":\"hotspot_2\",\t   \"method\":\"Switch.Set\",\t   \"params\":{\"id\":0,\"on\":payload}\t}\t \t",
                                            "tot": "jsonata"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 3490,
                                    "y": 2660,
                                    "wires": [
                                        [
                                            "541e8fa04f94475d",
                                            "df00a6eda1372fa1",
                                            "7e4aebe657e40852"
                                        ]
                                    ]
                                },
                                {
                                    "id": "0e35c29460abd499",
                                    "type": "mqtt out",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "topic": "shellies/licht/keller/waschkueche/rpc",
                                    "qos": "",
                                    "retain": "",
                                    "respTopic": "",
                                    "contentType": "",
                                    "userProps": "",
                                    "correl": "",
                                    "expiry": "",
                                    "broker": "b22fc4d3e3f172bb",
                                    "x": 4690,
                                    "y": 2740,
                                    "wires": []
                                },
                                {
                                    "id": "541e8fa04f94475d",
                                    "type": "mqtt out",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "topic": "shellies/licht/keller/flur_keller_vorne/rpc",
                                    "qos": "",
                                    "retain": "",
                                    "respTopic": "",
                                    "contentType": "",
                                    "userProps": "",
                                    "correl": "",
                                    "expiry": "",
                                    "broker": "b22fc4d3e3f172bb",
                                    "x": 3820,
                                    "y": 2600,
                                    "wires": []
                                },
                                {
                                    "id": "658b57870ce763a7",
                                    "type": "trigger",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "op1": "true",
                                    "op2": "false",
                                    "op1type": "bool",
                                    "op2type": "bool",
                                    "duration": "5",
                                    "extend": true,
                                    "overrideDelay": false,
                                    "units": "min",
                                    "reset": "",
                                    "bytopic": "all",
                                    "topic": "topic",
                                    "outputs": 1,
                                    "x": 3290,
                                    "y": 2660,
                                    "wires": [
                                        [
                                            "de365cd7a4813149"
                                        ]
                                    ]
                                },
                                {
                                    "id": "ad67b76febdf0a92",
                                    "type": "ioBroker get",
                                    "z": "7e6af0015415146d",
                                    "name": "Schalter",
                                    "topic": "0_userdata.0.hausautomation.bwm_flur_keller_aktiv",
                                    "attrname": "payload",
                                    "payloadType": "value",
                                    "errOnInvalidState": "nothing",
                                    "x": 2660,
                                    "y": 2640,
                                    "wires": [
                                        [
                                            "c7a2538582f26f99"
                                        ]
                                    ]
                                },
                                {
                                    "id": "c7a2538582f26f99",
                                    "type": "switch",
                                    "z": "7e6af0015415146d",
                                    "name": "Schalter = true?",
                                    "property": "payload",
                                    "propertyType": "msg",
                                    "rules": [
                                        {
                                            "t": "true"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 1,
                                    "x": 2840,
                                    "y": 2640,
                                    "wires": [
                                        [
                                            "b52632d1d3763274"
                                        ]
                                    ]
                                },
                                {
                                    "id": "df00a6eda1372fa1",
                                    "type": "mqtt out",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "topic": "shellies/licht/keller/flur_keller_hinten/rpc",
                                    "qos": "",
                                    "retain": "",
                                    "respTopic": "",
                                    "contentType": "",
                                    "userProps": "",
                                    "correl": "",
                                    "expiry": "",
                                    "broker": "b22fc4d3e3f172bb",
                                    "x": 3820,
                                    "y": 2660,
                                    "wires": []
                                },
                                {
                                    "id": "ccaf9c5d06ca071a",
                                    "type": "switch",
                                    "z": "7e6af0015415146d",
                                    "d": true,
                                    "name": "input:0 = btn_down",
                                    "property": "payload.params.events[0].component=\"input:0\" and payload.params.events[0].event = \"btn_down\"",
                                    "propertyType": "jsonata",
                                    "rules": [
                                        {
                                            "t": "true"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 1,
                                    "x": 2490,
                                    "y": 2500,
                                    "wires": [
                                        []
                                    ]
                                },
                                {
                                    "id": "323856145be0390f",
                                    "type": "ioBroker get",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "topic": "0_userdata.0.hausautomation.lux_bewegungsmelder_wk",
                                    "attrname": "limit_lux_wk",
                                    "payloadType": "value",
                                    "errOnInvalidState": "nothing",
                                    "x": 4050,
                                    "y": 2720,
                                    "wires": [
                                        [
                                            "29d46c0be09b69a6"
                                        ]
                                    ]
                                },
                                {
                                    "id": "29d46c0be09b69a6",
                                    "type": "switch",
                                    "z": "7e6af0015415146d",
                                    "name": "lux_wk < limit_lux_wk",
                                    "property": "lux_wk",
                                    "propertyType": "flow",
                                    "rules": [
                                        {
                                            "t": "lte",
                                            "v": "limit_lux_wk",
                                            "vt": "msg"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 1,
                                    "x": 4400,
                                    "y": 2720,
                                    "wires": [
                                        [
                                            "0e35c29460abd499"
                                        ]
                                    ]
                                },
                                {
                                    "id": "7e4aebe657e40852",
                                    "type": "switch",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "property": "payload.params.on",
                                    "propertyType": "msg",
                                    "rules": [
                                        {
                                            "t": "true"
                                        },
                                        {
                                            "t": "false"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 2,
                                    "x": 3710,
                                    "y": 2740,
                                    "wires": [
                                        [
                                            "323856145be0390f"
                                        ],
                                        [
                                            "519701bc8160d15c"
                                        ]
                                    ]
                                },
                                {
                                    "id": "b275779cdcb8ca87",
                                    "type": "change",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "lux_wk",
                                            "pt": "flow",
                                            "to": "payload.lux",
                                            "tot": "msg"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 2450,
                                    "y": 2580,
                                    "wires": [
                                        [
                                            "ce3fea7966a34734"
                                        ]
                                    ]
                                },
                                {
                                    "id": "eb3fcf783b74fd7a",
                                    "type": "mqtt in",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "topic": "shellies/licht/keller/waschkueche/events/rpc",
                                    "qos": "2",
                                    "datatype": "auto-detect",
                                    "broker": "b22fc4d3e3f172bb",
                                    "nl": false,
                                    "rap": true,
                                    "rh": 0,
                                    "inputs": 0,
                                    "x": 2120,
                                    "y": 2300,
                                    "wires": [
                                        [
                                            "1e6515cac6ba6901"
                                        ]
                                    ]
                                },
                                {
                                    "id": "90c60a9f3a115521",
                                    "type": "mqtt in",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "topic": "shellies/licht/keller/flur_keller_hinten/events/rpc",
                                    "qos": "2",
                                    "datatype": "auto-detect",
                                    "broker": "b22fc4d3e3f172bb",
                                    "nl": false,
                                    "rap": true,
                                    "rh": 0,
                                    "inputs": 0,
                                    "x": 2140,
                                    "y": 2360,
                                    "wires": [
                                        [
                                            "1e6515cac6ba6901"
                                        ]
                                    ]
                                },
                                {
                                    "id": "1416273ebfce58bb",
                                    "type": "mqtt in",
                                    "z": "7e6af0015415146d",
                                    "name": "",
                                    "topic": "shellies/licht/keller/flur_keller_vorne/events/rpc",
                                    "qos": "2",
                                    "datatype": "auto-detect",
                                    "broker": "b22fc4d3e3f172bb",
                                    "nl": false,
                                    "rap": true,
                                    "rh": 0,
                                    "inputs": 0,
                                    "x": 2130,
                                    "y": 2420,
                                    "wires": [
                                        [
                                            "1e6515cac6ba6901"
                                        ]
                                    ]
                                },
                                {
                                    "id": "1e6515cac6ba6901",
                                    "type": "switch",
                                    "z": "7e6af0015415146d",
                                    "name": "NotifyEvent",
                                    "property": "payload.method",
                                    "propertyType": "msg",
                                    "rules": [
                                        {
                                            "t": "eq",
                                            "v": "NotifyEvent",
                                            "vt": "str"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 1,
                                    "x": 2430,
                                    "y": 2360,
                                    "wires": [
                                        [
                                            "64eb8e8d7476f747"
                                        ]
                                    ]
                                },
                                {
                                    "id": "6ab813a6b99d1545",
                                    "type": "ioBroker get",
                                    "z": "7e6af0015415146d",
                                    "name": "licht_flur_keller_manuell",
                                    "topic": "0_userdata.0.hausautomation.licht_flur_keller_manuell",
                                    "attrname": "licht_flur_keller_manuell",
                                    "payloadType": "value",
                                    "errOnInvalidState": "nothing",
                                    "x": 2730,
                                    "y": 2500,
                                    "wires": [
                                        []
                                    ]
                                },
                                {
                                    "id": "b52632d1d3763274",
                                    "type": "switch",
                                    "z": "7e6af0015415146d",
                                    "name": "Automatik?",
                                    "property": "auto",
                                    "propertyType": "flow",
                                    "rules": [
                                        {
                                            "t": "true"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 1,
                                    "x": 3030,
                                    "y": 2640,
                                    "wires": [
                                        [
                                            "658b57870ce763a7"
                                        ]
                                    ]
                                },
                                {
                                    "id": "3e7660c3a451876a",
                                    "type": "debug",
                                    "z": "7e6af0015415146d",
                                    "name": "long_push Event",
                                    "active": true,
                                    "tosidebar": true,
                                    "console": false,
                                    "tostatus": false,
                                    "complete": "payload",
                                    "targetType": "msg",
                                    "statusVal": "",
                                    "statusType": "auto",
                                    "x": 2850,
                                    "y": 2280,
                                    "wires": []
                                },
                                {
                                    "id": "1fb9b2d47582aa92",
                                    "type": "debug",
                                    "z": "7e6af0015415146d",
                                    "name": "double_push Event",
                                    "active": true,
                                    "tosidebar": true,
                                    "console": false,
                                    "tostatus": false,
                                    "complete": "payload",
                                    "targetType": "msg",
                                    "statusVal": "",
                                    "statusType": "auto",
                                    "x": 2830,
                                    "y": 2400,
                                    "wires": []
                                },
                                {
                                    "id": "0a4a5cad7064557a",
                                    "type": "junction",
                                    "z": "7e6af0015415146d",
                                    "x": 4500,
                                    "y": 2760,
                                    "wires": [
                                        [
                                            "0e35c29460abd499"
                                        ]
                                    ]
                                },
                                {
                                    "id": "519701bc8160d15c",
                                    "type": "junction",
                                    "z": "7e6af0015415146d",
                                    "x": 3840,
                                    "y": 2760,
                                    "wires": [
                                        [
                                            "0a4a5cad7064557a"
                                        ]
                                    ]
                                },
                                {
                                    "id": "b22fc4d3e3f172bb",
                                    "type": "mqtt-broker",
                                    "name": "iobroker mqtt adapter",
                                    "broker": "localhost",
                                    "port": "1883",
                                    "clientid": "mqttin_nodered",
                                    "autoConnect": true,
                                    "usetls": false,
                                    "protocolVersion": "4",
                                    "keepalive": "60",
                                    "cleansession": true,
                                    "birthTopic": "",
                                    "birthQos": "0",
                                    "birthPayload": "",
                                    "birthMsg": {},
                                    "closeTopic": "",
                                    "closeQos": "0",
                                    "closePayload": "",
                                    "closeMsg": {},
                                    "willTopic": "",
                                    "willQos": "0",
                                    "willPayload": "",
                                    "willMsg": {},
                                    "userProps": "",
                                    "sessionExpiry": ""
                                }
                            ]
                            

                            a77ad6e1-eccc-4863-bbbe-45dc58322b0e-image.png

                            Mit dieser Anweisung:

                            payload.params.event[component="input:0"].event
                            

                            filterst Du alles events die von der Komponente input:0 kommen und dann aus diesem Objekt selektierst Du die event Eigenschaft.

                            So kannst Du dann aus dem Notification Objekt - alle Eventtypen in der Switch Node direkt abfragen:

                            90ff5fe4-c3d3-4898-ae3c-a0708032b9ae-image.png

                            Wenn mehrere Events zu input:0 aufeinmal kommen, was aber unwahrscheinlich ist - dann wäre es ein Array - dann müsste man das ggf. noch abfangen.

                            Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                            H 1 Antwort Letzte Antwort
                            0
                            • mickymM mickym

                              @hotspot_2 Ich habs mal nicht mit einem Datenpunkt - sondern einer Flowvariable gemacht. Ich hab auch keine Ahnung ob Du mqtt richtig rausfilterts . Kannst natürlich auch wieder einen Datenpunkt toggeln.

                              Ich hab halt nach Beschreibung in die Inject Node so ein Notification Event Objekt genommen, wie es unten steht.

                              d87008da-49d1-4728-888e-c8ebfee84c1d-image.png

                              1b6022ad-b5c9-46f8-a1f3-17e35dd685f8-image.png

                              Ich toggle halt eine Flow variable mit true und false. Geht auch mit einem Datenpunkt im iobroker.
                              2037185a-3d35-46ca-9d85-cf744bea5ef4-image.png

                              Das untenstehende Objekt auf einen long_push event mit der switch Node zu selektieren geht so:

                              988d92c0-858e-4352-83ba-93cbc3c1e911-image.png

                              so selektierst Du alle events der input:0 Komponente und kannst mit mehreren Ausgängen natürlich auch andere Events selektieren.

                              [
                                  {
                                      "id": "2d55768c7365f5d3",
                                      "type": "inject",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "props": [
                                          {
                                              "p": "payload"
                                          }
                                      ],
                                      "repeat": "",
                                      "crontab": "",
                                      "once": false,
                                      "onceDelay": 0.1,
                                      "topic": "",
                                      "payload": "{\"src\":\"shellypro4pm-f008d1d8b8b8\",\"dst\":\"user_1\",\"method\":\"NotifyEvent\",\"params\":{\"ts\":1631266629.79,\"events\":[{\"component\":\"input:0\",\"id\":0,\"event\":\"long_push\",\"ts\":1631266629.79}]}}",
                                      "payloadType": "json",
                                      "x": 2410,
                                      "y": 2240,
                                      "wires": [
                                          [
                                              "64eb8e8d7476f747"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "64eb8e8d7476f747",
                                      "type": "switch",
                                      "z": "7e6af0015415146d",
                                      "name": "Event of input:0",
                                      "property": "payload.params.events[component=\"input:0\"].event",
                                      "propertyType": "jsonata",
                                      "rules": [
                                          {
                                              "t": "eq",
                                              "v": "long_push",
                                              "vt": "str"
                                          },
                                          {
                                              "t": "eq",
                                              "v": "double_push",
                                              "vt": "str"
                                          }
                                      ],
                                      "checkall": "true",
                                      "repair": false,
                                      "outputs": 2,
                                      "x": 2620,
                                      "y": 2360,
                                      "wires": [
                                          [
                                              "5b74af2f251d0335",
                                              "3e7660c3a451876a"
                                          ],
                                          [
                                              "1fb9b2d47582aa92"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "5b74af2f251d0335",
                                      "type": "change",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "rules": [
                                          {
                                              "t": "set",
                                              "p": "auto",
                                              "pt": "flow",
                                              "to": "$exists($flowContext(\"auto\")) ? $not($flowContext(\"auto\")) : true\t",
                                              "tot": "jsonata"
                                          }
                                      ],
                                      "action": "",
                                      "property": "",
                                      "from": "",
                                      "to": "",
                                      "reg": false,
                                      "x": 2860,
                                      "y": 2340,
                                      "wires": [
                                          []
                                      ]
                                  },
                                  {
                                      "id": "ae979309777cfd8f",
                                      "type": "mqtt in",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "topic": "shellies/sonstiges/bwm_wk/status",
                                      "qos": "2",
                                      "datatype": "auto-detect",
                                      "broker": "b22fc4d3e3f172bb",
                                      "nl": false,
                                      "rap": true,
                                      "rh": 0,
                                      "inputs": 0,
                                      "x": 2190,
                                      "y": 2580,
                                      "wires": [
                                          [
                                              "b275779cdcb8ca87"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "4d6c21f253707f3a",
                                      "type": "mqtt in",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "topic": "shellies/sonstiges/bwm_flur_keller/status",
                                      "qos": "2",
                                      "datatype": "auto-detect",
                                      "broker": "b22fc4d3e3f172bb",
                                      "nl": false,
                                      "rap": true,
                                      "rh": 0,
                                      "inputs": 0,
                                      "x": 2220,
                                      "y": 2640,
                                      "wires": [
                                          [
                                              "ce3fea7966a34734"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "ce3fea7966a34734",
                                      "type": "switch",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "property": "payload.motion",
                                      "propertyType": "msg",
                                      "rules": [
                                          {
                                              "t": "true"
                                          }
                                      ],
                                      "checkall": "true",
                                      "repair": false,
                                      "outputs": 1,
                                      "x": 2510,
                                      "y": 2640,
                                      "wires": [
                                          [
                                              "ad67b76febdf0a92"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "de365cd7a4813149",
                                      "type": "change",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "rules": [
                                          {
                                              "t": "set",
                                              "p": "payload",
                                              "pt": "msg",
                                              "to": "{\t   \"id\":199,\t   \"src\":\"hotspot_2\",\t   \"method\":\"Switch.Set\",\t   \"params\":{\"id\":0,\"on\":payload}\t}\t \t",
                                              "tot": "jsonata"
                                          }
                                      ],
                                      "action": "",
                                      "property": "",
                                      "from": "",
                                      "to": "",
                                      "reg": false,
                                      "x": 3490,
                                      "y": 2660,
                                      "wires": [
                                          [
                                              "541e8fa04f94475d",
                                              "df00a6eda1372fa1",
                                              "7e4aebe657e40852"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "0e35c29460abd499",
                                      "type": "mqtt out",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "topic": "shellies/licht/keller/waschkueche/rpc",
                                      "qos": "",
                                      "retain": "",
                                      "respTopic": "",
                                      "contentType": "",
                                      "userProps": "",
                                      "correl": "",
                                      "expiry": "",
                                      "broker": "b22fc4d3e3f172bb",
                                      "x": 4690,
                                      "y": 2740,
                                      "wires": []
                                  },
                                  {
                                      "id": "541e8fa04f94475d",
                                      "type": "mqtt out",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "topic": "shellies/licht/keller/flur_keller_vorne/rpc",
                                      "qos": "",
                                      "retain": "",
                                      "respTopic": "",
                                      "contentType": "",
                                      "userProps": "",
                                      "correl": "",
                                      "expiry": "",
                                      "broker": "b22fc4d3e3f172bb",
                                      "x": 3820,
                                      "y": 2600,
                                      "wires": []
                                  },
                                  {
                                      "id": "658b57870ce763a7",
                                      "type": "trigger",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "op1": "true",
                                      "op2": "false",
                                      "op1type": "bool",
                                      "op2type": "bool",
                                      "duration": "5",
                                      "extend": true,
                                      "overrideDelay": false,
                                      "units": "min",
                                      "reset": "",
                                      "bytopic": "all",
                                      "topic": "topic",
                                      "outputs": 1,
                                      "x": 3290,
                                      "y": 2660,
                                      "wires": [
                                          [
                                              "de365cd7a4813149"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "ad67b76febdf0a92",
                                      "type": "ioBroker get",
                                      "z": "7e6af0015415146d",
                                      "name": "Schalter",
                                      "topic": "0_userdata.0.hausautomation.bwm_flur_keller_aktiv",
                                      "attrname": "payload",
                                      "payloadType": "value",
                                      "errOnInvalidState": "nothing",
                                      "x": 2660,
                                      "y": 2640,
                                      "wires": [
                                          [
                                              "c7a2538582f26f99"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "c7a2538582f26f99",
                                      "type": "switch",
                                      "z": "7e6af0015415146d",
                                      "name": "Schalter = true?",
                                      "property": "payload",
                                      "propertyType": "msg",
                                      "rules": [
                                          {
                                              "t": "true"
                                          }
                                      ],
                                      "checkall": "true",
                                      "repair": false,
                                      "outputs": 1,
                                      "x": 2840,
                                      "y": 2640,
                                      "wires": [
                                          [
                                              "b52632d1d3763274"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "df00a6eda1372fa1",
                                      "type": "mqtt out",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "topic": "shellies/licht/keller/flur_keller_hinten/rpc",
                                      "qos": "",
                                      "retain": "",
                                      "respTopic": "",
                                      "contentType": "",
                                      "userProps": "",
                                      "correl": "",
                                      "expiry": "",
                                      "broker": "b22fc4d3e3f172bb",
                                      "x": 3820,
                                      "y": 2660,
                                      "wires": []
                                  },
                                  {
                                      "id": "ccaf9c5d06ca071a",
                                      "type": "switch",
                                      "z": "7e6af0015415146d",
                                      "d": true,
                                      "name": "input:0 = btn_down",
                                      "property": "payload.params.events[0].component=\"input:0\" and payload.params.events[0].event = \"btn_down\"",
                                      "propertyType": "jsonata",
                                      "rules": [
                                          {
                                              "t": "true"
                                          }
                                      ],
                                      "checkall": "true",
                                      "repair": false,
                                      "outputs": 1,
                                      "x": 2490,
                                      "y": 2500,
                                      "wires": [
                                          []
                                      ]
                                  },
                                  {
                                      "id": "323856145be0390f",
                                      "type": "ioBroker get",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "topic": "0_userdata.0.hausautomation.lux_bewegungsmelder_wk",
                                      "attrname": "limit_lux_wk",
                                      "payloadType": "value",
                                      "errOnInvalidState": "nothing",
                                      "x": 4050,
                                      "y": 2720,
                                      "wires": [
                                          [
                                              "29d46c0be09b69a6"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "29d46c0be09b69a6",
                                      "type": "switch",
                                      "z": "7e6af0015415146d",
                                      "name": "lux_wk < limit_lux_wk",
                                      "property": "lux_wk",
                                      "propertyType": "flow",
                                      "rules": [
                                          {
                                              "t": "lte",
                                              "v": "limit_lux_wk",
                                              "vt": "msg"
                                          }
                                      ],
                                      "checkall": "true",
                                      "repair": false,
                                      "outputs": 1,
                                      "x": 4400,
                                      "y": 2720,
                                      "wires": [
                                          [
                                              "0e35c29460abd499"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "7e4aebe657e40852",
                                      "type": "switch",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "property": "payload.params.on",
                                      "propertyType": "msg",
                                      "rules": [
                                          {
                                              "t": "true"
                                          },
                                          {
                                              "t": "false"
                                          }
                                      ],
                                      "checkall": "true",
                                      "repair": false,
                                      "outputs": 2,
                                      "x": 3710,
                                      "y": 2740,
                                      "wires": [
                                          [
                                              "323856145be0390f"
                                          ],
                                          [
                                              "519701bc8160d15c"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "b275779cdcb8ca87",
                                      "type": "change",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "rules": [
                                          {
                                              "t": "set",
                                              "p": "lux_wk",
                                              "pt": "flow",
                                              "to": "payload.lux",
                                              "tot": "msg"
                                          }
                                      ],
                                      "action": "",
                                      "property": "",
                                      "from": "",
                                      "to": "",
                                      "reg": false,
                                      "x": 2450,
                                      "y": 2580,
                                      "wires": [
                                          [
                                              "ce3fea7966a34734"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "eb3fcf783b74fd7a",
                                      "type": "mqtt in",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "topic": "shellies/licht/keller/waschkueche/events/rpc",
                                      "qos": "2",
                                      "datatype": "auto-detect",
                                      "broker": "b22fc4d3e3f172bb",
                                      "nl": false,
                                      "rap": true,
                                      "rh": 0,
                                      "inputs": 0,
                                      "x": 2120,
                                      "y": 2300,
                                      "wires": [
                                          [
                                              "1e6515cac6ba6901"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "90c60a9f3a115521",
                                      "type": "mqtt in",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "topic": "shellies/licht/keller/flur_keller_hinten/events/rpc",
                                      "qos": "2",
                                      "datatype": "auto-detect",
                                      "broker": "b22fc4d3e3f172bb",
                                      "nl": false,
                                      "rap": true,
                                      "rh": 0,
                                      "inputs": 0,
                                      "x": 2140,
                                      "y": 2360,
                                      "wires": [
                                          [
                                              "1e6515cac6ba6901"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "1416273ebfce58bb",
                                      "type": "mqtt in",
                                      "z": "7e6af0015415146d",
                                      "name": "",
                                      "topic": "shellies/licht/keller/flur_keller_vorne/events/rpc",
                                      "qos": "2",
                                      "datatype": "auto-detect",
                                      "broker": "b22fc4d3e3f172bb",
                                      "nl": false,
                                      "rap": true,
                                      "rh": 0,
                                      "inputs": 0,
                                      "x": 2130,
                                      "y": 2420,
                                      "wires": [
                                          [
                                              "1e6515cac6ba6901"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "1e6515cac6ba6901",
                                      "type": "switch",
                                      "z": "7e6af0015415146d",
                                      "name": "NotifyEvent",
                                      "property": "payload.method",
                                      "propertyType": "msg",
                                      "rules": [
                                          {
                                              "t": "eq",
                                              "v": "NotifyEvent",
                                              "vt": "str"
                                          }
                                      ],
                                      "checkall": "true",
                                      "repair": false,
                                      "outputs": 1,
                                      "x": 2430,
                                      "y": 2360,
                                      "wires": [
                                          [
                                              "64eb8e8d7476f747"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "6ab813a6b99d1545",
                                      "type": "ioBroker get",
                                      "z": "7e6af0015415146d",
                                      "name": "licht_flur_keller_manuell",
                                      "topic": "0_userdata.0.hausautomation.licht_flur_keller_manuell",
                                      "attrname": "licht_flur_keller_manuell",
                                      "payloadType": "value",
                                      "errOnInvalidState": "nothing",
                                      "x": 2730,
                                      "y": 2500,
                                      "wires": [
                                          []
                                      ]
                                  },
                                  {
                                      "id": "b52632d1d3763274",
                                      "type": "switch",
                                      "z": "7e6af0015415146d",
                                      "name": "Automatik?",
                                      "property": "auto",
                                      "propertyType": "flow",
                                      "rules": [
                                          {
                                              "t": "true"
                                          }
                                      ],
                                      "checkall": "true",
                                      "repair": false,
                                      "outputs": 1,
                                      "x": 3030,
                                      "y": 2640,
                                      "wires": [
                                          [
                                              "658b57870ce763a7"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "3e7660c3a451876a",
                                      "type": "debug",
                                      "z": "7e6af0015415146d",
                                      "name": "long_push Event",
                                      "active": true,
                                      "tosidebar": true,
                                      "console": false,
                                      "tostatus": false,
                                      "complete": "payload",
                                      "targetType": "msg",
                                      "statusVal": "",
                                      "statusType": "auto",
                                      "x": 2850,
                                      "y": 2280,
                                      "wires": []
                                  },
                                  {
                                      "id": "1fb9b2d47582aa92",
                                      "type": "debug",
                                      "z": "7e6af0015415146d",
                                      "name": "double_push Event",
                                      "active": true,
                                      "tosidebar": true,
                                      "console": false,
                                      "tostatus": false,
                                      "complete": "payload",
                                      "targetType": "msg",
                                      "statusVal": "",
                                      "statusType": "auto",
                                      "x": 2830,
                                      "y": 2400,
                                      "wires": []
                                  },
                                  {
                                      "id": "0a4a5cad7064557a",
                                      "type": "junction",
                                      "z": "7e6af0015415146d",
                                      "x": 4500,
                                      "y": 2760,
                                      "wires": [
                                          [
                                              "0e35c29460abd499"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "519701bc8160d15c",
                                      "type": "junction",
                                      "z": "7e6af0015415146d",
                                      "x": 3840,
                                      "y": 2760,
                                      "wires": [
                                          [
                                              "0a4a5cad7064557a"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "b22fc4d3e3f172bb",
                                      "type": "mqtt-broker",
                                      "name": "iobroker mqtt adapter",
                                      "broker": "localhost",
                                      "port": "1883",
                                      "clientid": "mqttin_nodered",
                                      "autoConnect": true,
                                      "usetls": false,
                                      "protocolVersion": "4",
                                      "keepalive": "60",
                                      "cleansession": true,
                                      "birthTopic": "",
                                      "birthQos": "0",
                                      "birthPayload": "",
                                      "birthMsg": {},
                                      "closeTopic": "",
                                      "closeQos": "0",
                                      "closePayload": "",
                                      "closeMsg": {},
                                      "willTopic": "",
                                      "willQos": "0",
                                      "willPayload": "",
                                      "willMsg": {},
                                      "userProps": "",
                                      "sessionExpiry": ""
                                  }
                              ]
                              

                              a77ad6e1-eccc-4863-bbbe-45dc58322b0e-image.png

                              Mit dieser Anweisung:

                              payload.params.event[component="input:0"].event
                              

                              filterst Du alles events die von der Komponente input:0 kommen und dann aus diesem Objekt selektierst Du die event Eigenschaft.

                              So kannst Du dann aus dem Notification Objekt - alle Eventtypen in der Switch Node direkt abfragen:

                              90ff5fe4-c3d3-4898-ae3c-a0708032b9ae-image.png

                              Wenn mehrere Events zu input:0 aufeinmal kommen, was aber unwahrscheinlich ist - dann wäre es ein Array - dann müsste man das ggf. noch abfangen.

                              H Offline
                              H Offline
                              hotspot_2
                              schrieb am zuletzt editiert von
                              #502

                              @mickym Ich habe mal wieder ein kleines Problem wo ich keine Idee habe wie ich das lösen kann. Vielleicht hast ja Du einen Tipp.

                              340f0460-5be0-4ae3-8af2-81736cf401bf-image.png

                              Ich habe drei Bewegungsmelder die im Treppenhaus (3 Stockwerke) das Licht komplett anmachen wenn es dunkel ist. Nun würde ich gerne mit dem gleichen Flow abfangen das wenn es hell ist bei Bewegung im Keller auch nur das Licht im Keller angeht. Das klappt schon soweit, allerdings löst im Moment noch jeder drei Bewegungsmelder das Licht im Keller ist.

                              Gibt es eine einfach Möglichkeit festzustellen von welchem der drei Bewegungsmelder die Message kommt?

                              Danke schon mal.

                              mickymM 1 Antwort Letzte Antwort
                              0
                              • H hotspot_2

                                @mickym Ich habe mal wieder ein kleines Problem wo ich keine Idee habe wie ich das lösen kann. Vielleicht hast ja Du einen Tipp.

                                340f0460-5be0-4ae3-8af2-81736cf401bf-image.png

                                Ich habe drei Bewegungsmelder die im Treppenhaus (3 Stockwerke) das Licht komplett anmachen wenn es dunkel ist. Nun würde ich gerne mit dem gleichen Flow abfangen das wenn es hell ist bei Bewegung im Keller auch nur das Licht im Keller angeht. Das klappt schon soweit, allerdings löst im Moment noch jeder drei Bewegungsmelder das Licht im Keller ist.

                                Gibt es eine einfach Möglichkeit festzustellen von welchem der drei Bewegungsmelder die Message kommt?

                                Danke schon mal.

                                mickymM Online
                                mickymM Online
                                mickym
                                Most Active
                                schrieb am zuletzt editiert von mickym
                                #503

                                @hotspot_2 klar im topic der Nachricht steht doch woher sie stammt. Falls du dir das topic mit der Get_node (Schalter) überschreibst, must du das ursprüngliche topic halt in eine andere Eigenschaft des Nachrichtenobjekts verschieben.

                                Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                                H 1 Antwort Letzte Antwort
                                0
                                • mickymM mickym

                                  @hotspot_2 klar im topic der Nachricht steht doch woher sie stammt. Falls du dir das topic mit der Get_node (Schalter) überschreibst, must du das ursprüngliche topic halt in eine andere Eigenschaft des Nachrichtenobjekts verschieben.

                                  H Offline
                                  H Offline
                                  hotspot_2
                                  schrieb am zuletzt editiert von
                                  #504

                                  @mickym Hallo! Ich habe mal wieder eine Frage zum Thema NodeRED. Ich würde gerne diese URL absetzen in einem Flow "http://<ip_des_motion>/settings/actions?index=0&enabled=true&name=motion_on". Damit soll man die Blind Time der Shelly Motions zurücksetzen können damit sie gleich wieder reagieren und keine Wartezeiten entstehen, was gerade bei Steuerungen nicht so elegant ist. Ich hab auf Anhieb keine Node gefunden die einfach nur die URL absetzen kann ohne eine Antwort zu erwarten oder im payload weiterzugeben. Einfach nur URL absetzen genügt mir völlig.

                                  Hast Du da einen Tipp?

                                  mickymM 1 Antwort Letzte Antwort
                                  0
                                  • H hotspot_2

                                    @mickym Hallo! Ich habe mal wieder eine Frage zum Thema NodeRED. Ich würde gerne diese URL absetzen in einem Flow "http://<ip_des_motion>/settings/actions?index=0&enabled=true&name=motion_on". Damit soll man die Blind Time der Shelly Motions zurücksetzen können damit sie gleich wieder reagieren und keine Wartezeiten entstehen, was gerade bei Steuerungen nicht so elegant ist. Ich hab auf Anhieb keine Node gefunden die einfach nur die URL absetzen kann ohne eine Antwort zu erwarten oder im payload weiterzugeben. Einfach nur URL absetzen genügt mir völlig.

                                    Hast Du da einen Tipp?

                                    mickymM Online
                                    mickymM Online
                                    mickym
                                    Most Active
                                    schrieb am zuletzt editiert von mickym
                                    #505

                                    @hotspot_2 http-Request Node kann das. Du musst die payload ja nicht nutzen

                                    Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                                    H 1 Antwort Letzte Antwort
                                    0
                                    • mickymM mickym

                                      @hotspot_2 http-Request Node kann das. Du musst die payload ja nicht nutzen

                                      H Offline
                                      H Offline
                                      hotspot_2
                                      schrieb am zuletzt editiert von
                                      #506

                                      @mickym Ich würde gerne vermeiden das die Payload überschrieben wird, aber das kann ich ja dann auch anders lösen.

                                      mickymM 1 Antwort Letzte Antwort
                                      0
                                      • H hotspot_2

                                        @mickym Ich würde gerne vermeiden das die Payload überschrieben wird, aber das kann ich ja dann auch anders lösen.

                                        mickymM Online
                                        mickymM Online
                                        mickym
                                        Most Active
                                        schrieb am zuletzt editiert von mickym
                                        #507

                                        @hotspot_2 Die payload einfach vorher wegsichern in eine andere Eigenschaft und dann wiederherstellen oder wenn der Flow nicht darauf wartet kannst ja die http-request Node parallel schalten.

                                        3d82576a-b85f-4148-919e-e76cd2044cb6-image.png

                                        [
                                           {
                                               "id": "16e222d916ed508d",
                                               "type": "inject",
                                               "z": "517cd16e4d7e6ae4",
                                               "name": "",
                                               "props": [
                                                   {
                                                       "p": "payload"
                                                   }
                                               ],
                                               "repeat": "",
                                               "crontab": "",
                                               "once": false,
                                               "onceDelay": 0.1,
                                               "topic": "",
                                               "payload": "meine Payload",
                                               "payloadType": "str",
                                               "x": 200,
                                               "y": 760,
                                               "wires": [
                                                   [
                                                       "256b81c5a9258da4",
                                                       "e430ce787d9d6df9"
                                                   ]
                                               ]
                                           },
                                           {
                                               "id": "ebe81636ff7f335a",
                                               "type": "http request",
                                               "z": "517cd16e4d7e6ae4",
                                               "name": "",
                                               "method": "GET",
                                               "ret": "txt",
                                               "paytoqs": "ignore",
                                               "url": "http://192.168.178.220/settings/actions?index=0&enabled=true&name=motion_on",
                                               "tls": "",
                                               "persist": false,
                                               "proxy": "",
                                               "insecureHTTPParser": false,
                                               "authType": "",
                                               "senderr": false,
                                               "headers": [],
                                               "x": 650,
                                               "y": 760,
                                               "wires": [
                                                   [
                                                       "5a11e17731a11ba6",
                                                       "3f6a9e00ac86a57c"
                                                   ]
                                               ]
                                           },
                                           {
                                               "id": "256b81c5a9258da4",
                                               "type": "change",
                                               "z": "517cd16e4d7e6ae4",
                                               "name": "",
                                               "rules": [
                                                   {
                                                       "t": "move",
                                                       "p": "payload",
                                                       "pt": "msg",
                                                       "to": "backup",
                                                       "tot": "msg"
                                                   }
                                               ],
                                               "action": "",
                                               "property": "",
                                               "from": "",
                                               "to": "",
                                               "reg": false,
                                               "x": 440,
                                               "y": 760,
                                               "wires": [
                                                   [
                                                       "ebe81636ff7f335a"
                                                   ]
                                               ]
                                           },
                                           {
                                               "id": "5a11e17731a11ba6",
                                               "type": "change",
                                               "z": "517cd16e4d7e6ae4",
                                               "name": "",
                                               "rules": [
                                                   {
                                                       "t": "move",
                                                       "p": "backup",
                                                       "pt": "msg",
                                                       "to": "payload",
                                                       "tot": "msg"
                                                   }
                                               ],
                                               "action": "",
                                               "property": "",
                                               "from": "",
                                               "to": "",
                                               "reg": false,
                                               "x": 860,
                                               "y": 760,
                                               "wires": [
                                                   [
                                                       "60a5729510d0e2c7"
                                                   ]
                                               ]
                                           },
                                           {
                                               "id": "3f6a9e00ac86a57c",
                                               "type": "debug",
                                               "z": "517cd16e4d7e6ae4",
                                               "name": "http request",
                                               "active": true,
                                               "tosidebar": true,
                                               "console": false,
                                               "tostatus": false,
                                               "complete": "payload",
                                               "targetType": "msg",
                                               "statusVal": "",
                                               "statusType": "auto",
                                               "x": 870,
                                               "y": 700,
                                               "wires": []
                                           },
                                           {
                                               "id": "e430ce787d9d6df9",
                                               "type": "debug",
                                               "z": "517cd16e4d7e6ae4",
                                               "name": "payload vorher",
                                               "active": true,
                                               "tosidebar": true,
                                               "console": false,
                                               "tostatus": false,
                                               "complete": "payload",
                                               "targetType": "msg",
                                               "statusVal": "",
                                               "statusType": "auto",
                                               "x": 440,
                                               "y": 700,
                                               "wires": []
                                           }
                                        ]
                                        

                                        oder halt payload ignorieren, wenn nicht auf Ergebnis gewartet werden muss.

                                        cf919d1a-b9b4-45bb-aef1-6504554e34d1-image.png

                                        Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                                        H 1 Antwort Letzte Antwort
                                        0
                                        • mickymM mickym

                                          @hotspot_2 Die payload einfach vorher wegsichern in eine andere Eigenschaft und dann wiederherstellen oder wenn der Flow nicht darauf wartet kannst ja die http-request Node parallel schalten.

                                          3d82576a-b85f-4148-919e-e76cd2044cb6-image.png

                                          [
                                             {
                                                 "id": "16e222d916ed508d",
                                                 "type": "inject",
                                                 "z": "517cd16e4d7e6ae4",
                                                 "name": "",
                                                 "props": [
                                                     {
                                                         "p": "payload"
                                                     }
                                                 ],
                                                 "repeat": "",
                                                 "crontab": "",
                                                 "once": false,
                                                 "onceDelay": 0.1,
                                                 "topic": "",
                                                 "payload": "meine Payload",
                                                 "payloadType": "str",
                                                 "x": 200,
                                                 "y": 760,
                                                 "wires": [
                                                     [
                                                         "256b81c5a9258da4",
                                                         "e430ce787d9d6df9"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "ebe81636ff7f335a",
                                                 "type": "http request",
                                                 "z": "517cd16e4d7e6ae4",
                                                 "name": "",
                                                 "method": "GET",
                                                 "ret": "txt",
                                                 "paytoqs": "ignore",
                                                 "url": "http://192.168.178.220/settings/actions?index=0&enabled=true&name=motion_on",
                                                 "tls": "",
                                                 "persist": false,
                                                 "proxy": "",
                                                 "insecureHTTPParser": false,
                                                 "authType": "",
                                                 "senderr": false,
                                                 "headers": [],
                                                 "x": 650,
                                                 "y": 760,
                                                 "wires": [
                                                     [
                                                         "5a11e17731a11ba6",
                                                         "3f6a9e00ac86a57c"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "256b81c5a9258da4",
                                                 "type": "change",
                                                 "z": "517cd16e4d7e6ae4",
                                                 "name": "",
                                                 "rules": [
                                                     {
                                                         "t": "move",
                                                         "p": "payload",
                                                         "pt": "msg",
                                                         "to": "backup",
                                                         "tot": "msg"
                                                     }
                                                 ],
                                                 "action": "",
                                                 "property": "",
                                                 "from": "",
                                                 "to": "",
                                                 "reg": false,
                                                 "x": 440,
                                                 "y": 760,
                                                 "wires": [
                                                     [
                                                         "ebe81636ff7f335a"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "5a11e17731a11ba6",
                                                 "type": "change",
                                                 "z": "517cd16e4d7e6ae4",
                                                 "name": "",
                                                 "rules": [
                                                     {
                                                         "t": "move",
                                                         "p": "backup",
                                                         "pt": "msg",
                                                         "to": "payload",
                                                         "tot": "msg"
                                                     }
                                                 ],
                                                 "action": "",
                                                 "property": "",
                                                 "from": "",
                                                 "to": "",
                                                 "reg": false,
                                                 "x": 860,
                                                 "y": 760,
                                                 "wires": [
                                                     [
                                                         "60a5729510d0e2c7"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "3f6a9e00ac86a57c",
                                                 "type": "debug",
                                                 "z": "517cd16e4d7e6ae4",
                                                 "name": "http request",
                                                 "active": true,
                                                 "tosidebar": true,
                                                 "console": false,
                                                 "tostatus": false,
                                                 "complete": "payload",
                                                 "targetType": "msg",
                                                 "statusVal": "",
                                                 "statusType": "auto",
                                                 "x": 870,
                                                 "y": 700,
                                                 "wires": []
                                             },
                                             {
                                                 "id": "e430ce787d9d6df9",
                                                 "type": "debug",
                                                 "z": "517cd16e4d7e6ae4",
                                                 "name": "payload vorher",
                                                 "active": true,
                                                 "tosidebar": true,
                                                 "console": false,
                                                 "tostatus": false,
                                                 "complete": "payload",
                                                 "targetType": "msg",
                                                 "statusVal": "",
                                                 "statusType": "auto",
                                                 "x": 440,
                                                 "y": 700,
                                                 "wires": []
                                             }
                                          ]
                                          

                                          oder halt payload ignorieren, wenn nicht auf Ergebnis gewartet werden muss.

                                          cf919d1a-b9b4-45bb-aef1-6504554e34d1-image.png

                                          H Offline
                                          H Offline
                                          hotspot_2
                                          schrieb am zuletzt editiert von
                                          #508

                                          @mickym Super! Vielen Dank. So komm ich weiter.

                                          H 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          734

                                          Online

                                          32.4k

                                          Benutzer

                                          81.4k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe