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.
    • AlCalzone
      AlCalzone Developer last edited by

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

      Dann verstehe ich diesen Log-Output nicht. Sicher, dass du da nicht doch irgendwie NodeJS 9 eingeschleust hast, welches Reste hinterlassen hat?

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

        Wie kann ich das feststellen/beseitigen?

        wenn ich versuche upzudaten kommt

        ! root@iobrokerBosaca:/opt/iobroker# apt-get install -y nodejs
        ! Paketlisten werden gelesen… Fertig
        ! Abhängigkeitsbaum wird aufgebaut.
        ! Statusinformationen werden eingelesen.... Fertig
        ! nodejs ist schon die neueste Version (6.14.3-1nodesource1).
        ! 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.

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

          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
          
          1 Reply Last reply Reply Quote 0
          • P
            podruzjasne last edited by

            @Paul53

            Ich freue mich total, dass ich noch einen Tip bekomme.

            Diese Woche bin ich ortsabwesend und kann daher erst nach meiner Rückkehr Deine Hinweise abarbeiten, dann aber sehr gerne!

            Ich melde mich dann.

            Ulrich

            Gesendet von meinem T1-A21L mit Tapatalk

            1 Reply Last reply Reply Quote 0
            • G
              garnichda last edited by

              Hallo zusammen,

              ich hätte eine Verständnisfrage oder besser gesagt ein kleines Problem mit folgender Konstellation:

              • Raspi 3 mit ioBroker und VIS sowie Cloudadapter für Alexa

              • Tradfri Gateway mit mehreren Tradfri Lampen sowie normalen Gruppen (aus der App) bzw Virtuellen Gruppen

              • dazu einen Echo Plus sowie einen Echo Show.

              Wenn ich nun mittels Alexa oder VIS die Gruppen ausschalte und sie anschließend wieder normal mit dem Schalter einschalten will werden sie immer auf eine Brightness von 0,4% gestellt. Das wieder einschalten per Schalter ist einmal normal ausschalten (Tradfri Stromlos) und anschließend wieder auf ein und mit Strom versorgen. Gibt es hier irgendwo eine Definition welche Brightness die Lampen haben, wenn sie wieder normal mit Strom versorgt werden?

              Bin ehrlich gesagt ein wenig ratlos. Wenn ich das Licht mittels VIS oder Alexa normal Einschalte ohne es zuvor am Schalter auszuschalten funktioniert alles wie es soll wobei hier der Cloudadapter bei "An" automatisch eine Brightness von 100% definiert. Das Problem besteht wirklich nur sobald das Licht über den Schalter wieder eingeschaltet werden soll und vorher über VIS bzw Alexa ausgeschaltet wurde.

              Vielen Dank für Eure Hilfe

              1 Reply Last reply Reply Quote 0
              • P
                podruzjasne last edited by

                Die Tradfri sollten NIE stromlos sein, sondern nur über die Fernbedienung oder das Gateway geschaltet werden.

                Nach stromlos einschalten befinden die sich im bootmodus eingeschaltet (also auch nach Stromausfall gehen die Lampen bei Stromwiederkehr an).

                Ulrich

                Gesendet von meinem SM-J700H mit Tapatalk

                1 Reply Last reply Reply Quote 0
                • G
                  garnichda last edited by

                  Mir ist das ja bewusst allerdings den kleinen Damen im Hause nicht. Hier wird halt leider immernoch benötigt das die Lampen auch mit einem normalen Wippenschalter ein und ausgeschaltet werden können, was auch ohne weiteres geht solang die Brightness zuvor nicht per Alexa oder VIS auf 0% geregelt wird.

                  1 Reply Last reply Reply Quote 0
                  • P
                    podruzjasne last edited by

                    Je nach baulicher Gegebenheit könntest du den Schalter überbrücken, so dass die tradfri dauernd Spannung haben.

                    Darüber hinaus könntest du dann mit dem Schalter (nachdem er ggf. gegen einen Taster getauscht wurde) über Sonoff oder Homematic und iobroker die tradfry zusätzlich über den Taster betätigen.

                    Gesendet von meinem SM-J700H mit Tapatalk

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

                                            Support us

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

                                            629
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

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