Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Shellys ("Alt und Plus") über MQTT Adapter

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

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

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

      @dos1973 Na dann sag einfach wann es losgehen soll. Kannst ja auch einen eigenen Thread erstellen.

      H 2 Replies Last reply Reply Quote 0
      • H
        hotspot_2 @mickym last edited by

        @mickym Ich würde gerne einen Samdfilter morgens anschalten wenn die PV mehr als ein paar Watt produziert und abends wieder aus wenn wir den Wert unterschreiten. Kannst Du mir da einen Tipp geben wie man das am einfachsten macht mit NodeRed? Danke schon mal.

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

          @mickym

          Hallo ich habe heute meinen iobroker Server auf proxmox installiert in einer VM. Backup hat soweit geklappt muss aber noch ein paar kleinere Probleme jetzt lösen.

          Unter anderem will Node RED nicht so richtig arbeiten.

          ec46de0b-ea4c-4265-9d94-674d4fcfd92c-image.png

          Es kommt diese Fehlermeldung und wenn ich auf die Suche nach den unbekannten Nodes klicke das hier:

          85e397bc-a133-4dbc-850f-dc9cfa0fd30f-image.png

          Und das hier steht an der Seite:
          74e06f65-851a-4b30-bf6d-8238e5332b4a-image.png

          Kannst Du mir sagen was ich hier machen muss damit meine Flows alle wieder funktionieren?

          Danke schon mal.

          mickym 1 Reply Last reply Reply Quote 0
          • mickym
            mickym Most Active @hotspot_2 last edited by 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 1 Reply Last reply Reply Quote 0
            • H
              hotspot_2 @mickym last edited by

              @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?

              mickym 1 Reply Last reply Reply Quote 0
              • mickym
                mickym Most Active @hotspot_2 last edited by 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 1 Reply Last reply Reply Quote 0
                • H
                  hotspot_2 @mickym last edited by

                  @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.

                  mickym 1 Reply Last reply Reply Quote 0
                  • mickym
                    mickym Most Active @hotspot_2 last edited by 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 1 Reply Last reply Reply Quote 0
                    • H
                      hotspot_2 @mickym last edited by

                      @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 Reply Last reply Reply Quote 1
                      • H
                        hotspot_2 @hotspot_2 last edited by

                        @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.

                        mickym 1 Reply Last reply Reply Quote 0
                        • mickym
                          mickym Most Active @hotspot_2 last edited by 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 1 Reply Last reply Reply Quote 0
                          • H
                            hotspot_2 @mickym last edited by 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 1 Reply Last reply Reply Quote 0
                            • H
                              hotspot_2 @hotspot_2 last edited by hotspot_2

                              @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 Reply Last reply Reply Quote 0
                              • mickym
                                mickym Most Active last edited by

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

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

                                  @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?

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

                                    @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

                                    1 Reply Last reply Reply Quote 0
                                    • mickym
                                      mickym Most Active @hotspot_2 last edited by 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 1 Reply Last reply Reply Quote 0
                                      • H
                                        hotspot_2 @mickym last edited by

                                        @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.

                                        mickym 1 Reply Last reply Reply Quote 0
                                        • mickym
                                          mickym Most Active @hotspot_2 last edited by 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 1 Reply Last reply Reply Quote 0
                                          • H
                                            hotspot_2 @mickym last edited by

                                            @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?

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

                                            Support us

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

                                            638
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            512
                                            71184
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo