Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Tradfri Tutorial

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Tradfri Tutorial

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

      @paul53:

      Es sollte erst einmal festgestellt werden, wo welche Version von node.js installiert ist.

      ls -l /usr/bin/node*
      /usr/bin/node -v
      ls -l /usr/local/bin/node*
      /usr/local/bin/node -v
      
      

      und mit welcher Version ioBroker beim Boot automatisch gestartet wird: Datei /etc/init.d/iobroker.sh, Zeile 13 so ?

      NODECMD=/usr/bin/node
      ```` `  
      

      @paul53

      Am Terminal bekomme ich

      ! root@iobrokerBosaca:/opt/iobroker# ls -l /usr/bin/node*
      ! -rwxr-xr-x 1 root root 25379760 Jun 13 01:59 /usr/bin/node
      ! lrwxrwxrwx 1 root root 24 Jun 18 03:35 /usr/bin/nodejs -> /etc/alternatives/nodejs
      ! root@iobrokerBosaca:/opt/iobroker# /usr/bin/node -v
      ! v6.14.3
      ! root@iobrokerBosaca:/opt/iobroker# ls -l /usr/local/bin/node*
      ! ls: Zugriff auf '/usr/local/bin/node*' nicht möglich: Datei oder Verzeichnis nicht gefunden
      ! root@iobrokerBosaca:/opt/iobroker# /usr/local/bin/node -v
      ! bash: /usr/local/bin/node: Datei oder Verzeichnis nicht gefunden

      Bei mir läuft ioBroker im Docker-container, habe/finde daher keine init.d.

      Gestartet wird der Container mit

      node node_modules/iobroker.js-controller/controller.js >/opt/scripts/docker_iobroker_log.txt 2>&1 &

      wenn ich den js-controller von Hand starte bekomme ich

      ! root@iobrokerBosaca:/opt/iobroker# node node_modules/iobroker.js-controller/controller.js
      ! host.iobrokerBosaca check instance "system.adapter.admin.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.hm-rpc.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.hm-rega.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.web.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.vis.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.vis-hqwidgets.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.vis-timeandweather.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.vis-metro.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.hm-rpc.1" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.hm-rpc.2" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.nut.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.tr-064.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.ical.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.node-red.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.javascript.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.dwd.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.ping.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.feiertage.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.samsung.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.rpi2.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.fritzdect.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.vis-jqui-mfd.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.sql.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.email.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.tvspielfilm.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.javascript.1" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.broadlink2.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.ham.0" for host "iobrokerBosaca"
      ! host.iobrokerBosaca check instance "system.adapter.tradfri.0" for host "iobrokerBosaca"
      ! Send diag info: {"uuid":"ab265f4a-67f9-a46a-c0b2-61e4b95cefe5","language":"de","hosts":[{"version":"1.4.2",
      ! "platform":"Javascript/Node.js","type":"linux"}],"node":"v6.14.3","arch":"x64","adapters":{"admin":{"versio
      ! n":"3.4.6","platform":"Javascript/Node.js"},"hm-rpc":{"version":"1.6.0","platform":"Javascript/Node.js"},"h
      ! m-rega":{"version":"1.7.0","platform":"Javascript/Node.js"},"web":{"version":"2.1.9","platform":"Javascript
      ! /Node.js"},"vis":{"version":"1.1.2","platform":"Javascript/Node.js"},"vis-hqwidgets":{"version":"1.1.1","pl
      ! atform":"Javascript/Node.js"},"vis-timeandweather":{"version":"1.1.7","platform":"Javascript/Node.js"},"vis
      ! -metro":{"version":"1.1.2","platform":"Javascript/Node.js"},"nut":{"version":"1.1.3","platform":"Javascript
      ! /Node.js"},"tr-064":{"version":"0.4.14","platform":"Javascript/Node.js"},"icons-mfd-png":{"version":"1.0.2"
      ! ,"platform":"javascript/Node.js"},"icons-ultimate-png":{"version":"1.0.1","platform":"javascript/Node.js"},
      ! "ical":{"version":"1.5.2","platform":"Javascript/Node.js"},"node-red":{"version":"1.5.1","platform":"Javasc
      ! ript/Node.js"},"javascript":{"version":"3.6.4","platform":"Javascript/Node.js"},"dwd":{"version":"2.2.2","p
      ! latform":"javascript/Node.js"},"history":{"version":"1.7.2","platform":"Javascript/Node.js"},"ping":{"versi
      ! on":"1.3.2","platform":"Javascript/Node.js"},"feiertage":{"version":"1.0.0","platform":"javascript/Node.js"
      ! },"samsung":{"version":"0.2.9","platform":"Javascript/Node.js"},"rpi2":{"version":"0.3.2","platform":"javas
      ! cript/Node.js"},"fritzdect":{"version":"0.1.1","platform":"Javascript/Node.js"},"vis-jqui-mfd":{"version":"
      ! 1.0.11","platform":"Javascript/Node.js"},"sql":{"version":"1.8.0","platform":"Javascript/Node.js"},"flot":{
      ! "version":"1.7.9","platform":"javascript/Node.js"},"email":{"version":"1.0.4","platform":"Javascript/Node.j
      ! s"},"tvspielfilm":{"version":"1.0.4","platform":"javascript/Node.js"},"broadlink2":{"version":"1.8.0","plat
      ! form":"Javascript/Node.js"},"ham":{"version":"0.4.2","platform":"Javascript/Node.js"},"tradfri":{"version":
      ! "1.4.1","platform":"Javascript/Node.js"}},"model":"Intel(R) Celeron(R) CPU N3160 @ 1.60GHz","cpus":4,"mem
      ! ":8287760384,"ostype":"Linux","vis":594}
      ! Cannot find module 'pg-native'

      Hilft das weiter zu Fehlersuche?

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

        @zahnheinrich:

        Am Terminal bekomme ich `
        Das sieht doch gut aus: Offenbar existiert node.js nur in der Version 6.14.3.Woher dann diese Meldung kommt, ist rätselhaft:

        Pre-built binaries not found for node-aead-crypto@1.1.4 and node@9.8.0
        

        Mit Docker kenne ich mich nicht aus. Gibt es im Suchpfad noch weitere Verzeichnisse, in denen sich eine weitere Node-Version verstecken könnte ?

        Funktioniert etwas in ioBroker nicht ?

        1 Reply Last reply Reply Quote 0
        • Z
          zahnheinrich last edited by

          @paul53:

          @zahnheinrich:

          Am Terminal bekomme ich `
          Das sieht doch gut aus: Offenbar existiert node.js nur in der Version 6.14.3.Woher dann diese Meldung kommt, ist rätselhaft:

          Pre-built binaries not found for node-aead-crypto@1.1.4 and node@9.8.0
          

          Mit Docker kenne ich mich nicht aus. Gibt es im Suchpfad noch weitere Verzeichnisse, in denen sich eine weitere Node-Version verstecken könnte ?

          Funktioniert etwas in ioBroker nicht ? `

          Also im ioBroker funktioniert alles bis auf den Tradfri.

          Eine Suche nach node.js ergibt

          1841_node1.png
          1841_node2.png
          1841_node3.png
          1841_node4.png

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

            Die ausführbare Datei hat den Namen node.

            1 Reply Last reply Reply Quote 0
            • Z
              zahnheinrich last edited by

              @paul53:

              Die ausführbare Datei hat den Namen node. `

              da habe ich
              1841_node5.png

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

                Die beiden Dateien sind offenbar identisch. Welche Version haben sie ?

                /docker/iobroker/node_modules/node/bin/node -v
                
                1 Reply Last reply Reply Quote 0
                • Z
                  zahnheinrich last edited by

                  Sooo,

                  ich konnte mein Problem nun lösen:

                  • von Hand die im log angezeigten nicht existierenden Ordner angelegt

                  • von Hand die fehlende node_aead_crypto.node von github geladen

                  läuft

                  1 Reply Last reply Reply Quote 0
                  • D
                    DeeJayDave last edited by

                    Eine Frage hierzu:

                    Braucht man zwangsläufig den IKEA Gateway für die Einrichtung in iobroker? Hab momentan nur den Tradfri Treiber, Tradfri Fernbedienung und natürlich Lampen. Würde das ganze mit nem C2531 Stick betreiben wollen…

                    1 Reply Last reply Reply Quote 0
                    • AlCalzone
                      AlCalzone Developer last edited by

                      Ja. Mit dem Stick musst du stattdessen den zigbee-Adapter verwenden

                      1 Reply Last reply Reply Quote 0
                      • H
                        hemig last edited by

                        Hallo,

                        ich habe mir die Tage auch einen Raspi zugelegt und auch gleich erfolgreich iobroker installiert. Lief alles sofort auf Anhieb. Auch die Einbindung eines XIAOMI BT Thermos hat auf Anhieb geklappt. Im Moment beschäftige ich mich damit eine VIS zu erstellen. Klappt auch schon soweit ganz gut.

                        Leider musste ich heute früh feststellen dass der IKEA Tradfri Adapter nicht mehr läuft.

                        Folgendes habe ich log gefunden:

                        ! host.raspberrypi 2018-11-17 11:27:39.488 error instance system.adapter.tradfri.0 terminated with code 1 ()
                        ! Caught 2018-11-17 11:27:39.488 error by controller[0]: at Function.Module._load (module.js:498:3)
                        ! Caught 2018-11-17 11:27:39.488 error by controller[0]: at tryModuleLoad (module.js:506:12)
                        ! Caught 2018-11-17 11:27:39.488 error by controller[0]: at Module.load (module.js:566:32)
                        ! Caught 2018-11-17 11:27:39.488 error by controller[0]: at Object.Module._extensions..js (module.js:664:10)
                        ! Caught 2018-11-17 11:27:39.487 error by controller[0]: at Module._compile (module.js:653:30)
                        ! Caught 2018-11-17 11:27:39.487 error by controller[0]: at Object. <anonymous>(/opt/iobroker/node_modules/node-dtls-client/build/lib/AEADCrypto.js:54:47)
                        ! Caught 2018-11-17 11:27:39.487 error by controller[0]: at require (internal/module.js:11:18)
                        ! Caught 2018-11-17 11:27:39.487 error by controller[0]: at Module.require (module.js:597:17)
                        ! Caught 2018-11-17 11:27:39.487 error by controller[0]: at Function.Module._load (module.js:475:25)
                        ! Caught 2018-11-17 11:27:39.487 error by controller[0]: at Function.Module._resolveFilename (module.js:548:15)
                        ! Caught 2018-11-17 11:27:39.487 error by controller[0]: Error: Cannot find module 'node-aead-crypto'
                        ! Caught 2018-11-17 11:27:39.487 error by controller[0]: ^
                        ! Caught 2018-11-17 11:27:39.487 error by controller[0]: throw err;
                        ! Caught 2018-11-17 11:27:39.486 error by controller[0]: module.js:550
                        ! host.raspberrypi 2018-11-17 11:27:38.891 info instance system.adapter.tradfri.0 started with pid 2503
                        ! host.raspberrypi 2018-11-17 11:27:38.869 info object change system.adapter.tradfri.0
                        ! host.raspberrypi 2018-11-17 11:27:33.582 info Restart adapter system.adapter.tradfri.0 because enabled</anonymous>

                        ich habe mich versucht in das Thema einzulesen, hatte bisher aber keinen Erfolg

                        Folgende Version von Node scheint installiert:

                        root@raspberrypi:/opt/iobroker# node -v
                        v8.12.0
                        

                        Danke und Grüsse,

                        hemig

                        1 Reply Last reply Reply Quote 0
                        • AlCalzone
                          AlCalzone Developer last edited by

                          @hemig:

                          Leider musste ich heute früh feststellen dass der IKEA Tradfri Adapter nicht mehr läuft.

                          Caught	2018-11-17 11:27:39.487	error	by controller[0]: Error: Cannot find module 'node-aead-crypto'
                          
                          ```` `  
                          

                          Welche Adapter-Version hast du installiert? Aktuell im latest ist die 1.5.4, bei der das Problem nicht mehr auftreten sollte. Wenn dir die nicht angeboten wird, bitte mal über die Konsole updaten:

                          cd /opt/iobroker
                          npm i iobroker.tradfri
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • H
                            hemig last edited by

                            Hi AlCalzone,

                            danke für deine Rückmeldung.

                            Ich habe den Pie aufgrund anderer Probleme noch einmal mit dem Image von der iobroker Homepage aufgesetzt. Dort war die 1.5.4 enthalten. Läuft seit ein paar Tagen problemlos.

                            Grüsse,

                            hemig

                            1 Reply Last reply Reply Quote 0
                            • H
                              hemig last edited by

                              Hi AlCalzone,

                              heute Abend ist das Problem wieder aufgetreten. Ich kam nach der Arbeit nach Hause und der Pi war übers Netzwerk nicht mehr erreichbar.

                              Also neu gestartet, seit dem ist der Tradfri Adapter wieder rot.

                              Installiert ist die 1.5.4.

                              Im Log finde ich folgendes:

                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.156 info Restart adapter system.adapter.tradfri.0 because enabled
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.156 error instance system.adapter.tradfri.0 terminated with code 1 ()
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.156 error Caught by controller[0]: at Function.Module._load (module.js:498:3)
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.155 error Caught by controller[0]: at tryModuleLoad (module.js:506:12)
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.155 error Caught by controller[0]: at Module.load (module.js:566:32)
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.155 error Caught by controller[0]: at Object.Module._extensions..js (module.js:664:10)
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.155 error Caught by controller[0]: at Module._compile (module.js:653:30)
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.155 error Caught by controller[0]: at Object. <anonymous>(/opt/iobroker/node_modules/node-dtls-client/build/lib/AEADCrypto.js:54:47)
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.155 error Caught by controller[0]: at require (internal/module.js:11:18)
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.154 error Caught by controller[0]: at Module.require (module.js:597:17)
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.154 error Caught by controller[0]: at Function.Module._load (module.js:475:25)
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.154 error Caught by controller[0]: at Function.Module._resolveFilename (module.js:548:15)
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.154 error Caught by controller[0]: Error: Cannot find module 'node-aead-crypto'
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.154 error Caught by controller[0]: ^
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.153 error Caught by controller[0]: throw err;
                              ! host.ioBroker-RasPi 2018-11-28 18:48:39.153 error Caught by controller[0]: module.js:550
                              ! host.ioBroker-RasPi 2018-11-28 18:48:38.517 info instance system.adapter.tradfri.0 started with pid 3755</anonymous>

                              Grüsse,

                              hemig

                              1 Reply Last reply Reply Quote 0
                              • AlCalzone
                                AlCalzone Developer last edited by

                                @hemig:

                                Also neu gestartet, seit dem ist der Tradfri Adapter wieder rot.

                                Installiert ist die 1.5.4.

                                host.ioBroker-RasPi	2018-11-28 18:48:39.154	error	Caught by controller[0]: Error: Cannot find module 'node-aead-crypto'
                                ```` `  
                                

                                Entweder hast du ein Update installiert, oder es ging vorher schon nicht. Bitte einmal den Adapter deinstallieren, neu installieren und den Log hier posten, wenn es nicht funktioniert.

                                1 Reply Last reply Reply Quote 0
                                • H
                                  hemig last edited by

                                  danke für die schnelle Antwort.

                                  ich habe wirklich kein Update installiert und es hat gut eine Woche funktioniert. Nach den Problemen in der Vergangenheit hatte ich extra darauf geachtet.

                                  Heute früh war der Pi wieder nicht erreichbar, ich hatte aber keine Zeit mich darum zu kümmern.

                                  Ich schau gleich heute Abend danach. Als Log meinst Du das Log im iobroker?

                                  Grüsse,

                                  hemig

                                  1 Reply Last reply Reply Quote 0
                                  • AlCalzone
                                    AlCalzone Developer last edited by

                                    Ja, speziell den Part wo der Adapter installiert wird.

                                    1 Reply Last reply Reply Quote 0
                                    • H
                                      hemig last edited by

                                      so, da bin ich wieder. Ich habe den Adapter deinstalliert und gleich wieder installiert. Leider mit dem gleichen Ergebnis.

                                      Hier das log von der Deinstallation / Installation:

                                      ! iobroker
                                      ! 2018-11-29 18:30:26.504
                                      ! info
                                      ! exit 0
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.492
                                      ! info
                                      ! host.ioBroker-RasPi object system.adapter.tradfri.0 created
                                      ! host.ioBroker-RasPi
                                      ! 2018-11-29 18:30:26.484
                                      ! info
                                      ! object change system.adapter.tradfri.0
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.426
                                      ! info
                                      ! host.ioBroker-RasPi object system.adapter.tradfri.0.alive created
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.391
                                      ! info
                                      ! host.ioBroker-RasPi object system.adapter.tradfri.0.connected created
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.355
                                      ! info
                                      ! host.ioBroker-RasPi object system.adapter.tradfri.0.memHeapUsed created
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.320
                                      ! info
                                      ! host.ioBroker-RasPi object system.adapter.tradfri.0.memHeapTotal created
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.285
                                      ! info
                                      ! host.ioBroker-RasPi object system.adapter.tradfri.0.memRss created
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.248
                                      ! info
                                      ! host.ioBroker-RasPi object system.adapter.tradfri.0.uptime created
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.213
                                      ! info
                                      ! host.ioBroker-RasPi object system.adapter.tradfri.0.inputCount created
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.180
                                      ! info
                                      ! host.ioBroker-RasPi object system.adapter.tradfri.0.outputCount created
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.147
                                      ! info
                                      ! host.ioBroker-RasPi object tradfri.0.info created
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.116
                                      ! info
                                      ! host.ioBroker-RasPi object tradfri.0.info.connection created
                                      ! iobroker
                                      ! 2018-11-29 18:30:26.105
                                      ! info
                                      ! host.ioBroker-RasPi create instance tradfri
                                      ! iobroker
                                      ! 2018-11-29 18:30:24.652
                                      ! info
                                      ! add tradfri –host ioBroker-RasPi
                                      ! iobroker
                                      ! 2018-11-29 18:30:17.954
                                      ! info
                                      ! exit 0
                                      ! iobroker
                                      ! 2018-11-29 18:30:17.848
                                      ! info
                                      ! host.ioBroker-RasPi Deleting 103 state(s).
                                      ! host.ioBroker-RasPi
                                      ! 2018-11-29 18:30:17.843
                                      ! info
                                      ! object deleted system.adapter.tradfri.0
                                      ! host.ioBroker-RasPi
                                      ! 2018-11-29 18:30:17.842
                                      ! info
                                      ! object change system.adapter.tradfri.0
                                      ! iobroker
                                      ! 2018-11-29 18:30:16.957
                                      ! info
                                      ! host.ioBroker-RasPi Deleting 165 object(s).
                                      ! iobroker
                                      ! 2018-11-29 18:30:14.124
                                      ! info
                                      ! host.ioBroker-RasPi Counted 8 states (system.adapter.tradfri.0.) from states
                                      ! iobroker
                                      ! 2018-11-29 18:30:14.121
                                      ! info
                                      ! host.ioBroker-RasPi Counted 95 states (tradfri.0.
                                      ) from states
                                      ! iobroker
                                      ! 2018-11-29 18:30:14.108
                                      ! info
                                      ! host.ioBroker-RasPi Counted 129 states of tradfri.0
                                      ! iobroker
                                      ! 2018-11-29 18:30:13.921
                                      ! info
                                      ! host.ioBroker-RasPi Counted 20 channels of tradfri.0
                                      ! iobroker
                                      ! 2018-11-29 18:30:13.891
                                      ! info
                                      ! host.ioBroker-RasPi Counted 15 devices of tradfri.0
                                      ! iobroker
                                      ! 2018-11-29 18:30:13.859
                                      ! info
                                      ! host.ioBroker-RasPi Counted 1 instances of tradfri
                                      ! iobroker
                                      ! 2018-11-29 18:30:13.777
                                      ! info
                                      ! Delete adapter "tradfri.0"

                                      Und das nach der Installation mit dem Startversuch:

                                      ! host.ioBroker-RasPi
                                      ! 2018-11-29 18:33:54.672
                                      ! info
                                      ! Restart adapter system.adapter.tradfri.0 because enabled
                                      ! host.ioBroker-RasPi
                                      ! 2018-11-29 18:33:54.672
                                      ! error
                                      ! instance system.adapter.tradfri.0 terminated with code 1 ()
                                      ! Caught
                                      ! 2018-11-29 18:33:54.672
                                      ! error
                                      ! by controller[0]: at Function.Module._load (module.js:498:3)
                                      ! Caught
                                      ! 2018-11-29 18:33:54.672
                                      ! error
                                      ! by controller[0]: at tryModuleLoad (module.js:506:12)
                                      ! Caught
                                      ! 2018-11-29 18:33:54.672
                                      ! error
                                      ! by controller[0]: at Module.load (module.js:566:32)
                                      ! Caught
                                      ! 2018-11-29 18:33:54.671
                                      ! error
                                      ! by controller[0]: at Object.Module._extensions..js (module.js:664:10)
                                      ! Caught
                                      ! 2018-11-29 18:33:54.671
                                      ! error
                                      ! by controller[0]: at Module._compile (module.js:653:30)
                                      ! Caught
                                      ! 2018-11-29 18:33:54.671
                                      ! error
                                      ! by controller[0]: at Object. <anonymous>(/opt/iobroker/node_modules/node-dtls-client/build/lib/AEADCrypto.js:54:47)
                                      ! Caught
                                      ! 2018-11-29 18:33:54.671
                                      ! error
                                      ! by controller[0]: at require (internal/module.js:11:18)
                                      ! Caught
                                      ! 2018-11-29 18:33:54.671
                                      ! error
                                      ! by controller[0]: at Module.require (module.js:597:17)
                                      ! Caught
                                      ! 2018-11-29 18:33:54.671
                                      ! error
                                      ! by controller[0]: at Function.Module._load (module.js:475:25)
                                      ! Caught
                                      ! 2018-11-29 18:33:54.671
                                      ! error
                                      ! by controller[0]: at Function.Module._resolveFilename (module.js:548:15)
                                      ! Caught
                                      ! 2018-11-29 18:33:54.670
                                      ! error
                                      ! by controller[0]: Error: Cannot find module 'node-aead-crypto'
                                      ! Caught
                                      ! 2018-11-29 18:33:54.670
                                      ! error
                                      ! by controller[0]: ^
                                      ! Caught
                                      ! 2018-11-29 18:33:54.670
                                      ! error
                                      ! by controller[0]: throw err;
                                      ! Caught
                                      ! 2018-11-29 18:33:54.670
                                      ! error
                                      ! by controller[0]: module.js:550
                                      ! host.ioBroker-RasPi
                                      ! 2018-11-29 18:33:54.057
                                      ! info
                                      ! instance system.adapter.tradfri.0 started with pid 1793</anonymous>

                                      Grüsse,

                                      hemig

                                      1 Reply Last reply Reply Quote 0
                                      • AlCalzone
                                        AlCalzone Developer last edited by

                                        Da muss ich dich leider enttäuschen… du hast nur die Instanz gelöscht und wieder hinzugefügt.

                                        Machs mal über die Konsole:

                                        cd /opt/iobroker
                                        iobroker del tradfri
                                        npm i iobroker.tradfri
                                        iobroker add tradfri
                                        

                                        Das Log bitte vom 3. Befehl.

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          hemig last edited by

                                          Sorry Anfänger…

                                          Jetzt läuft der Adapter wieder, es würde mich allerdings interessieren was ich falsch gemacht hatte.

                                          Danke!

                                          ! pi@ioBroker-RasPi:/opt/iobroker $ npm i iobroker.tradfri
                                          ! > node-aead-crypto@2.1.3 install /opt/iobroker/node_modules/node-aead-crypto
                                          ! > node lib/install.js
                                          ! running default installation script
                                          ! > node-aead-crypto@2.1.3 install:default /opt/iobroker/node_modules/node-aead-crypto
                                          ! > prebuild-install || node-gyp rebuild
                                          ! prebuild-install WARN install /opt/iobroker/node_modules/node-aead-crypto/build/Release/node-aead-crypto.node: wrong ELF class: ELFCLASS64
                                          ! make: Verzeichnis „/opt/iobroker/node_modules/node-aead-crypto/build“ wird betreten
                                          ! CXX(target) Release/obj.target/node-aead-crypto/src/node-aes-ccm.o
                                          ! CXX(target) Release/obj.target/node-aead-crypto/src/node-aes-gcm.o
                                          ! CXX(target) Release/obj.target/node-aead-crypto/src/addon.o
                                          ! SOLINK_MODULE(target) Release/obj.target/node-aead-crypto.node
                                          ! COPY Release/node-aead-crypto.node
                                          ! make: Verzeichnis „/opt/iobroker/node_modules/node-aead-crypto/build“ wird verlassen
                                          ! npm WARN hoist-non-react-statics@3.1.0 requires a peer of react@>=14.x but none is installed. You must install peer dependencies yourself.
                                          ! npm WARN react-beautiful-dnd@9.0.2 requires a peer of react@^16.3.1 but none is installed. You must install peer dependencies yourself.
                                          ! npm WARN react-motion@0.5.2 requires a peer of react@^0.14.9 || ^15.3.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
                                          ! npm WARN react-redux@5.1.1 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself.
                                          ! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
                                          ! npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                          ! + iobroker.tradfri@1.5.4
                                          ! added 22 packages from 23 contributors and audited 5050 packages in 108.082s
                                          ! found 78 vulnerabilities (45 low, 10 moderate, 23 high)
                                          ! run npm audit fix to fix them, or npm audit for details
                                          ! pi@ioBroker-RasPi:/opt/iobroker $ iobroker add tradfri
                                          ! host.ioBroker-RasPi install adapter tradfri
                                          ! npm install –production (System call) in "/opt/iobroker/node_modules/iobroker.tradfri"
                                          ! npm WARN deprecated text-encoding@0.6.4: no longer maintained
                                          ! npm WARN deprecated nomnom@1.6.2: Package no longer supported. Contact support@npmjs.com for more info.
                                          ! prebuild-install WARN install /opt/iobroker/node_modules/iobroker.tradfri/node_modules/node-aead-crypto/build/Release/node-aead-crypto.node: wrong ELF class: ELFCLASS64
                                          ! npm notice created a lockfile as package-lock.json. You should commit this file.
                                          ! got /opt/iobroker/node_modules/iobroker.tradfri/admin
                                          ! upload [20] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/tradfri.png tradfri.png image/png
                                          ! upload [19] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/style.css style.css text/css
                                          ! upload [18] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/index.html index.html text/html
                                          ! upload [17] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/remote_dimmer.png icons/remote_dimmer.png image/png
                                          ! upload [16] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/remote.png icons/remote.png image/png
                                          ! upload [15] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/plug.png icons/plug.png image/png
                                          ! upload [14] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/panel_ws.png icons/panel_ws.png image/png
                                          ! upload [13] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/panel.png icons/panel.png image/png
                                          ! upload [12] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/motion_sensor.png icons/motion_sensor.png image/png
                                          ! upload [11] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/gu10_ws.png icons/gu10_ws.png image/png
                                          ! upload [10] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/gu10_2700k.png icons/gu10_2700k.png image/png
                                          ! upload [9] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/gu10.png icons/gu10.png image/png
                                          ! upload [8] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/gateway.png icons/gateway.png image/png
                                          ! upload [7] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/door_ws.png icons/door_ws.png image/png
                                          ! upload [6] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/bulb_ws.png icons/bulb_ws.png image/png
                                          ! upload [5] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/bulb_rgb.png icons/bulb_rgb.png image/png
                                          ! upload [4] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/bulb_2700k.png icons/bulb_2700k.png image/png
                                          ! upload [3] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/icons/bulb.png icons/bulb.png image/png
                                          ! upload [2] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/build/vendor.bundle.js build/vendor.bundle.js application/javascript
                                          ! upload [1] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/build/runtime.bundle.js build/runtime.bundle.js application/javascript
                                          ! upload [0] tradfri.admin /opt/iobroker/node_modules/iobroker.tradfri/admin/build/main.bundle.js build/main.bundle.js application/javascript
                                          ! host.ioBroker-RasPi object system.adapter.tradfri created
                                          ! host.ioBroker-RasPi create instance tradfri
                                          ! host.ioBroker-RasPi object tradfri.0.info.connection created
                                          ! host.ioBroker-RasPi object tradfri.0.info created
                                          ! host.ioBroker-RasPi object system.adapter.tradfri.0.outputCount created
                                          ! host.ioBroker-RasPi object system.adapter.tradfri.0.inputCount created
                                          ! host.ioBroker-RasPi object system.adapter.tradfri.0.uptime created
                                          ! host.ioBroker-RasPi object system.adapter.tradfri.0.memRss created
                                          ! host.ioBroker-RasPi object system.adapter.tradfri.0.memHeapTotal created
                                          ! host.ioBroker-RasPi object system.adapter.tradfri.0.memHeapUsed created
                                          ! host.ioBroker-RasPi object system.adapter.tradfri.0.connected created
                                          ! host.ioBroker-RasPi object system.adapter.tradfri.0.alive created
                                          ! host.ioBroker-RasPi object system.adapter.tradfri.0 created
                                          ! pi@ioBroker-RasPi:/opt/iobroker $

                                          Grüsse,

                                          hemig

                                          1 Reply Last reply Reply Quote 0
                                          • L
                                            Lucca2018 last edited by

                                            Hallo . Ich habe eine Fragewisse zum Tradfri System

                                            Gibt es eine Rückmeldung der Lampen über Ihren Status, so dass man ihn abfragen kann?

                                            LG

                                            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

                                            570
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            21
                                            171
                                            29664
                                            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