Navigation

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

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

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

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

      @dos1973 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
                                    • D
                                      dos1973 @mickym last edited by

                                      @mickym
                                      🙂

                                      nachbauen schaffe ich wahrscheinlich,
                                      verstanden... so lala, da bin ich ehrlich.

                                      muss mir das morgen nochmals ansehen.

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

                                        @dos1973 Sind doch nur ganz wenige Nodes. 😉 - Und wie gesagt mir ist lieber Du fragst lieber öfter bevor Du dann rumprobierst und die armen Geräte auf dem Schrott landen. 🙂 - Dann schlaf mal gut - und träume wie sich Deine Rollläden dann in Zukunft wie von Geisterhand öffnen und schließen. Ich geh mal davon aus, dass Du diese Flows irgendwann auch noch intelligent machen möchtest. 😉

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

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

                                          Du klickst auf die 3 Punkte um den JSONATA Editor zu öffnen:

                                          a0be4e39-1359-4faf-bd68-87a6b060b5fd-image.png

                                          @mickym

                                          wo finde ich dass denn im meinem Flow?

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

                                            @dos1973 Wenn Du bei Deinen Schaltern auf die Change Node klickst, bevor in die mqtt-out Node geschrieben wird, dann sind in der JSONATA Zeile (also das mit dem GROSSEN J) - 3 Punkte und darauf klicken. Die payload ist die Nachrichteneigenschaft aus der eingehenden Nachricht.

                                            3d5f7a54-5813-4152-b356-e3ba009996c2-image.png

                                            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

                                            625
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

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