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

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

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

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

      @dos1973 Ja können wir probieren - ich hab die Shellies zwar nicht, aber müssen wir halt probieren. 😉 Du musst mir halt alles posten. Screenshots der Datenpunkte und Inhalt der Ausgaben mit debug Nodes.

      Erstelle halt wieder einen Datenpunkt unter 0_userdata.0

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

        @mickym

        Bildschirmfoto 2023-04-07 um 23.26.40.png

        hier mal alle daten:
        der rollo bewegt sich mit "state":"opening/closing/stopped

        rpc

        {"src":"shellyplus2pm-a8032ab70240","dst":"shellies/Rolladen/Wohnen/events","method":"NotifyStatus","params":{"ts":1680902820.02,"cover:0":{"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1680902819,"total":0.000}}}}
        

        cover:0

        {"id":0, "source":"WS_in", "state":"stopped","apower":0.0,"voltage":234.2,"current":0.000,"pf":0.00,"aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1680902819},"temperature":{"tC":57.5, "tF":135.5},"pos_control":false}
        

        öffnen

        {"id":0, "source":"WS_in", "state":"opening","move_timeout":60.00, "move_started_at":1680903013.99,"apower":0.0,"voltage":234.0,"current":0.000,"pf":-0.00,"aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1680903013},"temperature":{"tC":56.0, "tF":132.8},"pos_control":false}
        

        schliessen

        {"id":0, "source":"WS_in", "state":"closing","move_timeout":60.00, "move_started_at":1680903053.46,"apower":0.0,"voltage":234.3,"current":0.000,"pf":0.00,"aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1680903053},"temperature":{"tC":55.7, "tF":132.3},"pos_control":false}
        

        der hängt nur am strom, noch kein Rollo und keine Calibrierung für die Position

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

          @dos1973 na dann machts aber im Moment nicht viel Sinn.

          Im Prinzip zum Steuern können wir wieder über den command Ast gehen.

          Den Status bekommst du hier:

          9021a92d-d305-4889-a26c-4763a3811f9d-image.png

          2f622630-c676-49e4-9f43-1a9fc76cbe54-image.png

          In dem Fall würde ich Dir 2 Datenpunkte unter 0_userdata.0 empfehlen. Einen für den Status, den Du nicht beschreiben kannst, den Du aber für den Status in der vis auslesen kannst und einen zum Steuern. Wenn Du beides hast, denn nenn mir die Datenpunkte.

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

            @mickym
            beide als String anlegen?

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

              @dos1973 Ja

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

                @mickym

                0_userdata.0.Wohnung.Status.Shellys.node-red.Rolladen.control
                0_userdata.0.Wohnung.Status.Shellys.node-red.Rolladen.status
                

                der status ist nicht schreibbar

                kann den Rolladen aus kurz anschliessen...

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

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

                                                                                                                                              0_userdata.0.Wohnung.Status.Shellys.node-red.Rolladen.control                                                                                                                                                                            0_userdata.0.Wohnung.Status.Shellys.node-red.Rolladen.status                                            
                  

                  So dann müsste dieser Flow funktionieren:

                  [
                     {
                         "id": "6d49413af6de6a69",
                         "type": "group",
                         "z": "2e7d4cac81c671e3",
                         "style": {
                             "stroke": "#999999",
                             "stroke-opacity": "1",
                             "fill": "none",
                             "fill-opacity": "1",
                             "label": true,
                             "label-position": "nw",
                             "color": "#a4a4a4"
                         },
                         "nodes": [
                             "2687ef51e182ae3e",
                             "8c2f0aa73a8f9642",
                             "4f4d7ebeab8af33c",
                             "582dd65ed0823483",
                             "c2e2efbc11b4b072",
                             "59af2f2b6ec08346",
                             "ce2e90a37a7ef5e7"
                         ],
                         "x": 54,
                         "y": 2819,
                         "w": 1092,
                         "h": 222
                     },
                     {
                         "id": "2687ef51e182ae3e",
                         "type": "mqtt in",
                         "z": "2e7d4cac81c671e3",
                         "g": "6d49413af6de6a69",
                         "name": "",
                         "topic": "shellies/Rolladen/Wohnen/status/cover:0",
                         "qos": "2",
                         "datatype": "auto-detect",
                         "broker": "",
                         "nl": false,
                         "rap": true,
                         "rh": 0,
                         "inputs": 0,
                         "x": 240,
                         "y": 2900,
                         "wires": [
                             [
                                 "8c2f0aa73a8f9642"
                             ]
                         ]
                     },
                     {
                         "id": "8c2f0aa73a8f9642",
                         "type": "change",
                         "z": "2e7d4cac81c671e3",
                         "g": "6d49413af6de6a69",
                         "name": "",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "payload",
                                 "pt": "msg",
                                 "to": "payload.state",
                                 "tot": "msg"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 530,
                         "y": 2900,
                         "wires": [
                             [
                                 "4f4d7ebeab8af33c"
                             ]
                         ]
                     },
                     {
                         "id": "4f4d7ebeab8af33c",
                         "type": "ioBroker out",
                         "z": "2e7d4cac81c671e3",
                         "g": "6d49413af6de6a69",
                         "name": "",
                         "topic": "0_userdata.0.Wohnung.Status.Shellys.node-red.Rolladen.status",
                         "ack": "true",
                         "autoCreate": "true",
                         "stateName": "",
                         "role": "",
                         "payloadType": "boolean",
                         "readonly": "false",
                         "stateUnit": "",
                         "stateMin": "",
                         "stateMax": "",
                         "x": 890,
                         "y": 2900,
                         "wires": []
                     },
                     {
                         "id": "582dd65ed0823483",
                         "type": "comment",
                         "z": "2e7d4cac81c671e3",
                         "g": "6d49413af6de6a69",
                         "name": "Status",
                         "info": "",
                         "x": 130,
                         "y": 2860,
                         "wires": []
                     },
                     {
                         "id": "c2e2efbc11b4b072",
                         "type": "comment",
                         "z": "2e7d4cac81c671e3",
                         "g": "6d49413af6de6a69",
                         "name": "Schalten",
                         "info": "",
                         "x": 140,
                         "y": 2960,
                         "wires": []
                     },
                     {
                         "id": "59af2f2b6ec08346",
                         "type": "ioBroker in",
                         "z": "2e7d4cac81c671e3",
                         "g": "6d49413af6de6a69",
                         "name": "",
                         "topic": "0_userdata.0.Wohnung.Status.Shellys.node-red.Rolladen.control",
                         "payloadType": "value",
                         "onlyack": "command",
                         "func": "all",
                         "gap": "",
                         "fireOnStart": "false",
                         "outFormat": "MQTT",
                         "x": 310,
                         "y": 3000,
                         "wires": [
                             [
                                 "ce2e90a37a7ef5e7"
                             ]
                         ]
                     },
                     {
                         "id": "ce2e90a37a7ef5e7",
                         "type": "mqtt out",
                         "z": "2e7d4cac81c671e3",
                         "g": "6d49413af6de6a69",
                         "name": "",
                         "topic": "shellies/Rolladen/Wohnen/command/cover:0",
                         "qos": "",
                         "retain": "",
                         "respTopic": "",
                         "contentType": "",
                         "userProps": "",
                         "correl": "",
                         "expiry": "",
                         "broker": "",
                         "x": 770,
                         "y": 3000,
                         "wires": []
                     }
                  ]
                  

                  129886f0-c37e-4a83-8410-8196a8c91c46-image.png

                  Die Kommandos siehst ja unten im Screenshot.

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

                    @mickym
                    status stimmt: steht opening /closing/stopped

                    aber unter control passiert nichts, wenn ich da etwas engebe

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

                      @mickym was gibst Du denn ein? 😉 😁 Hast Du auch die mqtt-Out richtig konfiguriert?

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

                        @mickym
                        opening /closing ...?

                        ok: habs open /close /stop

                        in der zwischenzeit habe ich den angeschlossen und calibriert.

                        current_pos":19

                        {"id":0, "source":"timeout", "state":"stopped","apower":0.0,"voltage":235.5,"current":0.000,"pf":0.00,"aenergy":{"total":4.544,"by_minute":[35.876,0.000,315.490],"minute_ts":1680905190},"temperature":{"tC":54.1, "tF":129.4},"pos_control":true,"current_pos":19}
                        
                        mickym 1 Reply Last reply Reply Quote 0
                        • mickym
                          mickym Most Active @dos1973 last edited by mickym

                          @dos1973 NEIN - das darfst Du nicht eingeben - opening, closing sind Statusbeschreibungen, während das Rollo in Bewegung ist. Ich hab Dir doch die Kommandos gepostet

                          5e616914-3f36-4154-8428-8d80c131394f-image.png

                          es müsste also auch pos,40 gehen

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

                            @mickym
                            Ja, oh mann bist du gut

                            ich könnt dich grad knutschen 🙂

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

                              @mickym

                              ich möchte mich herzlichst für deine Zeit und deine unerschütterliche Mühe und Geduld bedanken!!! läuft 1A

                              Ich habe 10 Stück im Schrank liegen und habe mich jetzt Wochenlang gescheut das in Angriff zu nehmen.

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

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

                                @mickym
                                Ja, oh mann bist du gut

                                ich könnt dich grad knutschen 🙂

                                Na freut mich - für die aktuelle Position machst dann noch einen eigenen Datenpunkt - ich hab ihn mal pos genannt. Musst Du nicht anlegen

                                [
                                   {
                                       "id": "45f9fe0c07a645aa",
                                       "type": "change",
                                       "z": "2e7d4cac81c671e3",
                                       "g": "6d49413af6de6a69",
                                       "name": "",
                                       "rules": [
                                           {
                                               "t": "set",
                                               "p": "payload",
                                               "pt": "msg",
                                               "to": "payload.current_pos",
                                               "tot": "msg"
                                           }
                                       ],
                                       "action": "",
                                       "property": "",
                                       "from": "",
                                       "to": "",
                                       "reg": false,
                                       "x": 550,
                                       "y": 2960,
                                       "wires": [
                                           [
                                               "2dd3d3c5a66bbe2e"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "2dd3d3c5a66bbe2e",
                                       "type": "ioBroker out",
                                       "z": "2e7d4cac81c671e3",
                                       "g": "6d49413af6de6a69",
                                       "name": "",
                                       "topic": "0_userdata.0.Wohnung.Status.Shellys.node-red.Rolladen.pos",
                                       "ack": "true",
                                       "autoCreate": "true",
                                       "stateName": "",
                                       "role": "",
                                       "payloadType": "number",
                                       "readonly": "false",
                                       "stateUnit": "",
                                       "stateMin": "",
                                       "stateMax": "",
                                       "x": 900,
                                       "y": 2960,
                                       "wires": []
                                   }
                                ]
                                

                                6daf05c1-68ab-41f9-a1a5-ed2d1e4c8c4e-image.png

                                Als einfach hinter die mqtt-IN Node anschließen. Dann siehst immer den aktuellen Zustand als Zahl.

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

                                  @mickym
                                  wäre eine steuerung über Pos möglich - nur mit der Zahl?

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

                                    @dos1973 Ja - dann musst Du halt den control Datenpunkt immer eine Zahl reinschreiben, dann gehen wir immer davon aus, dass Du die position meinst und stellen das Kommando selbst zusammen.

                                    05b3feb1-849e-4a0a-b392-11e94977b363-image.png

                                    Dann machst halt nur noch eine Zahl da rein und wir setzen über die abgebildete Change Node das Postitionskommando selbst zusammen.

                                    Dann funktionieren halt die anderen Kommandos nicht. Oder Du machst noch einen eigenen Datenpunkt - indem Du nur Zahlen schreibst. Eigentlich sollte das ja nun fast alles selbst erklärend sein. 😉

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

                                      @mickym
                                      control soll bleiben
                                      nur pos soll eben nur mit der zahl fahren:

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

                                        @dos1973 Achso Du meinst pos gleichzeitig zum Steuern und für den Status ja können wir machen.

                                        Such Dir raus, was Du brauchst:

                                        [
                                           {
                                               "id": "6d49413af6de6a69",
                                               "type": "group",
                                               "z": "2e7d4cac81c671e3",
                                               "style": {
                                                   "stroke": "#999999",
                                                   "stroke-opacity": "1",
                                                   "fill": "none",
                                                   "fill-opacity": "1",
                                                   "label": true,
                                                   "label-position": "nw",
                                                   "color": "#a4a4a4"
                                               },
                                               "nodes": [
                                                   "2687ef51e182ae3e",
                                                   "8c2f0aa73a8f9642",
                                                   "4f4d7ebeab8af33c",
                                                   "582dd65ed0823483",
                                                   "c2e2efbc11b4b072",
                                                   "59af2f2b6ec08346",
                                                   "ce2e90a37a7ef5e7",
                                                   "45f9fe0c07a645aa",
                                                   "2dd3d3c5a66bbe2e",
                                                   "6047acf1eb80bc34",
                                                   "885595c1b312e5de"
                                               ],
                                               "x": 54,
                                               "y": 2799,
                                               "w": 1112,
                                               "h": 362
                                           },
                                           {
                                               "id": "2687ef51e182ae3e",
                                               "type": "mqtt in",
                                               "z": "2e7d4cac81c671e3",
                                               "d": true,
                                               "g": "6d49413af6de6a69",
                                               "name": "",
                                               "topic": "shellies/Rolladen/Wohnen/status/cover:0",
                                               "qos": "2",
                                               "datatype": "auto-detect",
                                               "broker": "",
                                               "nl": false,
                                               "rap": true,
                                               "rh": 0,
                                               "inputs": 0,
                                               "x": 240,
                                               "y": 2880,
                                               "wires": [
                                                   [
                                                       "8c2f0aa73a8f9642",
                                                       "45f9fe0c07a645aa"
                                                   ]
                                               ]
                                           },
                                           {
                                               "id": "8c2f0aa73a8f9642",
                                               "type": "change",
                                               "z": "2e7d4cac81c671e3",
                                               "g": "6d49413af6de6a69",
                                               "name": "",
                                               "rules": [
                                                   {
                                                       "t": "set",
                                                       "p": "payload",
                                                       "pt": "msg",
                                                       "to": "payload.state",
                                                       "tot": "msg"
                                                   }
                                               ],
                                               "action": "",
                                               "property": "",
                                               "from": "",
                                               "to": "",
                                               "reg": false,
                                               "x": 530,
                                               "y": 2880,
                                               "wires": [
                                                   [
                                                       "4f4d7ebeab8af33c"
                                                   ]
                                               ]
                                           },
                                           {
                                               "id": "4f4d7ebeab8af33c",
                                               "type": "ioBroker out",
                                               "z": "2e7d4cac81c671e3",
                                               "g": "6d49413af6de6a69",
                                               "name": "",
                                               "topic": "0_userdata.0.Wohnung.Status.Shellys.node-red.Rolladen.status",
                                               "ack": "true",
                                               "autoCreate": "true",
                                               "stateName": "",
                                               "role": "",
                                               "payloadType": "string",
                                               "readonly": "true",
                                               "stateUnit": "",
                                               "stateMin": "",
                                               "stateMax": "",
                                               "x": 890,
                                               "y": 2880,
                                               "wires": []
                                           },
                                           {
                                               "id": "582dd65ed0823483",
                                               "type": "comment",
                                               "z": "2e7d4cac81c671e3",
                                               "g": "6d49413af6de6a69",
                                               "name": "Status",
                                               "info": "",
                                               "x": 130,
                                               "y": 2840,
                                               "wires": []
                                           },
                                           {
                                               "id": "c2e2efbc11b4b072",
                                               "type": "comment",
                                               "z": "2e7d4cac81c671e3",
                                               "g": "6d49413af6de6a69",
                                               "name": "Schalten",
                                               "info": "",
                                               "x": 140,
                                               "y": 3020,
                                               "wires": []
                                           },
                                           {
                                               "id": "59af2f2b6ec08346",
                                               "type": "ioBroker in",
                                               "z": "2e7d4cac81c671e3",
                                               "g": "6d49413af6de6a69",
                                               "name": "",
                                               "topic": "0_userdata.0.Wohnung.Status.Shellys.node-red.Rolladen.control",
                                               "payloadType": "value",
                                               "onlyack": "command",
                                               "func": "all",
                                               "gap": "",
                                               "fireOnStart": "false",
                                               "outFormat": "MQTT",
                                               "x": 310,
                                               "y": 3060,
                                               "wires": [
                                                   [
                                                       "ce2e90a37a7ef5e7"
                                                   ]
                                               ]
                                           },
                                           {
                                               "id": "ce2e90a37a7ef5e7",
                                               "type": "mqtt out",
                                               "z": "2e7d4cac81c671e3",
                                               "d": true,
                                               "g": "6d49413af6de6a69",
                                               "name": "",
                                               "topic": "shellies/Rolladen/Wohnen/command/cover:0",
                                               "qos": "",
                                               "retain": "",
                                               "respTopic": "",
                                               "contentType": "",
                                               "userProps": "",
                                               "correl": "",
                                               "expiry": "",
                                               "broker": "",
                                               "x": 970,
                                               "y": 3060,
                                               "wires": []
                                           },
                                           {
                                               "id": "45f9fe0c07a645aa",
                                               "type": "change",
                                               "z": "2e7d4cac81c671e3",
                                               "g": "6d49413af6de6a69",
                                               "name": "",
                                               "rules": [
                                                   {
                                                       "t": "set",
                                                       "p": "payload",
                                                       "pt": "msg",
                                                       "to": "payload.current_pos",
                                                       "tot": "msg"
                                                   }
                                               ],
                                               "action": "",
                                               "property": "",
                                               "from": "",
                                               "to": "",
                                               "reg": false,
                                               "x": 550,
                                               "y": 2940,
                                               "wires": [
                                                   [
                                                       "2dd3d3c5a66bbe2e"
                                                   ]
                                               ]
                                           },
                                           {
                                               "id": "2dd3d3c5a66bbe2e",
                                               "type": "ioBroker out",
                                               "z": "2e7d4cac81c671e3",
                                               "g": "6d49413af6de6a69",
                                               "name": "",
                                               "topic": "0_userdata.0.Wohnung.Status.Shellys.node-red.Rolladen.pos",
                                               "ack": "true",
                                               "autoCreate": "true",
                                               "stateName": "",
                                               "role": "",
                                               "payloadType": "number",
                                               "readonly": "true",
                                               "stateUnit": "",
                                               "stateMin": "",
                                               "stateMax": "",
                                               "x": 900,
                                               "y": 2940,
                                               "wires": []
                                           },
                                           {
                                               "id": "6047acf1eb80bc34",
                                               "type": "ioBroker in",
                                               "z": "2e7d4cac81c671e3",
                                               "g": "6d49413af6de6a69",
                                               "name": "",
                                               "topic": "0_userdata.0.Wohnung.Status.Shellys.node-red.Rolladen.pos",
                                               "payloadType": "value",
                                               "onlyack": "command",
                                               "func": "all",
                                               "gap": "",
                                               "fireOnStart": "false",
                                               "outFormat": "MQTT",
                                               "x": 300,
                                               "y": 3120,
                                               "wires": [
                                                   [
                                                       "885595c1b312e5de"
                                                   ]
                                               ]
                                           },
                                           {
                                               "id": "885595c1b312e5de",
                                               "type": "change",
                                               "z": "2e7d4cac81c671e3",
                                               "g": "6d49413af6de6a69",
                                               "name": "",
                                               "rules": [
                                                   {
                                                       "t": "set",
                                                       "p": "payload",
                                                       "pt": "msg",
                                                       "to": "\"pos,\" & payload",
                                                       "tot": "jsonata"
                                                   }
                                               ],
                                               "action": "",
                                               "property": "",
                                               "from": "",
                                               "to": "",
                                               "reg": false,
                                               "x": 650,
                                               "y": 3120,
                                               "wires": [
                                                   [
                                                       "ce2e90a37a7ef5e7"
                                                   ]
                                               ]
                                           }
                                        ]
                                        

                                        a404999f-2325-4c20-bd03-20ed4bf499fc-image.png

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

                                          @mickym
                                          jetzt ist es PERFEKT!

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

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

                                            @mickym
                                            jetzt ist es PERFEKT!

                                            Na freut mich. 😉 - So ich hoffe auch Du hast alles verstanden, damit Du das nächste Mal Dich selbst dran wagst. 😉

                                            D 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

                                            832
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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