Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. MQTT Adapter + Shelly Adapter funktioniert nicht

    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

    MQTT Adapter + Shelly Adapter funktioniert nicht

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Der Nordmann @ticaki last edited by

      Hallo @ticaki !

      Prinzipiell leuchtet das ein.
      Aber ich muss doch im Shelly Adapter (Instanz) die IP und den Port von MQTT eingeben.

      T 1 Reply Last reply Reply Quote 0
      • T
        ticaki Developer @Der Nordmann last edited by ticaki

        @der-nordmann
        Die IP Eingabe ist um festzulegen auf welche IP der Shelly-Adapter reagieren soll. Also die eigene, wenn da 0.0.0.0 steht reagiert er auf jeden ip. Natürlich muß dem Server an sich, die IP zugewiesen sein.

        Wird abseits von dem Adapter häufig verwendet um nur Anfragen von 127.0.0.1 zu zulassen, was bedeutet: Der Dienst ist von ausserhalb nicht zu erreichen.

        D 1 Reply Last reply Reply Quote 0
        • D
          Der Nordmann @ticaki last edited by

          @ticaki sagte in MQTT Adapter + Shelly Adapter funktioniert nicht:

          @der-nordmann
          Die IP Eingabe ist um festzulegen auf welche IP der Shelly-Adapter reagieren soll. Also die eigene, wenn da 0.0.0.0 steht reagiert er auf jeden ip. Natürlich muß dem Server an sich, die IP zugewiesen sein.

          Wird abseits von dem Adapter häufig verwendet um nur Anfragen von 127.0.0.1 zu zulassen, was bedeutet: Der Dienst ist von ausserhalb nicht zu erreichen.

          Kannst Du mir mal ein Beispiel geben.
          Mein ioBroker hat die IP 192.168.178.120, mein MQTT Adapter hat den Port 1887. Was muss ich denn dann in die Shelly Instanz eintragen?

          T 1 Reply Last reply Reply Quote 0
          • T
            ticaki Developer @Der Nordmann last edited by

            @der-nordmann

            Also Port nicht 1887 und als ip lass es bei 0.0.0.0

            1 Reply Last reply Reply Quote 0
            • da_Woody
              da_Woody @Der Nordmann last edited by

              @der-nordmann sagte in MQTT Adapter + Shelly Adapter funktioniert nicht:

              da der Port 1882 schon für VIS vergeben ist.

              vis lööpt doch normal auf 8082...
              mqtt 1883
              shelly 1882

              1 Reply Last reply Reply Quote 1
              • haus-automatisierung
                haus-automatisierung Developer Most Active @Der Nordmann last edited by haus-automatisierung

                @der-nordmann sagte in MQTT Adapter + Shelly Adapter funktioniert nicht:

                Wenn ich nun den Shelly Adapter installiere und die IP-Adresse für MQTT Anbindung eingebe (inkl. Port 1887), kollidieren die beiden Adapter gewissermaßen.

                Das ist ja bei jedem Dienst so. Dafür gibt es ja Ports: Damit man mehrere Dienste auf dem gleichen System laufen lassen kann. Entsprechend muss aber auch jeder Dienst seinen eigenen Port bekommen. Und da der Shelly-Adapter und der MQTT-Adapter zwei völlig voneinander unabhängige Adapter, welche beide einen MQTT-Broker bereitstellen möchte, können das eben nicht beide auf dem gleichen Port...

                Eigentlich dachte ich, das ausführlich in der Dokumentation erklärt zu haben:

                https://github.com/iobroker-community-adapters/ioBroker.shelly/blob/master/docs/de/protocol-mqtt.md

                D 1 Reply Last reply Reply Quote 1
                • D
                  Der Nordmann @haus-automatisierung last edited by

                  @haus-automatisierung

                  Hallo zusammen.

                  Ja, es klappt jetzt.
                  Ich hatte einfach einen Knoten im Hirn, der erst gelöst werden musste:
                  Dank @ticaki und Dir hat sich der Knoten gelöst.

                  Kleiner Tipp für diejenigen, die auch mal auf dem Schlauch stehen.
                  Wenn man über die Konsole den Befehl: iobroker list instances eingibt,
                  werden die installierten Instanzen unter anderem samt den vergebenen Ports ausgegeben.
                  Und das ein Port nicht zweimal belegt werden kann, leuchtet mir nach Euren Erklärungen auch ein!

                  Aber manchmal braucht es eben einen kleinen geistigen Anschubser 😀

                  Also nochmals VIELEN DANK für Eure Hilfe!

                  1 Reply Last reply Reply Quote 1
                  • Longbow
                    Longbow last edited by

                    Guten Morgen,

                    ich habe den Adapter schon einige Zeit in Gebrauch, da ich nun auch die neuen Mini Shellys habe, war es erst so, dass man diesen updaten müsste, spricht warten bis eine neue Version da ist.

                    Diese ist jetzt mit der 6.6.1 möglich. Nur legt der Adapter liegt mein iobroker larm das Protokoll wächst, wächst und iobroker wird langsam.

                    Die Daten werden auch nicht geschrieben als DP. Ich weiß nicht was ich jetzt, ohne ein Update falsch gemacht habe.

                    Hier mal ein Auszug von dem Log Protokoll, es sind folgende Shelly in Betrieb:

                    4x Smart Plug Plus s
                    2x Smart Plus PM mini
                    2x Smart Plus 1 PM mini

                    Ich bin über jeden Tip dankbar:

                    
                    shelly.0
                    2023-11-29 08:33:23.864	info	[MQTT] Client Close: (shellyplusplugs / shellyplusplugs-b0b21c131aa4 / shellyplusplugs#b0b21c131aa4#1) (false)
                    
                    shelly.0
                    2023-11-29 08:33:20.986	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c12c150"
                    
                    shelly.0
                    2023-11-29 08:33:18.171	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c130b30"
                    
                    shelly.0
                    2023-11-29 08:33:15.886	info	[MQTT] Client Close: (shellyplusplugs / shellyplusplugs-b0b21c12b118 / shellyplusplugs#b0b21c12b118#1) (false)
                    
                    shelly.0
                    2023-11-29 08:33:15.859	error	[MQTT] Wrong MQTT authentification of client "shellyplusplugs-b0b21c12b118"
                    
                    shelly.0
                    2023-11-29 08:33:15.361	info	[MQTT] Client Close: (shellyplusplugs / shellyplusplugs-b0b21c12c150 / shellyplusplugs#b0b21c12c150#1) (false)
                    
                    shelly.0
                    2023-11-29 08:33:13.871	info	[MQTT] Device with client id "shellyplusplugs-b0b21c131aa4" connected!
                    
                    shelly.0
                    2023-11-29 08:33:05.370	info	[MQTT] Device with client id "shellyplusplugs-b0b21c12c150" connected!
                    
                    shelly.0
                    2023-11-29 08:32:59.031	info	[MQTT] Client Close: (shellyplusplugs / shellyplusplugs-b0b21c130b30 / shellyplusplugs#b0b21c130b30#1) (false)
                    
                    shelly.0
                    2023-11-29 08:32:50.639	error	[MQTT] Unable to get mqttprefix of client with id "shellypmmini-348518dd6e34"
                    
                    shelly.0
                    2023-11-29 08:32:49.039	info	[MQTT] Device with client id "shellyplusplugs-b0b21c130b30" connected!
                    
                    shelly.0
                    2023-11-29 08:32:30.751	info	[MQTT] Client Close: (shellypmmini / shellypmmini-348518dd6e34 / shellypmmini#348518dd6e34#1) (false)
                    
                    shelly.0
                    2023-11-29 08:32:20.756	info	[MQTT] Device with client id "shellypmmini-348518dd6e34" connected!
                    
                    shelly.0
                    2023-11-29 08:32:19.660	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c131aa4"
                    
                    shelly.0
                    2023-11-29 08:32:18.986	info	[MQTT] Client Close: (shellyplusplugs / shellyplusplugs-b0b21c131aa4 / shellyplusplugs#b0b21c131aa4#1) (false)
                    
                    shelly.0
                    2023-11-29 08:32:16.596	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c12c150"
                    
                    shelly.0
                    2023-11-29 08:32:16.180	info	[MQTT] Client Close: (shellyplusplugs / shellyplusplugs-b0b21c12b118 / shellyplusplugs#b0b21c12b118#1) (false)
                    
                    shelly.0
                    2023-11-29 08:32:16.148	error	[MQTT] Wrong MQTT authentification of client "shellyplusplugs-b0b21c12b118"
                    
                    shelly.0
                    2023-11-29 08:32:09.882	info	[MQTT] Client Close: (shellyplusplugs / shellyplusplugs-b0b21c12c150 / shellyplusplugs#b0b21c12c150#1) (false)
                    
                    shelly.0
                    2023-11-29 08:32:08.990	info	[MQTT] Device with client id "shellyplusplugs-b0b21c131aa4" connected!
                    
                    shelly.0
                    2023-11-29 08:31:59.895	info	[MQTT] Device with client id "shellyplusplugs-b0b21c12c150" connected!
                    
                    shelly.0
                    2023-11-29 08:31:51.375	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c130b30"
                    
                    shelly.0
                    2023-11-29 08:31:50.856	info	[MQTT] Client Close: (shellyplusplugs / shellyplusplugs-b0b21c130b30 / shellyplusplugs#b0b21c130b30#1) (false)
                    
                    shelly.0
                    2023-11-29 08:31:41.783	error	[MQTT] Unable to get mqttprefix of client with id "shellypmmini-348518dd6e34"
                    
                    haus-automatisierung 1 Reply Last reply Reply Quote 0
                    • haus-automatisierung
                      haus-automatisierung Developer Most Active @Longbow last edited by

                      @longbow [MQTT] Wrong MQTT authentification of client "shellyplusplugs-b0b21c12b118"

                      Sieht so aus, als wären die MQTT-Zugangsdaten auf den Shellies falsch.

                      Siehe https://github.com/iobroker-community-adapters/ioBroker.shelly/blob/v6.6.1/docs/de/protocol-mqtt.md

                      da_Woody 1 Reply Last reply Reply Quote 0
                      • da_Woody
                        da_Woody @haus-automatisierung last edited by

                        @haus-automatisierung eventuell wieder mal wer mit copy/paste die daten eingetragen, leerstelle angehängt.

                        Longbow 1 Reply Last reply Reply Quote 0
                        • Longbow
                          Longbow @da_Woody last edited by

                          Also ich habe alle rebootet und die Daten neun eingegeben...

                          Bist auf einem, kommt auch keine Fehlermeldung mehr. Komisch nur, das es ein Gerät betrifft. EIn Shelly1PM Mini, der nur im betrieb ist, alle anderen waren andere Shelly. Könnte es an dem Shelly liegen?

                          
                          shelly.0
                          2023-12-03 10:39:05.916	error	[MQTT] Unable to get mqttprefix of client with id "shelly1pmmini-348518df0c24"
                          
                          shelly.0
                          2023-12-03 10:39:02.021	info	[MQTT] Client Close: (shelly1pmmini / shelly1pmmini-348518df0c24 / shelly1pmmini#348518df0c24#1) (false)
                          
                          shelly.0
                          2023-12-03 10:38:52.023	info	[MQTT] Device with client id "shelly1pmmini-348518df0c24" connected!
                          
                          shelly.0
                          2023-12-03 10:38:17.233	error	[MQTT] Unable to get mqttprefix of client with id "shelly1pmmini-348518df0c24"
                          
                          1 Reply Last reply Reply Quote 0
                          • pille0557
                            pille0557 @Der Nordmann last edited by pille0557

                            @der-nordmann da der shelly PM mini nicht im iobroker zu erkennen war,
                            habe ich jetzt auch einem Shelly Pro 1PM installiert und wie ich glaubte korrekt im iobroker eingebunden, ...
                            Bildschirmfoto 2023-12-22 um 13.39.48.png
                            Bildschirmfoto 2023-12-22 um 13.39.48.png
                            nur es kommen keine Werte an ...
                            Bildschirmfoto 2023-12-22 um 09.49.31.png
                            im Log heisst es:
                            Bildschirmfoto 2023-12-22 um 13.46.50.png

                            ? das bedeutet ?

                            haus-automatisierung 1 Reply Last reply Reply Quote 0
                            • haus-automatisierung
                              haus-automatisierung Developer Most Active @pille0557 last edited by

                              @pille0557 sagte in MQTT Adapter + Shelly Adapter funktioniert nicht:

                              ? das bedeutet ?

                              Zeig mal, welche Doku Du angeschaut hast.

                              pille0557 1 Reply Last reply Reply Quote 0
                              • pille0557
                                pille0557 @haus-automatisierung last edited by

                                @haus-automatisierung welche Doku? zu mqtt? wo?🙄

                                haus-automatisierung 1 Reply Last reply Reply Quote 0
                                • haus-automatisierung
                                  haus-automatisierung Developer Most Active @pille0557 last edited by haus-automatisierung

                                  @pille0557 sagte in MQTT Adapter + Shelly Adapter funktioniert nicht:

                                  welche Doku?

                                  Na die zum Shelly Adapter, auf welche in der Meldung verwiesen wird:

                                  https://github.com/iobroker-community-adapters/ioBroker.shelly/blob/master/docs/de/protocol-mqtt.md

                                  pille0557 1 Reply Last reply Reply Quote 0
                                  • pille0557
                                    pille0557 @haus-automatisierung last edited by

                                    @haus-automatisierung nun dann muss ich mal suchen ...

                                    haus-automatisierung 1 Reply Last reply Reply Quote 0
                                    • haus-automatisierung
                                      haus-automatisierung Developer Most Active @pille0557 last edited by

                                      @pille0557 sagte in MQTT Adapter + Shelly Adapter funktioniert nicht:

                                      @haus-automatisierung nun dann muss ich mal suchen ...

                                      Naja, wäre im ioBroker nur 1 Klick entfernt 🙂 Jetzt hier auch nur 1 Klick entfernt.

                                      pille0557 1 Reply Last reply Reply Quote 0
                                      • pille0557
                                        pille0557 @haus-automatisierung last edited by

                                        @haus-automatisierung ja tatsächlich:
                                        Bildschirmfoto 2023-12-22 um 14.04.07.png
                                        das Häkchen bei "Generic status update over MQTT" hat gefehlt
                                        Danke!
                                        (wer lesen kann ... und es auch tut ... ist im Vorteil) 😁

                                        haus-automatisierung 1 Reply Last reply Reply Quote 0
                                        • haus-automatisierung
                                          haus-automatisierung Developer Most Active @pille0557 last edited by

                                          @pille0557 Was müsste ich denn noch in Log-Meldungen schreiben, damit man das liest? 🙂 Der fette Button in der Instanz-Konfiguration war ja auch nicht ausreichend 😞

                                          pille0557 1 Reply Last reply Reply Quote 0
                                          • pille0557
                                            pille0557 @haus-automatisierung last edited by

                                            @haus-automatisierung
                                            tja das grau der Schaltfläche animiert nicht so recht darauf zu klicken ...
                                            um mich mal zu outen, habe ich auch jetzt nicht, habe ich nicht als Button erkannt, sondern so im Netz gesucht
                                            vielleicht rot unterlegen ... ?
                                            aber eventuell verhält sich ja auch nicht jeder so bekloppt ...
                                            schöne Weihnachten und nochmal danke!

                                            da_Woody 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

                                            871
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            25
                                            1659
                                            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