Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
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

Scheduled Pinned Locked Moved ioBroker Allgemein
512 Posts 5 Posters 93.1k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mickymM Online
    mickymM Online
    mickym
    Most Active
    wrote on last edited by
    #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 Reply Last reply
    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
      wrote on last edited by
      #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 Replies Last reply
      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
        wrote on last edited by 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 Reply Last reply
        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
          wrote on last edited by 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 Reply Last reply
          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
            wrote on last edited by
            #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 Reply Last reply
            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
              wrote on last edited by 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 Reply Last reply
              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
                wrote on last edited by
                #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 Reply Last reply
                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
                  wrote on last edited by 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 Reply Last reply
                  0
                  • mickymM mickym

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

                    H Offline
                    H Offline
                    hotspot_2
                    wrote on last edited by
                    #506

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

                    mickymM 1 Reply Last reply
                    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
                      wrote on last edited by 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 Reply Last reply
                      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
                        wrote on last edited by
                        #508

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

                        H 1 Reply Last reply
                        0
                        • H hotspot_2

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

                          H Offline
                          H Offline
                          hotspot_2
                          wrote on last edited by
                          #509

                          @hotspot_2 Hab noch mal was ;-). Wenn ich die Inhalte von Flow Eigenschaften einsehen möchte also welcher Wert da gerade drin steht? Wie krieg ich das hin? Das geht doch nicht mit den debug-Nodes, oder?

                          mickymM 1 Reply Last reply
                          0
                          • H hotspot_2

                            @hotspot_2 Hab noch mal was ;-). Wenn ich die Inhalte von Flow Eigenschaften einsehen möchte also welcher Wert da gerade drin steht? Wie krieg ich das hin? Das geht doch nicht mit den debug-Nodes, oder?

                            mickymM Online
                            mickymM Online
                            mickym
                            Most Active
                            wrote on last edited by
                            #510

                            @hotspot_2 Meinst Du den Flow Kontext ? Den siehst Du im Kontext Tab

                            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 Reply Last reply
                            0
                            • mickymM mickym

                              @hotspot_2 Meinst Du den Flow Kontext ? Den siehst Du im Kontext Tab

                              H Offline
                              H Offline
                              hotspot_2
                              wrote on last edited by
                              #511

                              @mickym Hallo! Ich habe zur Zeit ein Problem das mir ein Shelly (Licht) immer wieder mal angesteuert wird und ich kann mir nicht erklären warum. Gibt es da eine Möglichkeit das ich vor das MQTT Out Node irgendwas setze was mir die Payloads länger dokumentiert die da drüber gehen? Also so eine Art Log zu schreiben über längere Zeit?

                              Danke schon mal für einen Tipp dazu.

                              mickymM 1 Reply Last reply
                              0
                              • H hotspot_2

                                @mickym Hallo! Ich habe zur Zeit ein Problem das mir ein Shelly (Licht) immer wieder mal angesteuert wird und ich kann mir nicht erklären warum. Gibt es da eine Möglichkeit das ich vor das MQTT Out Node irgendwas setze was mir die Payloads länger dokumentiert die da drüber gehen? Also so eine Art Log zu schreiben über längere Zeit?

                                Danke schon mal für einen Tipp dazu.

                                mickymM Online
                                mickymM Online
                                mickym
                                Most Active
                                wrote on last edited by
                                #512

                                @hotspot_2 Einfach eine DebugNode nehmen und in die Systemkonsole schreiben (die DebugNode entsprechend sprechend benennen). Dann taucht alles im iobroker Protokoll auf.

                                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 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                Support us

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

                                560

                                Online

                                32.4k

                                Users

                                81.4k

                                Topics

                                1.3m

                                Posts
                                Community
                                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                ioBroker Community 2014-2025
                                logo
                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Recent
                                • Tags
                                • Unread 0
                                • Categories
                                • Unreplied
                                • Popular
                                • GitHub
                                • Docu
                                • Hilfe