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 mickym

      @dos1973 So damit müsste es nun gehen:

      [
         {
             "id": "2bf73377995fc91c",
             "type": "group",
             "z": "2e7d4cac81c671e3",
             "name": "Bad_Licht_1",
             "style": {
                 "label": true
             },
             "nodes": [
                 "9e100ac5f50d3cd6",
                 "3b4f85e836524760",
                 "d5873b80da9bffe4",
                 "63aa968ce646014e",
                 "1e20c3b5d8901123",
                 "26b503db29b93916",
                 "5645ee14ff4f7fec",
                 "bf5063cb0fe61730"
             ],
             "x": 34,
             "y": 3219,
             "w": 1092,
             "h": 242
         },
         {
             "id": "9e100ac5f50d3cd6",
             "type": "comment",
             "z": "2e7d4cac81c671e3",
             "g": "2bf73377995fc91c",
             "name": "Schalten",
             "info": "",
             "x": 140,
             "y": 3380,
             "wires": []
         },
         {
             "id": "3b4f85e836524760",
             "type": "comment",
             "z": "2e7d4cac81c671e3",
             "g": "2bf73377995fc91c",
             "name": "Status",
             "info": "",
             "x": 150,
             "y": 3260,
             "wires": []
         },
         {
             "id": "d5873b80da9bffe4",
             "type": "ioBroker out",
             "z": "2e7d4cac81c671e3",
             "g": "2bf73377995fc91c",
             "name": "",
             "topic": "0_userdata.0.Wohnung.Status.Shellys.node-red.BadLicht_1",
             "ack": "true",
             "autoCreate": "true",
             "stateName": "",
             "role": "",
             "payloadType": "boolean",
             "readonly": "false",
             "stateUnit": "",
             "stateMin": "",
             "stateMax": "",
             "x": 880,
             "y": 3320,
             "wires": []
         },
         {
             "id": "63aa968ce646014e",
             "type": "change",
             "z": "2e7d4cac81c671e3",
             "g": "2bf73377995fc91c",
             "name": "",
             "rules": [
                 {
                     "t": "set",
                     "p": "payload",
                     "pt": "msg",
                     "to": "payload.output",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 530,
             "y": 3320,
             "wires": [
                 [
                     "d5873b80da9bffe4"
                 ]
             ]
         },
         {
             "id": "1e20c3b5d8901123",
             "type": "mqtt in",
             "z": "2e7d4cac81c671e3",
             "g": "2bf73377995fc91c",
             "name": "",
             "topic": "shellies/Licht/Badezimmer/status/switch:1",
             "qos": "2",
             "datatype": "auto-detect",
             "broker": "",
             "nl": false,
             "rap": true,
             "rh": 0,
             "inputs": 0,
             "x": 240,
             "y": 3320,
             "wires": [
                 [
                     "63aa968ce646014e"
                 ]
             ]
         },
         {
             "id": "26b503db29b93916",
             "type": "ioBroker in",
             "z": "2e7d4cac81c671e3",
             "g": "2bf73377995fc91c",
             "name": "",
             "topic": "0_userdata.0.Wohnung.Status.Shellys.node-red.BadLicht_1",
             "payloadType": "value",
             "onlyack": "command",
             "func": "all",
             "gap": "",
             "fireOnStart": "false",
             "outFormat": "MQTT",
             "x": 280,
             "y": 3420,
             "wires": [
                 [
                     "5645ee14ff4f7fec"
                 ]
             ]
         },
         {
             "id": "5645ee14ff4f7fec",
             "type": "change",
             "z": "2e7d4cac81c671e3",
             "g": "2bf73377995fc91c",
             "name": "",
             "rules": [
                 {
                     "t": "set",
                     "p": "payload",
                     "pt": "msg",
                     "to": "{\t   \"id\":123,\t   \"src\":\"dos1973\",\t   \"method\":\"Switch.Set\",\t   \"params\":{\"id\":1,\"on\":payload}\t}\t",
                     "tot": "jsonata"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 630,
             "y": 3420,
             "wires": [
                 [
                     "bf5063cb0fe61730"
                 ]
             ]
         },
         {
             "id": "bf5063cb0fe61730",
             "type": "mqtt out",
             "z": "2e7d4cac81c671e3",
             "g": "2bf73377995fc91c",
             "name": "",
             "topic": "shellies/Licht/Badezimmer/rpc",
             "qos": "",
             "retain": "",
             "respTopic": "",
             "contentType": "",
             "userProps": "",
             "correl": "",
             "expiry": "",
             "broker": "",
             "x": 890,
             "y": 3420,
             "wires": []
         },
         {
             "id": "5f971d7afd1d1584",
             "type": "group",
             "z": "2e7d4cac81c671e3",
             "name": "Bad_Licht_0",
             "style": {
                 "label": true
             },
             "nodes": [
                 "c3d1c63e97c6ae55",
                 "3a0b9507df4f29c7",
                 "3f795830c443d287",
                 "ca6f9a9ebfef76ab",
                 "c578998a9c4a925f",
                 "0025e02b5f4d42fb",
                 "28b02e5b64ac52b3",
                 "20bab29527cd1d3e"
             ],
             "x": 34,
             "y": 2959,
             "w": 1092,
             "h": 242
         },
         {
             "id": "c3d1c63e97c6ae55",
             "type": "comment",
             "z": "2e7d4cac81c671e3",
             "g": "5f971d7afd1d1584",
             "name": "Schalten",
             "info": "",
             "x": 140,
             "y": 3120,
             "wires": []
         },
         {
             "id": "3a0b9507df4f29c7",
             "type": "comment",
             "z": "2e7d4cac81c671e3",
             "g": "5f971d7afd1d1584",
             "name": "Status",
             "info": "",
             "x": 150,
             "y": 3000,
             "wires": []
         },
         {
             "id": "3f795830c443d287",
             "type": "ioBroker out",
             "z": "2e7d4cac81c671e3",
             "g": "5f971d7afd1d1584",
             "name": "",
             "topic": "0_userdata.0.Wohnung.Status.Shellys.node-red.BadLicht_0",
             "ack": "true",
             "autoCreate": "true",
             "stateName": "",
             "role": "",
             "payloadType": "boolean",
             "readonly": "false",
             "stateUnit": "",
             "stateMin": "",
             "stateMax": "",
             "x": 880,
             "y": 3060,
             "wires": []
         },
         {
             "id": "ca6f9a9ebfef76ab",
             "type": "change",
             "z": "2e7d4cac81c671e3",
             "g": "5f971d7afd1d1584",
             "name": "",
             "rules": [
                 {
                     "t": "set",
                     "p": "payload",
                     "pt": "msg",
                     "to": "payload.output",
                     "tot": "msg"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 530,
             "y": 3060,
             "wires": [
                 [
                     "3f795830c443d287"
                 ]
             ]
         },
         {
             "id": "c578998a9c4a925f",
             "type": "mqtt in",
             "z": "2e7d4cac81c671e3",
             "g": "5f971d7afd1d1584",
             "name": "",
             "topic": "shellies/Licht/Badezimmer/status/switch:0",
             "qos": "2",
             "datatype": "auto-detect",
             "broker": "",
             "nl": false,
             "rap": true,
             "rh": 0,
             "inputs": 0,
             "x": 240,
             "y": 3060,
             "wires": [
                 [
                     "ca6f9a9ebfef76ab"
                 ]
             ]
         },
         {
             "id": "0025e02b5f4d42fb",
             "type": "ioBroker in",
             "z": "2e7d4cac81c671e3",
             "g": "5f971d7afd1d1584",
             "name": "",
             "topic": "0_userdata.0.Wohnung.Status.Shellys.node-red.BadLicht_0",
             "payloadType": "value",
             "onlyack": "command",
             "func": "all",
             "gap": "",
             "fireOnStart": "false",
             "outFormat": "MQTT",
             "x": 280,
             "y": 3160,
             "wires": [
                 [
                     "28b02e5b64ac52b3"
                 ]
             ]
         },
         {
             "id": "28b02e5b64ac52b3",
             "type": "change",
             "z": "2e7d4cac81c671e3",
             "g": "5f971d7afd1d1584",
             "name": "",
             "rules": [
                 {
                     "t": "set",
                     "p": "payload",
                     "pt": "msg",
                     "to": "{\t   \"id\":123,\t   \"src\":\"dos1973\",\t   \"method\":\"Switch.Set\",\t   \"params\":{\"id\":0,\"on\":payload}\t}\t",
                     "tot": "jsonata"
                 }
             ],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 630,
             "y": 3160,
             "wires": [
                 [
                     "20bab29527cd1d3e"
                 ]
             ]
         },
         {
             "id": "20bab29527cd1d3e",
             "type": "mqtt out",
             "z": "2e7d4cac81c671e3",
             "g": "5f971d7afd1d1584",
             "name": "",
             "topic": "shellies/Licht/Badezimmer/rpc",
             "qos": "",
             "retain": "",
             "respTopic": "",
             "contentType": "",
             "userProps": "",
             "correl": "",
             "expiry": "",
             "broker": "",
             "x": 890,
             "y": 3160,
             "wires": []
         }
      ]
      

      03a38aa5-da04-4374-b095-398d00ec8eb7-image.png

      Du musst nur noch deinen mqtt-Broker in die mqtt- Nodes eintragen.

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

        @mickym
        Moment, brauche 5min - bin vor der Tür gerade…

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

          @mickym
          schalten funktioniert,

          0_userdata.0.Wohnung.Status.Shellys.node-red.BadLicht_0
          

          aber wenn ich im shelly webinterface schalte dann aktualisiert der wert nicht

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

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

            @mickym
            schalten funktioniert,

            0_userdata.0.Wohnung.Status.Shellys.node-red.BadLicht_0
            

            aber wenn ich im shelly webinterface schalte dann aktualisiert der wert nicht

            dann mach bitte hinter die mqtt.In Node einen debug Node. und schaue ob ich den Pfad im topic richtig eingegeben habe:

            shellies/Licht/Badezimmer/status/switch:0
            

            8ec536ed-42fe-45cf-a8e4-c3d1f61d5417-image.png

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

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

              @mickym
              schalten funktioniert,

              0_userdata.0.Wohnung.Status.Shellys.node-red.BadLicht_0
              

              aber wenn ich im shelly webinterface schalte dann aktualisiert der wert nicht

              war mein Fehler ... funktioniert, auch der sync

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

                @dos1973 Na gut . dann ist ja alles gut - und du kannst beruhigt schlafen und musst den armen Shelly nicht verschrotten. Wenn Du Fragen hast gerne. 🙂

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

                  @mickym
                  war aber knapp 🙂

                  ich habe noch einen im Rollermode - noch Nerven mit mir

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

                                            Support us

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

                                            437
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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