Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Problem mit dem Shelly Adapter

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Problem mit dem Shelly Adapter

    This topic has been deleted. Only users with topic management privileges can see it.
    • Longbow
      Longbow last edited by

      Hallo

      ich habe seit einigen Tagen ständig die Fehlermeldung, das Log wird damit zu gespamt.

      Was kann hier das Problem sein?

      
      shelly.0
      2024-12-13 12:37:33.959	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusrgbwpm-d8132add71d8"
      
      shelly.0
      2024-12-13 12:37:33.959	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
      
      haselchen 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active last edited by

        @longbow sagte in Problem mit dem Shelly Adapter:

        Was kann hier das Problem sein?

        noch unklar, siehe z.b. https://github.com/iobroker-community-adapters/ioBroker.shelly/issues/931

        dike1982 created this issue in iobroker-community-adapters/ioBroker.shelly

        open [Bug]: [MQTT] Unable to get mqttprefix of client with id "shellyplus2pm-e #931

        haselchen 1 Reply Last reply Reply Quote 1
        • haselchen
          haselchen Most Active @Longbow last edited by

          @longbow

          Nur , damit Du nicht alleine bist ☺️
          Hier besteht das gleiche Problem.

          Fabio 1 Reply Last reply Reply Quote 0
          • haselchen
            haselchen Most Active @crunchip last edited by

            @crunchip

            Hatte noch nicht die Zeit zum Recherchieren.
            Aber das Issue ist fast nen Jahr alt 😯

            haus-automatisierung 1 Reply Last reply Reply Quote 1
            • Fabio
              Fabio @haselchen last edited by

              @haselchen ja bei mir auch:

              https://github.com/iobroker-community-adapters/ioBroker.shelly/issues/1097 ich denke das hängt alles damit zusammen.

              sansonifabio created this issue in iobroker-community-adapters/ioBroker.shelly

              closed HTTP request error for shellyhtg3 Geräte #1097

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

                @haselchen sagte in Problem mit dem Shelly Adapter:

                Aber das Issue ist fast nen Jahr alt

                Solange ich das nicht reproduzieren kann, wird's auch 2 Jahre 🙂

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

                  @haus-automatisierung

                  Wenn du es nicht reproduzieren kannst, aber eine menge an Usern es betrifft, ist das komisch.
                  Was ist bei dir anderes, so besonderes anderes als bei uns allen?

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

                    @longbow Der Adapter hat über 20.000 Installationen. Wieviel % haben denn das Problem?

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

                      @haus-automatisierung

                      das wäre ja nun mal echt interessant... was bei den, die keine Probleme haben anderes ist, als bei den die alle die gleichen Probleme haben.

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

                        @longbow Gerne recherchieren und die Ergebnisse im Issue dokumentieren. Würde mich freuen - ich habe da schon so viel Zeit investiert, dass ich nicht mehr weiter weiß.

                        Nur bitte keine Vermutungen aufstellen - das gabs schon zu genüge. Also irgendwas belegbares und reproduzierbar.

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

                          @haus-automatisierung

                          ok, dann würde mal sagen... machen wir es.

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

                            @an alle, dann würde sagen wir tragen mal unsere Daten zusammen, eine Gemeinsamkeit müssen wir ja haben, das dies dies bei uns dann zu dem Fehler kommt, bei den anderen nicht. Daher denke ich auch ist es interessant, wenn wir von den Leuten die Daten zusammen tragen, die kein Fehler haben.

                            @haus-automatisierung gibt es einen Wunsch, welche genauen Daten es sein sollen?

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

                              @longbow sagte in Problem mit dem Shelly Adapter:

                              gibt es einen Wunsch, welche genauen Daten es sein sollen?

                              • Firmware-Version
                              • Adapter-Version
                              • nodejs-Version
                              • js-controller-Version
                              • WiFi Setup (Access Points, Signalstärke, ...)
                              • Debug-Log
                              • usw.

                              Halt der genaue Prozess um das zu reproduzieren. Und am besten Infos, ob die MQTT-Client-ID richtig übermittelt wird usw. Denn daran scheint es irgendwo zu scheitern und alles ist undefined

                              haselchen Peter V. 2 Replies Last reply Reply Quote 0
                              • haselchen
                                haselchen Most Active @haus-automatisierung last edited by

                                @haus-automatisierung

                                Bleibst Du in diesem Thread und die Betroffenen posten die Infos hier?

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

                                  @haselchen Kommt drauf an wieviel Offtopic kommt. Nur dann schalte ich Benachrichtigungen auf Themen aus.

                                  1 Reply Last reply Reply Quote 0
                                  • Peter V.
                                    Peter V. @haus-automatisierung last edited by

                                    @haus-automatisierung
                                    Ich habe diese Fehlermeldung auch ab und an, meistens, wenn sich die Geräte am "falschen" AP anmelden (nach Router Neustart).
                                    Bei mir hats gereicht, wenn ich in den Shellys den RSSI treshold angepasst habe, das sie sich schneller mit dem stärkeren AP verbinden.
                                    Seit dem sind die Meldungen fast verschwunden.
                                    cc01ab83-e5fd-4e2f-bdfe-c77e2d06fe9a-grafik.png

                                    crunchip 1 Reply Last reply Reply Quote 0
                                    • maeb3
                                      maeb3 last edited by

                                      Ich habe das auch mehrmals die Woche seit ca. 4-5 Monaten. Und jetzt, wo ich drüber nachdenke und den Beitrag von @Peter-V lese, das war ungefähr der Zeitpunkt, seit dem ich einen zweiten Router (FRITZ!Box, Mesh Netzwerk) eingerichtet habe.

                                      Ich werde das mit dem RSSI Wert bei mir auch mal testen, ob es dann weniger wird.

                                      1 Reply Last reply Reply Quote 0
                                      • crunchip
                                        crunchip Forum Testing Most Active @Peter V. last edited by crunchip

                                        @peter-v sagte in Problem mit dem Shelly Adapter:

                                        Seit dem sind die Meldungen fast verschwunden.

                                        das habe ich ebenfalls angepasst, seither kommen die Meldungen eigentlich nur noch vereinzelt bei Neustart des Adapters/iobrokers (backup wird nächtlich per script angestoßen und dabei wird jeder docker angehalten)
                                        soweit ich überblicken konnte, tritt der Fehler aber nicht immer auf

                                        • Firmware sind unterschiedlich vom Auslieferungszustand bis hin zur aktuellen
                                          handelt sich bei mir nur um 2 shellyplus2pm, die ich diesen Sommer erneuert habe, weil die alten kaputt gingen. Vorher waren keine Probleme vorhanden.

                                        • uniFi Netzwerk mit 3 AP's , shelly's laufen im separaten VLAN IoT Netzwerk
                                          b6ae4a76-7506-4d42-9604-bc5802836667-image.png

                                        • Signalstärke schwankt zwischen 40-50 dBm

                                        • js-controller aktuell 7.06 (war aber auch schon mit v6.x)

                                        • nodejs v20.18.1 (war auch schon mit v18)

                                        • Adapter v8.5.1 ( war auch schon mit einigen Vorversionen)

                                        • shelly laufen per mqtt Protokoll

                                        ansonsten ist mir bisher nichts weiter aufgefallen

                                        @haus-automatisierung sagte in Problem mit dem Shelly Adapter:

                                        ob die MQTT-Client-ID richtig übermittelt wird

                                        bei mir kommen nur noch

                                        2024-12-11 03:05:03.284 - error: shelly.0 (630) [MQTT] Unable to get mqttprefix of client with id "shellyplus2pm-cc7b5c88d720"
                                        2024-12-11 03:05:03.285 - error: shelly.0 (630) [MQTT] Unable to get mqttprefix of client with id "shellyplus2pm-cc7b5c8946e0"
                                        

                                        dieses Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined)... kommt bei mir seit geraumer Zeit nicht mehr

                                        EDIT
                                        @haus-automatisierung
                                        shelly_debug.txt

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

                                          @haus-automatisierung

                                          Firmware-Version: laut der App alle Shelly haben die Akutelle Version: V1.14.0/ V1.4.4/ V2.2.4
                                          Adapter-Version: Version 8.5.1
                                          nodejs-Version: 20.18.1
                                          js-controller-Version: 7.0.3
                                          WiFi Setup (Access Points, Signalstärke, ...) ein WLAN 2,4GHz, 4 AP von Unifi, durchschnitte Singalstärke der Shelly 33 bis 73dBm
                                          Debug-Log

                                          shelly.0
                                          Zeit
                                          error
                                          Nachricht
                                          
                                          shelly.0
                                          2024-12-17 08:04:35.730	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusrgbwpm-d8132add71d8"
                                          
                                          shelly.0
                                          2024-12-17 08:04:35.730	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 08:04:15.484	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21cea77fc"
                                          
                                          shelly.0
                                          2024-12-17 08:04:15.484	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 08:03:51.800	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c130b30"
                                          
                                          shelly.0
                                          2024-12-17 08:03:51.800	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 08:03:11.640	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c12c334"
                                          
                                          shelly.0
                                          2024-12-17 08:03:11.639	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 08:02:01.800	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c12c334"
                                          
                                          shelly.0
                                          2024-12-17 08:02:01.799	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 08:01:08.403	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21cea77fc"
                                          
                                          shelly.0
                                          2024-12-17 08:01:08.403	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 08:00:56.101	error	[MQTT] Unable to get mqttprefix of client with id "shellypmmini-348518dd6e34"
                                          
                                          shelly.0
                                          2024-12-17 08:00:56.100	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:59:52.770	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c12c334"
                                          
                                          shelly.0
                                          2024-12-17 07:59:52.770	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:58:43.307	error	[MQTT] Unable to get mqttprefix of client with id "shellypmmini-348518dd6e34"
                                          
                                          shelly.0
                                          2024-12-17 07:58:43.307	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:58:43.259	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c12c334"
                                          
                                          shelly.0
                                          2024-12-17 07:58:43.258	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:58:43.196	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21cea77fc"
                                          
                                          shelly.0
                                          2024-12-17 07:58:43.196	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:58:24.404	error	[MQTT] Unable to get mqttprefix of client with id "shellypmmini-348518e0b808"
                                          
                                          shelly.0
                                          2024-12-17 07:58:24.404	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:58:09.288	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusrgbwpm-d8132add71d8"
                                          
                                          shelly.0
                                          2024-12-17 07:58:09.288	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:58:05.304	error	[MQTT] Unable to get mqttprefix of client with id "shellypmmini-348518e0b0e8"
                                          
                                          shelly.0
                                          2024-12-17 07:58:05.304	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:57:59.012	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21cea77fc"
                                          
                                          shelly.0
                                          2024-12-17 07:57:59.012	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:57:44.023	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c12c334"
                                          
                                          shelly.0
                                          2024-12-17 07:57:44.023	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:57:41.803	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c1100d4"
                                          
                                          shelly.0
                                          2024-12-17 07:57:41.803	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:57:15.637	error	[MQTT] Unable to get mqttprefix of client with id "shellypmmini-348518dd6e34"
                                          
                                          shelly.0
                                          2024-12-17 07:57:15.637	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:57:00.930	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c12c334"
                                          
                                          shelly.0
                                          2024-12-17 07:57:00.232	error	[MQTT] Unable to get mqttprefix of client with id "shellypmmini-348518e0b0e8"
                                          
                                          shelly.0
                                          2024-12-17 07:57:00.232	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:56:59.933	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c12c150"
                                          
                                          shelly.0
                                          2024-12-17 07:56:59.933	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:56:59.431	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusrgbwpm-d8132add71d8"
                                          
                                          shelly.0
                                          2024-12-17 07:56:59.431	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:56:34.771	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c12c150"
                                          
                                          shelly.0
                                          2024-12-17 07:56:34.771	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:56:28.591	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c1100d4"
                                          
                                          shelly.0
                                          2024-12-17 07:56:28.590	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          shelly.0
                                          2024-12-17 07:56:17.347	error	[MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c12c150"
                                          
                                          shelly.0
                                          2024-12-17 07:56:17.347	error	[MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
                                          
                                          

                                          usw.

                                          @haus-automatisierung es war 1-2 Tage ruhe, also keine Probelme weil ich den Device-Watcher deaktiviert hatte, aber dann kam es auch auf einaml wieder.

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

                                            @haus-automatisierung
                                            2x Shelly Instanzen sonst kein MQTT Adapter
                                            Firmware-Version: Geräte Shelly HTG3 1.4.5
                                            Adapter-Version: Version 8.5.1
                                            nodejs-Version: 20.18.1
                                            NPM: 10.8.2
                                            js-controller-Version: 7.0.3
                                            WiFi Setup: Fritzbox 7590 plus Fritz Repeater 2400
                                            Wifi Rissi: 45-78

                                            shelly.1 | 2024-12-15 11:20:01.277 | error | [httpIoBrokerState] HTTP request error for 192.168.2.158 (shellyhtg3 / shellyhtg3-543204567964 / shellyhtg3#543204567964#1) "/rpc/Shelly.GetStatus": Wrong http username or http password! Please enter user credentials for restricted login.
                                            shelly.1 | 2024-12-15 11:06:59.920 | error | [httpIoBrokerState] HTTP request error for 192.168.2.152 (shellyhtg3 / shellyhtg3-ecda3bc38e78 / shellyhtg3#ecda3bc38e78#1) "/rpc/Shelly.GetStatus": Wrong http username or http password! Please enter user credentials for restricted login.
                                            shelly.1 | 2024-12-15 11:00:01.819 | error | [httpIoBrokerState] HTTP request error for 192.168.2.150 (shellyhtg3 / shellyhtg3-ecda3bc39aa8 / shellyhtg3#ecda3bc39aa8#1) "/rpc/Shelly.GetStatus": Wrong http username or http password! Please enter user credentials for restricted login.
                                            shelly.1 | 2024-12-15 10:43:02.510 | error | [httpIoBrokerState] HTTP request error for 192.168.2.150 (shellyhtg3 / shellyhtg3-ecda3bc39aa8 / shellyhtg3#ecda3bc39aa8#1) "/rpc/Shelly.GetStatus": Wrong http username or http password! Please enter user credentials for restricted login.
                                            

                                            Daten werden von allen Shelly HTG3 im Intervall an den Shelly Adapter übertragen ohne Fehler.

                                            haus-automatisierung 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

                                            1.0k
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            74
                                            3052
                                            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