Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Shelly Adapter: Errors im Log

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Shelly Adapter: Errors im Log

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

      Hi,

      gestern habe ich meinen ersten Shelly Aktor bekommen und wollte den heute in ioBroker aufnehmen.

      Den Aktor habe ich in Betrieb nehmen und über die Shelly App steuern können.

      Den ioBroker Adapter für Shelly konnte ich auch installieren. Allerdings erzeugt er im Log ganz viele Errors, mit denen ich nichts anfangen kann.

      host.iobroker	2018-12-07 13:44:14.496	info	Restart adapter system.adapter.shelly.0 because enabled
      host.iobroker	2018-12-07 13:44:14.496	error	instance system.adapter.shelly.0 terminated with code 0 (OK)
      Caught	2018-12-07 13:44:14.496	error	by controller[0]: at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:345:8)
      Caught	2018-12-07 13:44:14.496	error	by controller[0]: at Manager.Emitter.emit (/opt/iobroker/node_modules/component-emitter/index.js:133:20)
      Caught	2018-12-07 13:44:14.496	error	by controller[0]: at Manager. <anonymous>(/opt/iobroker/node_modules/component-bind/index.js:21:15)
      Caught	2018-12-07 13:44:14.496	error	by controller[0]: at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:244:12)
      Caught	2018-12-07 13:44:14.496	error	by controller[0]: at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:319:9)
      Caught	2018-12-07 13:44:14.496	error	by controller[0]: at Socket.adapter.getForeignObject (/opt/iobroker/node_modules/iobroker.shelly/shelly.js:104:5)
      Caught	2018-12-07 13:44:14.496	error	by controller[0]: at main (/opt/iobroker/node_modules/iobroker.shelly/shelly.js:932:12)
      Caught	2018-12-07 13:44:14.496	error	by controller[0]: at new ShellyIot (/opt/iobroker/node_modules/shelly-iot/index.js:30:27)
      Caught	2018-12-07 13:44:14.495	error	by controller[0]: at new exports.Client (/opt/iobroker/node_modules/node-rest-client/lib/node-rest-client.js:13:61)
      Caught	2018-12-07 13:44:14.495	error	by controller[0]: at module.exports (/opt/iobroker/node_modules/node-rest-client/lib/nrc-serializer-manager.js:122:18)
      Caught	2018-12-07 13:44:14.495	error	by controller[0]: TypeError: xmlserializer.Builder is not a constructor
      shelly.0	2018-12-07 13:44:14.477	warn	Exception: TypeError: xmlserializer.Builder is not a constructor
      shelly.0	2018-12-07 13:44:14.474	error	at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:345:8)
      shelly.0	2018-12-07 13:44:14.474	error	at Manager.Emitter.emit (/opt/iobroker/node_modules/component-emitter/index.js:133:20)
      shelly.0	2018-12-07 13:44:14.474	error	at Manager. <anonymous>(/opt/iobroker/node_modules/component-bind/index.js:21:15)
      shelly.0	2018-12-07 13:44:14.474	error	at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:244:12)
      shelly.0	2018-12-07 13:44:14.474	error	at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:319:9)
      shelly.0	2018-12-07 13:44:14.474	error	at Socket.adapter.getForeignObject (/opt/iobroker/node_modules/iobroker.shelly/shelly.js:104:5)
      shelly.0	2018-12-07 13:44:14.474	error	at main (/opt/iobroker/node_modules/iobroker.shelly/shelly.js:932:12)
      shelly.0	2018-12-07 13:44:14.474	error	at new ShellyIot (/opt/iobroker/node_modules/shelly-iot/index.js:30:27)
      shelly.0	2018-12-07 13:44:14.474	error	at new exports.Client (/opt/iobroker/node_modules/node-rest-client/lib/node-rest-client.js:13:61)
      shelly.0	2018-12-07 13:44:14.474	error	at module.exports (/opt/iobroker/node_modules/node-rest-client/lib/nrc-serializer-manager.js:122:18)
      shelly.0	2018-12-07 13:44:14.474	error	TypeError: xmlserializer.Builder is not a constructor
      shelly.0	2018-12-07 13:44:14.474	error	uncaught exception: xmlserializer.Builder is not a constructor
      shelly.0	2018-12-07 13:44:14.407	info	starting. Version 1.0.0 in /opt/iobroker/node_modules/iobroker.shelly, node: v6.14.4
      host.iobroker	2018-12-07 13:44:13.607	info	instance system.adapter.shelly.0 started with pid 2166
      host.iobroker	2018-12-07 13:43:43.599	info	Restart adapter system.adapter.shelly.0 because enabled</anonymous></anonymous>
      

      Im Internet und auch in diesem Forum habe ich nach der Fehlermeldung gesucht, aber keine Antwort gefunden.

      Ich betreibe den ioBroker als Docker auf einem Synology NAS. (https://hub.docker.com/r/buanet/iobroker/)

      Leider sind meine Docker- und Linuxkenntnisse nur sehr gering. Ich kann nur das, was ich in Anleitungen lese oder in Videos sehe. Wenn dann aber Fehler auftreten stehe ich manchmal - so wie diesmal - im Wald. Deswegen: Bin für jede Hilfe dankbar!

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

        Hm … geh mal in das iobroker Verzeichnis und führe aus

        cd node_modules/iobroker.shelly
        npm install xml2js@0.4.19
        
        

        geht es danach?

        W D 2 Replies Last reply Reply Quote 0
        • MDN
          MDN last edited by

          Danke für die Antwort!

          Leider besteht der Fehler immer noch. Exakt das gleiche im Log. 😞

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

            hehe … warte mal ...

            such mal in den "node_modules" verzeichnissen wo ein verzeichnis namens "node-rest-client" ist. dann dort das gleiche nochmal ausführen

            M F S 3 Replies Last reply Reply Quote 0
            • MDN
              MDN last edited by

              TOP! Die Errors sind verschwunden!! DANKE! 😄

              Jetzt muss nur noch der Shelly gefunden werden.

              1 Reply Last reply Reply Quote 0
              • A
                Andy18 last edited by

                Super, vielen Dank für die Lösung. 😄

                Ich hatte das gleiche Problem.

                1 Reply Last reply Reply Quote 0
                • R
                  Rayker last edited by Negalein

                  irgendwie bekomme ich das nicht hin ….....:-(

                  host.All-In-One_RasPi 2019-01-29 20:09:52.397 error instance system.adapter.shelly.0 terminated with code 0 (OK)
                  shelly.0 2019-01-29 20:09:38.772 info Listening for Shelly packets in the network
                  shelly.0 2019-01-29 20:09:38.721 info Starting shelly.0 in version 2.0.7
                  shelly.0 2019-01-29 20:09:38.597 info starting. Version 2.0.7 in /opt/iobroker/node_modules/iobroker.shelly, node: v8.15.0
                  host.All-In-One_RasPi 2019-01-29 20:09:37.261 info instance system.adapter.shelly.0 started with pid 10485
                  host.All-In-One_RasPi 2019-01-29 20:09:07.248 info Restart adapter system.adapter.shelly.0 because enabled
                  host.All-In-One_RasPi 2019-01-29 20:09:07.248 error instance system.adapter.shelly.0 terminated with code 0 (OK)
                  shelly.0 2019-01-29 20:08:53.637 info Listening for Shelly packets in the network
                  shelly.0 2019-01-29 20:08:53.591 info Starting shelly.0 in version 2.0.7
                  shelly.0 2019-01-29 20:08:53.468 info starting. Version 2.0.7 in /opt/iobroker/node_modules/iobroker.shelly, node: v8.15.0
                  host.All-In-One_RasPi 2019-01-29 20:08:52.103 info instance system.adapter.shelly.0 started with pid 10467
                  host.All-In-One_RasPi 2019-01-29 20:08:22.093 info Restart adapter system.adapter.shelly.0 because enabled
                  host.All-In-One_RasPi 2019-01-29 20:08:22.092 error instance system.adapter.shelly.0 terminated with code 0 (OK)
                  shelly.0 2019-01-29 20:08:08.530 info
                  
                  1 Reply Last reply Reply Quote 0
                  • S
                    Sodalle last edited by Negalein

                    Hallo Zusammen,

                    Seit dem letzten Update des Shelly Adapter 2.0.8 habe ich folgende Errors im Log:

                    shelly.0 2019-02-02 19:03:54.356 info Error handling Shelly data: SyntaxError: Unexpected token [ in JSON at position 29 for JSON {"G":[[0,111, 100],[0,112, 0][0,121, 100],[0,122, 1]]}
                    shelly.0 2019-02-02 19:03:39.346 info Error handling Shelly data: SyntaxError: Unexpected token [ in JSON at position 29 for JSON {"G":[[0,111, 100],[0,112, 0][0,121, 100],[0,122, 1]]}
                    shelly.0 2019-02-02 19:03:24.316 info Error handling Shelly data: SyntaxError: Unexpected token [ in JSON at position 29 for JSON {"G":[[0,111, 100],[0,112, 0][0,121, 100],[0,122, 1]]}
                    

                    Ist der Fehler bekannt bzw. an was könnte das liegen?

                    Grüße

                    Sodalle

                    1 Reply Last reply Reply Quote 0
                    • S
                      Shepherd last edited by Negalein

                      Muss das Thema nochmals hochholen,
                      so eine ähnliche Meldung habe ich auch, an was kann das liegen?

                      Error handling Shelly data: SyntaxError: Unexpected token [ in JSON at position 64 for JSON {"G":[[0,111, 10],[0,121, 10],[0,131, 10],[0,141, 10],[0,151, 0][0,161, 0][0,171, 0][0,181, 0]]}
                      

                      Dieser Error kommt alle 15 sek.

                      1 Reply Last reply Reply Quote 0
                      • W
                        weidlix last edited by

                        Ich bekomme danach immer noch den gleichen Fehler
                        0a2e36cc-f4fd-43ba-baa6-b10c32bdf153-image.png

                        1 Reply Last reply Reply Quote 0
                        • W
                          weidlix @apollon77 last edited by

                          @apollon77
                          Ich bekomme danach immer noch den gleichen Fehler
                          db6d243a-6e22-42c3-8194-0f2bb86bb62e-image.png

                          1 Reply Last reply Reply Quote 0
                          • M
                            maxpd @apollon77 last edited by maxpd

                            @apollon77 Ich bekomme in dem Fall die Meldung:

                            9ffffa9b-c997-4d2e-afea-73e6903fc6a2-image.png

                            0e3a6255-5a14-4221-9853-667e3ab054ae-image.png

                            apollon77 1 Reply Last reply Reply Quote 0
                            • apollon77
                              apollon77 @maxpd last edited by

                              @maxpd Lass das audit fix einfach sein. Tuts denn sonst jetzt?

                              1 Reply Last reply Reply Quote 0
                              • M
                                maxpd last edited by maxpd

                                @apollon77:

                                Leider hat dies nicht geholfen. Nein. Der Adapter startet weiterhin ständig neu.

                                9c3821a3-9cbd-44c2-b7af-6f07e8282313-image.png

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

                                  @maxpd

                                  Vielleicht alles auf den neuesten Stand bringen?
                                  Shellys updaten auf 1.6.2
                                  Adapter updaten auf 3.2.2 oder 3.2.3
                                  Und Nodejs auf Version 10.19
                                  JS Controller 2.2.9
                                  Admin 4.0.5

                                  Hatte die Fehlermeldung auch.
                                  Nun nicht mehr.

                                  F 1 Reply Last reply Reply Quote 0
                                  • F
                                    fero87 @haselchen last edited by Negalein

                                    Hallo zusammen,
                                    ich habe leider den gleichen Fehler. Shelly Adapter startet nicht im CoAP Modus (MQTT funktioniert).
                                    Habe versucht, den oben genannten Befehl
                                    npm install xml2js@0.4.19
                                    auszuführen. Ich finde allerdings das Verzeichnis
                                    node_modules/iobroker.shelly
                                    gar nicht erst.

                                    pi@raspberrypi4-iobroker:~ $ ls -all
                                    insgesamt 48
                                    drwxr-xr-x 7 pi   pi   4096 Feb 22 15:47 .
                                    drwxr-xr-x 4 root root 4096 Feb 22 15:45 ..
                                    -rw------- 1 pi   pi   1157 Apr  1 00:40 .bash_history
                                    -rw-r--r-- 1 pi   pi    220 Feb 13 16:55 .bash_logout
                                    -rw-r--r-- 1 pi   pi   3633 Feb 22 15:47 .bashrc
                                    drwxr-xr-x 3 pi   pi   4096 Feb 22 15:46 .cache
                                    drwx------ 3 pi   pi   4096 Feb 22 15:44 .config
                                    drwx------ 3 pi   pi   4096 Feb 22 15:27 .gnupg
                                    drwxr-xr-x 2 pi   pi   4096 Feb 22 15:47 .iobroker
                                    drwxr-xr-x 5 pi   pi   4096 Apr  1 00:25 .npm
                                    -rw------- 1 pi   pi     36 Feb 22 15:44 .npmrc
                                    -rw-r--r-- 1 pi   pi    807 Feb 13 16:55 .profile
                                    pi@raspberrypi4-iobroker:~ $ cd .iobroker
                                    pi@raspberrypi4-iobroker:~/.iobroker $ ls -all
                                    insgesamt 12
                                    drwxr-xr-x 2 pi pi 4096 Feb 22 15:47 .
                                    drwxr-xr-x 7 pi pi 4096 Feb 22 15:47 ..
                                    -rw-r--r-- 1 pi pi  211 Feb 22 15:47 npm_command_fix
                                    

                                    Kann mir jemand helfen?

                                    Shelly Firmware: 1.6.2
                                    Shelly Adapter: 3.2.2
                                    Nodejs: 10.19
                                    JS Controller: 2.2.9
                                    Admin: 4.0.5


                                    Mod-Edit: Code/Log in Code Tags gepackt. Bitte benutzt die Code Tags Funktion -> </>
                                    Hier gehts zur Hilfe.

                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      fero87 @fero87 last edited by

                                      sorry, zu schnell...
                                      Kann mir jemand helfen?
                                      Shelly Firmware: 1.6.2
                                      Shelly Adapter: 3.2.2
                                      Nodejs: 10.19
                                      JS Controller: 2.2.9
                                      Admin: 4.0.5

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

                                        @fero87

                                        Hast du das Fehlerlog zur Hand?

                                        F 1 Reply Last reply Reply Quote 0
                                        • F
                                          fero87 @haselchen last edited by

                                          @haselchen

                                          2020-04-01 09:19:44.123 - info: shelly.0 (11241) starting. Version 3.2.2 in /opt/iobroker/node_modules/iobroker.shelly, node: v10.16.3
                                          2020-04-01 09:19:44.233 - info: shelly.0 (11241) Starting Shelly adapter in CoAP modus.
                                          2020-04-01 09:19:44.271 - info: host.raspberrypi4-iobroker instance system.adapter.shelly.0 terminated with code 0 (NO_ERROR)
                                          2020-04-01 09:19:44.271 - info: host.raspberrypi4-iobroker Restart adapter system.adapter.shelly.0 because enabled
                                          2020-04-01 09:20:09.689 - debug: admin.0 (1851) Unsubscribe LOGS
                                          2020-04-01 09:20:09.691 - debug: admin.0 (1851) Subscribes:
                                          2020-04-01 09:20:09.790 - debug: admin.0 (1851) Subscribe OBJECTS: system.adapter.*
                                          2020-04-01 09:20:09.792 - debug: admin.0 (1851) Subscribe STATES: system.adapter.*
                                          2020-04-01 09:20:09.794 - debug: admin.0 (1851) Subscribes: info.0.newsfeed, system.adapter.*
                                          2020-04-01 09:20:09.797 - debug: admin.0 (1851) Subscribe OBJECTS: system.host.*
                                          2020-04-01 09:20:09.799 - debug: admin.0 (1851) Subscribe STATES: system.host.*
                                          2020-04-01 09:20:09.800 - debug: admin.0 (1851) Subscribes: info.0.newsfeed, system.adapter.*, system.host.*
                                          2020-04-01 09:20:09.803 - debug: admin.0 (1851) Subscribe STATES: *.info.connection
                                          2020-04-01 09:20:09.804 - debug: admin.0 (1851) Subscribes: info.0.newsfeed, system.adapter.*, system.host.*, *.info.connection
                                          2020-04-01 09:20:12.238 - debug: admin.0 (1851) Unsubscribe OBJECTS: system.adapter.*
                                          2020-04-01 09:20:12.284 - debug: admin.0 (1851) Unsubscribe STATES: system.host.*
                                          2020-04-01 09:20:12.287 - debug: admin.0 (1851) Subscribes: info.0.newsfeed, system.adapter.*, *.info.connection
                                          2020-04-01 09:20:12.298 - debug: admin.0 (1851) Unsubscribe OBJECTS: system.host.*
                                          2020-04-01 09:20:12.300 - debug: admin.0 (1851) Unsubscribe STATES: system.adapter.*
                                          2020-04-01 09:20:12.305 - debug: admin.0 (1851) Subscribes: info.0.newsfeed, *.info.connection
                                          2020-04-01 09:20:12.309 - debug: admin.0 (1851) Unsubscribe STATES: *.info.connection
                                          2020-04-01 09:20:12.310 - debug: admin.0 (1851) Subscribes: info.0.newsfeed
                                          2020-04-01 09:20:12.467 - debug: admin.0 (1851) Subscribe LOGS
                                          2020-04-01 09:20:12.468 - debug: admin.0 (1851) Subscribes: dummy
                                          2020-04-01 09:20:14.286 - info: host.raspberrypi4-iobroker instance system.adapter.shelly.0 started with pid 11269
                                          2020-04-01 09:20:15.628 - debug: shelly.0 (11269) Redis Objects: Use Redis connection: 127.0.0.1:9001
                                          2020-04-01 09:20:15.663 - debug: shelly.0 (11269) Objects client ready ... initialize now
                                          2020-04-01 09:20:15.668 - debug: shelly.0 (11269) Objects create System PubSub Client
                                          2020-04-01 09:20:15.669 - debug: shelly.0 (11269) Objects create User PubSub Client
                                          2020-04-01 09:20:15.670 - debug: shelly.0 (11269) Objects client initialize lua scripts
                                          2020-04-01 09:20:15.682 - debug: shelly.0 (11269) Objects connected to redis: 127.0.0.1:9001
                                          2020-04-01 09:20:15.688 - debug: shelly.0 (11269) objectDB connected
                                          2020-04-01 09:20:15.691 - debug: shelly.0 (11269) Redis States: Use Redis connection: 127.0.0.1:9000
                                          2020-04-01 09:20:15.697 - debug: shelly.0 (11269) States create User PubSub Client
                                          2020-04-01 09:20:15.699 - debug: shelly.0 (11269) States create System PubSub Client
                                          2020-04-01 09:20:15.707 - debug: shelly.0 (11269) States connected to redis: 127.0.0.1:9000
                                          2020-04-01 09:20:15.708 - debug: shelly.0 (11269) statesDB connected
                                          2020-04-01 09:20:16.600 - info: shelly.0 (11269) starting. Version 3.2.2 in /opt/iobroker/node_modules/iobroker.shelly, node: v10.16.3
                                          2020-04-01 09:20:16.660 - info: shelly.0 (11269) Starting Shelly adapter in CoAP modus.
                                          2020-04-01 09:20:16.712 - info: host.raspberrypi4-iobroker instance system.adapter.shelly.0 terminated with code 0 (NO_ERROR)
                                          2020-04-01 09:20:16.713 - info: host.raspberrypi4-iobroker Restart adapter system.adapter.shelly.0 because enabled
                                          
                                          haselchen 1 Reply Last reply Reply Quote 0
                                          • haselchen
                                            haselchen Most Active @fero87 last edited by

                                            @fero87

                                            Ich bin so der Typ, der erstmal einmal guckt ob es Updates für den Fehler gibt 🙂
                                            Ich würde den Shelly Adapter auf Version 3.2.3 bringen (über git)
                                            Und Nodejs ist bei Dir 10.16.3 und nicht wie Du geschrieben hast 10.19.
                                            Da würde ich auch ansetzen mit einem Update.
                                            Ohne Gewähr natürlich , ob der Fehler dann weg ist.

                                            F 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            912
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            16
                                            35
                                            5037
                                            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