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

      @mickym Das ist komisch, kaum ist der switch auf payload.output = true drin. Funktioniert es. Das Licht bleibt aus nach dem die Zeit abgelaufen ist. Vorher bestimmt 20 mal kurz aus und wieder eingeschaltet. Und es hat niemand gedrückt oder sich im Treppenhaus bewegt. Zumal ich die Schalter für Bewegungsmelder eh auf aus hatte.

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

        @hotspot_2 Zeig mal den Screenshot Deiner trigger Node komplett.

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

          @mickym Ah ich habe schon einen Verdacht. 😉 Kann sein, dass die mqtt- Nodes bei den Strom betriebenen Geräten alle 30 s senden. Kannst Du mit debug Nodes prüfen - hat mit dem Status nichts zu tun.

          Du musst auch bei den Schaltern, wie beim Button auch auf Input prüfen. Es geht nicht um den Status des Relais sondern Betätigung des Schalters.

          Du müsstest doch bei den Schaltern im status auch einen Input:0 topic haben?

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

            @mickym Wir haben doch beim Schreiben in die Objekte auch immer nur den topic switch:0 payload.output in die Objekte geschrieben? Einen input:0 topic gibt es nicht.

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

              @hotspot_2 Ja da wolltest Du aber wissen ob das Licht eingeschaltet ist - also den status des Relais.Zeig mal den gesamten switch -Datenpunkt

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

                @mickym

                {
                  "id": 0,
                  "source": "MQTT",
                  "output": false,
                  "temperature": {
                    "tC": 54.2,
                    "tF": 129.6
                  }
                }
                
                mickym 1 Reply Last reply Reply Quote 0
                • mickym
                  mickym Most Active @hotspot_2 last edited by mickym

                  @hotspot_2 Zeig mal die datenpunkt unter events rpc wahrscheinlich. 😉

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

                    @mickym Das komische ist, wenn ich einen Debug auf den status mache dann kommt da gar nichts an wenn ich den Schalter drücke.

                    events/rpc liefert folgendes:

                    Drücken des Tasters:

                    {"src":"shellyplus1-441793a39cdc","dst":"shellies/licht/treppenhaus/oben/events","method":"NotifyEvent","params":{"ts":1680461760.35,"events":[{"component":"input:0","id":0,"event":"btn_down","ts":1680461760.35}]}}
                    

                    loslassen des Tasters:

                    {"src":"shellyplus1-441793a39cdc","dst":"shellies/licht/treppenhaus/oben/events","method":"NotifyEvent","params":{"ts":1680461760.56,"events":[{"component":"input:0","id":0,"event":"btn_up","ts":1680461760.56}]}}
                    
                    mickym 2 Replies Last reply Reply Quote 0
                    • mickym
                      mickym Most Active @hotspot_2 last edited by

                      @hotspot_2 Nochmal der status interessiert jetzt erst mal nicht. Zeig bitte events rpc

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

                        @hotspot_2 sagte in Shellys ("Alt und Plus") über MQTT Adapter:

                        {"src":"shellyplus1-441793a39cdc","dst":"shellies/licht/treppenhaus/oben/events","method":"NotifyEvent","params":{"ts":1680461760.35,"events":[{"component":"input:0","id":0,"event":"btn_down","ts":1680461760.35}]}}

                        Ja und bei den schaltern müsste es was gleiches geben.

                        Ich würde also auf "component": "input:0" filtern und dasselbe bei den Schaltern

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

                          @mickym Was meinst Du mit "Schaltern?"

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

                            @hotspot_2 Na ich denke Du hast einen Taster und button und 2 Schalter.

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

                              @mickym Es sind zwei Shelly Plus1 und ein Shelly Button die betätigt werden können.

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

                                @hotspot_2 Ja aber ALLE sollten doch unter events einen rpc Datenpunkt haben

                                Und der switch um nur Schalter und Tastenbetätigungen durch zulassen müssen dann so aussehen:

                                ffab6d4d-61e1-4bdb-98d7-7c4088c41206-image.png

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

                                  @mickym Beim Button1 sind wir auf input_event/0 gegangen per mqtt in. Wenn man den drückt geht das Licht an, das funktioniert. Der hat kein rpc.

                                  Ich filtere jetzt mal den Switch nur nach den beiden Plus1 und dann schau ich mal wie es funktioniert.

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

                                    @hotspot_2 Ok bei den Switches mach am Besten die beiden Switches dazwischen;

                                    d384e4c0-4f8a-413e-9c65-1a608018001c-image.png

                                    [
                                       {
                                           "id": "add92b0db6d9cbf5",
                                           "type": "switch",
                                           "z": "2e7d4cac81c671e3",
                                           "name": "Input:0",
                                           "property": "payload.params.events[0].component",
                                           "propertyType": "msg",
                                           "rules": [
                                               {
                                                   "t": "eq",
                                                   "v": "input:0",
                                                   "vt": "str"
                                               }
                                           ],
                                           "checkall": "true",
                                           "repair": false,
                                           "outputs": 1,
                                           "x": 990,
                                           "y": 2880,
                                           "wires": [
                                               [
                                                   "03c9fdaad768e081"
                                               ]
                                           ]
                                       },
                                       {
                                           "id": "55d9c2ccdd22f391",
                                           "type": "switch",
                                           "z": "2e7d4cac81c671e3",
                                           "name": "NotifyEvent",
                                           "property": "payload.method",
                                           "propertyType": "msg",
                                           "rules": [
                                               {
                                                   "t": "eq",
                                                   "v": "NotifyEvent",
                                                   "vt": "str"
                                               }
                                           ],
                                           "checkall": "true",
                                           "repair": false,
                                           "outputs": 1,
                                           "x": 830,
                                           "y": 2880,
                                           "wires": [
                                               [
                                                   "add92b0db6d9cbf5"
                                               ]
                                           ]
                                       }
                                    ]
                                    

                                    Das sollte dann sicher funktionieren. Hinten dran wieder eine debug Node - da sollten dann nur Nachrichten bei Betätigung des Schalters rauskommen.

                                    Sind diese Switches auch taster? - dann können wir besser nur auf das Drücken des Buttons filtern.

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

                                      @mickym Ja, das sind Taster.

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

                                        @hotspot_2 Wenn ich jetzt den Debug an die beiden Switches (oben dran mache) dann krieg ich bei Tasterdruck drei Events.

                                        1. btn_down
                                        2. btn_up
                                        3. single_push
                                        mickym 1 Reply Last reply Reply Quote 0
                                        • mickym
                                          mickym Most Active @hotspot_2 last edited by mickym

                                          @hotspot_2 Ok dann machen wir es ganz sicher:

                                          [
                                             {
                                                 "id": "add92b0db6d9cbf5",
                                                 "type": "switch",
                                                 "z": "2e7d4cac81c671e3",
                                                 "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": 1030,
                                                 "y": 2880,
                                                 "wires": [
                                                     [
                                                         "03c9fdaad768e081"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "55d9c2ccdd22f391",
                                                 "type": "switch",
                                                 "z": "2e7d4cac81c671e3",
                                                 "name": "NotifyEvent",
                                                 "property": "payload.method",
                                                 "propertyType": "msg",
                                                 "rules": [
                                                     {
                                                         "t": "eq",
                                                         "v": "NotifyEvent",
                                                         "vt": "str"
                                                     }
                                                 ],
                                                 "checkall": "true",
                                                 "repair": false,
                                                 "outputs": 1,
                                                 "x": 830,
                                                 "y": 2880,
                                                 "wires": [
                                                     [
                                                         "add92b0db6d9cbf5"
                                                     ]
                                                 ]
                                             }
                                          ]
                                          

                                          Damit wird nur auf notify Events beim Drücken des Tasters gefiltert.

                                          93912756-89dd-4a52-8c99-45d3f645216f-image.png

                                          0b0d05b8-2fb9-4063-b67b-58118b5c2aaa-image.png

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

                                            @hotspot_2 sagte in Shellys ("Alt und Plus") über MQTT Adapter:

                                            @hotspot_2 Wenn ich jetzt den Debug an die beiden Switches (oben dran mache) dann krieg ich bei Tasterdruck drei Events.

                                            1. btn_down
                                            2. btn_up
                                            3. single_push

                                            Ja ich hab Dir nun ein Filter geschickt - der nur noch btn_down bei Input:0 durchlässt.

                                            H 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

                                            951
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            512
                                            71097
                                            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