Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. BLE Adapter lässt sich nicht installieren. gelöst(Nodev18)

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    BLE Adapter lässt sich nicht installieren. gelöst(Nodev18)

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @LarryXXL last edited by

      @larryxxl

      Nicht als root herumhampeln, SWAP aktivieren, nodejs@18 verwenden.

      /dev/mapper/ubuntu--vg-ubuntu--lv ext4   9.8G  7.5G  1.8G  81% /
      

      Dein / ist so gut wie voll, das fällt dir als nächstes auf die Füße.

      S 1 Reply Last reply Reply Quote 0
      • S
        StefanH 0 @Thomas Braun last edited by StefanH 0

        Hallo in die Runde, vielleicht kann mir jemand helfen.

        Habe auf dem Raspi 4 erfolgreich Bluetooth aktiviert und im iobroker ebenfalls den BLE-Adapter erfolgreich zum Laufen gebracht. Leider wird mein XIAOMI Helligkeitssensor nicht vom Adapter erkannt.

        Habe im Adapter das xiaomi - Plugin aktiviert.

        Beim Starten des Adapter erscheint folgendes im Log:

        ble.0
        2023-08-09 07:32:40.655	info	starting scan for services ["fe95"]
        
        ble.0
        2023-08-09 07:32:40.083	info	starting scanner process...
        
        ble.0
        2023-08-09 07:32:40.053	info	monitored services: fe95
        
        ble.0
        2023-08-09 07:32:40.052	info	enabled plugins: Xiaomi, _default
        
        ble.0
        2023-08-09 07:32:40.050	info	loaded plugins: Xiaomi, mi-flora, ruuvi-tag, _default
        
        ble.0
        2023-08-09 07:32:39.979	info	starting. Version 0.13.4 in /opt/iobroker/node_modules/iobroker.ble, node: v18.16.1, js-controller: 4.0.24
        host.Raspberry-PI4
        2023-08-09 07:32:37.294	info	instance system.adapter.ble.0 started with pid 3879
        

        Hier noch die Daten im Objektknoten des BLE-Adapters:

        ble.jpg

        Habe auch schon das Objekt: allowNewDevices auf true gesetzt und dann den Pairing-Modus auf dem Helligkeitssensor aktiviert. Hat bisher leider alles nichts gebracht.

        Ich gehen davon aus, dass ich für die Anbindung des Sensors an IOBroker keinen Zigbee-Hub benötige.

        Gruss Stefan

        S 1 Reply Last reply Reply Quote 0
        • S
          StefanH 0 @StefanH 0 last edited by StefanH 0

          @stefanh-0
          bin jetzt etwas weiter gekommen.
          Nachdem ich den Haken mal bei:
          Ble1.jpg
          gesetzt habe, hat er schon mal Devices gefunden, das ist sehr schön und sagt mir, dass mein Bluetooth auf dem Rasp und der BLE-Adapter in IOBroker funktionieren.

          Es können jedoch von den Devices keine Daten ausgelesen werden.

          Ble2.jpg

          Das kann aber normal sein, da der XIAOMI Lichtsensor möglicher vom Plugin noch garnicht unterstützt wird und die restlichen gefundenen Bluetooth-Devices ohne geeignete Plugins sowieso nicht ausgelesen werden können.

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

            @stefanh-0 sagte in BLE Adapter lässt sich nicht installieren. gelöst(Nodev18):

            XIAOMI Lichtsensor

            bluetooth? wohl eher zigbee

            S 1 Reply Last reply Reply Quote 0
            • S
              StefanH 0 @crunchip last edited by

              @crunchip
              Ist mir schon klar dass zigbee als Protokoll verwendet wird, aber das sollten die Plugins ja hoffentlich können.

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

                @stefanh-0 scheinbar ist dir nicht ganz klar was der ble Adapter macht, das hat nichts mit zigbee zu tun, nur weil xiaomi als plugin drin steht.

                es gibt Geräte von xiaomi die mit bluetooth funken, wie z.b der Xiaomi Temperature and humidity sensor

                S 1 Reply Last reply Reply Quote 0
                • S
                  StefanH 0 @crunchip last edited by

                  @crunchip
                  Ok , danke für die Info und Klarstellung. Dachte bisher, dass zigbee auf Bluetooth aufsetzt. War mir nicht klar, dass zigbee ein eigenständiger Funkstandard ist.

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

                    @stefanh-0 auf die schnelle https://www.libe.net/smart-home-funk

                    Walter.O. 1 Reply Last reply Reply Quote 0
                    • Walter.O.
                      Walter.O. @crunchip last edited by

                      Hänge mich hier noch mal an.
                      Ich kann BLE _0.13.4 nicht Instalieren.

                      Plattform: linux
                      Betriebssystem: linux
                      Architektur: x64
                      Geschwindigkeit: 1496 MHz
                      Modell: Intel(R) Celeron(R) CPU 1007U @ 1.50GHz
                      RAM: 7.5 GB
                      Node.js: v18.19.0
                      NPM: 10.2.3
                      Freier Festplattenspeicher: 453.0 GB

                      ERROR: Process exited with code 25
                      
                      $ iobroker add ble --host Mini-pc-Master
                      
                      Installing iobroker.ble@0.13.4... (System call)
                      
                      npm ERR! code 1npm ERR! path /opt/iobroker/node_modules/@abandonware/noblenpm ERR! command failednpm ERR! command sh -c node-gyp-buildnpm ERR! (node:17520) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)npm ERR! Traceback (most recent call last):npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py", line 51, in <module>npm ERR! sys.exit(gyp.script_main())npm ERR! ^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 670, in script_mainnpm ERR! return main(sys.argv[1:])npm ERR! ^^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 662, in mainnpm ERR! return gyp_main(args)npm ERR! ^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 629, in gyp_mainnpm ERR! [generator, flat_list, targets, data] = Load(npm ERR! ^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 150, in Loadnpm ERR! result = gyp.input.Load(npm ERR! ^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 3021, in Loadnpm ERR! LoadTargetBuildFile(npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 411, in LoadTargetBuildFilenpm ERR! build_file_data = LoadOneBuildFile(npm ERR! ^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 239, in LoadOneBuildFilenpm ERR! build_file_contents = open(build_file_path, "rU").read()npm ERR! ^^^^^^^^^^^^^^^^^^^^^^^^^^^npm ERR! ValueError: invalid mode: 'rU' while trying to load binding.gypnpm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/opt/iobroker/node_modules/node-gyp/lib/configure.js:351:16)npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)npm ERR! gyp ERR! System Linux 6.1.0-17-amd64npm ERR! gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/@abandonware/noblenpm ERR! gyp ERR! node -v v18.19.0npm ERR! gyp ERR! node-gyp -v v7.1.2npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-01-23T18_42_08_732Z-debug-0.loghost.Mini-pc-Master Cannot install iobroker.ble@0.13.4: 1
                      
                      ERROR: Process exited with code 25
                      

                      Kann jemand weiterhelfen?

                      Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Walter.O. last edited by

                        @walter-o sagte in BLE Adapter lässt sich nicht installieren. gelöst(Nodev18):

                        Kann jemand weiterhelfen?

                        Wie bist du da ansonsten so unterwegs?

                        iob diag
                        

                        anschauen.

                        Walter.O. 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @Walter.O. last edited by

                          @walter-o sagte in BLE Adapter lässt sich nicht installieren. gelöst(Nodev18):

                          Kann jemand weiterhelfen?

                          hast du die notwendigen Zusatzpakete installiert?

                          Walter.O. 1 Reply Last reply Reply Quote 0
                          • Walter.O.
                            Walter.O. @Thomas Braun last edited by

                            @thomas-braun sagte in BLE Adapter lässt sich nicht installieren. gelöst(Nodev18):

                            iob diag

                            Wie kann ich das denn alles kopieren?
                            Bekomme nicht mal die hälfte kopiert...

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Walter.O.
                              Walter.O. @Homoran last edited by

                              @homoran welche währen das?

                              Homoran 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Walter.O. last edited by

                                @walter-o sagte in BLE Adapter lässt sich nicht installieren. gelöst(Nodev18):

                                Wie kann ich das denn alles kopieren?

                                Markieren, kopieren, hier rein hauen.

                                Walter.O. 1 Reply Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @Walter.O. last edited by

                                  @walter-o sagte in BLE Adapter lässt sich nicht installieren. gelöst(Nodev18):

                                  @homoran welche währen das?

                                  steht in der Adapterbeschreibung, hab ich nicht im Kopf

                                  Walter.O. 1 Reply Last reply Reply Quote 0
                                  • Walter.O.
                                    Walter.O. @Thomas Braun last edited by

                                    @thomas-braun ```
                                    Copy text starting here:

                                    ======================= SUMMARY =======================
                                                            v.2023-10-10
                                    
                                    
                                     Static hostname: Mini-PC
                                           Icon name: computer-laptop
                                             Chassis: laptop 💻
                                    Operating System: Debian GNU/Linux 12 (bookworm)
                                              Kernel: Linux 6.1.0-17-amd64
                                        Architecture: x86-64
                                     Hardware Vendor: Wortmann_AG
                                      Hardware Model: TERRA_PC
                                    Firmware Version: 1.02
                                    
                                    Installation:           native
                                    Kernel:                 x86_64
                                    Userland:               amd64
                                    Timezone:               Europe/Berlin (CET, +0100)
                                    User-ID:                1000
                                    X-Server:               false
                                    Boot Target:            graphical.target
                                    
                                    Pending OS-Updates:     0
                                    Pending iob updates:    0
                                    
                                    Nodejs-Installation:    /usr/bin/nodejs         v18.19.0
                                                            /usr/bin/node           v18.19.0
                                                            /usr/bin/npm            10.2.3
                                                            /usr/bin/npx            10.2.3
                                                            /usr/bin/corepack       0.22.0
                                    
                                    Recommended versions are nodejs  and npm
                                    Your nodejs installation is correct
                                    
                                    MEMORY:
                                                   total        used        free      shared  buff/cache   available
                                    Mem:            8.1G        3.8G        3.6G        831K        1.0G        4.3G
                                    Swap:           1.0G          0B        1.0G
                                    Total:          9.2G        3.8G        4.6G
                                    
                                    Active iob-Instances:   38
                                    Active repo(s): stable
                                    
                                    ioBroker Core:          js-controller           5.0.17
                                                            admin                   6.12.0
                                    
                                    ioBroker Status:        iobroker is running on this host.
                                    
                                    
                                    Objects type: jsonl
                                    States  type: jsonl
                                    
                                    Status admin and web instance:
                                    + system.adapter.admin.0                  : admin                 : Mini-pc-Master                           -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                                    + system.adapter.web.0                    : web                   : Mini-pc-Master                           -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                                    
                                    Objects:                26578
                                    States:                 24887
                                    
                                    Size of iob-Database:
                                    
                                    30M     /opt/iobroker/iobroker-data/objects.jsonl
                                    68M     /opt/iobroker/iobroker-data/states.jsonl
                                    
                                    
                                    
                                    =================== END OF SUMMARY ====================
                                    

                                    === Mark text until here for copying ===

                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Walter.O.
                                      Walter.O. @Homoran last edited by

                                      @homoran
                                      sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
                                      hab ich instaliert
                                      sudo setcap cap_net_raw+eip $(eval readlink -f which node)
                                      Erledigt

                                      1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Walter.O. last edited by

                                        @walter-o

                                        Die Langfassung wäre besser. Soweit sieht das aber gut aus.

                                        python --version && python --version
                                        

                                        sagt?

                                        Walter.O. 1 Reply Last reply Reply Quote 0
                                        • Walter.O.
                                          Walter.O. @Thomas Braun last edited by

                                          @thomas-braun sagte in BLE Adapter lässt sich nicht installieren. gelöst(Nodev18):

                                          python --version && python --version

                                          Komando nicht gefunden

                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Walter.O. last edited by

                                            @walter-o

                                            python --version && python3 --version
                                            

                                            Und bitte immer vollständige Ein- wie Ausgaben zeigen, nix nacherzählen.

                                            Walter.O. 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

                                            608
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            52
                                            2394
                                            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