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.
    • H
      hotspot_2 @mickym last edited by

      @dos1973

      Ich würde das Angebot von @mickym annehmen ;-). Hat mir auch sehr geholfen und ich möchte NodeRED nicht mehr missen. Habe vorher auch (fast) alles mit Blockly gemacht und bin mittlerweile der Meinung wenn man das Prinzip von NodeRED verstanden ist es für das Thema IoT deutlich besser geeignet ;-).

      Vielleicht kann ich ja bei dem ein oder anderen Punkt auch was dazu beitragen das du auch auf den Trichter kommst ;-).

      D 1 Reply Last reply Reply Quote 0
      • D
        dos1973 @hotspot_2 last edited by

        @hotspot_2

        na klaro nehme ich das an. @mickym danke dafür.
        ich habe das Prinzip wohl immer noch nicht verinnerlicht, ich kann mir aus den Bausteinen einfach nicht das passende raussuchen und es dann zu editieren.

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

          @dos1973 Die Frage ist halt braucht es ein Projekt oder wollen wir irgendwann mal einfach mit den Grundlagen anfangen?

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

            @mickym
            nein, Grundlagen sind sicherlich ein guter Start. Dafür braucht es kein Thema

            mickym 1 Reply Last reply Reply Quote 0
            • 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
                                            • First post
                                              Last post

                                            Support us

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

                                            655
                                            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