Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. [Aufruf] BLE Adapter testen (v0.6.0)

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Aufruf] BLE Adapter testen (v0.6.0)

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

      Moin,

      heute kam mein xiaomi Thermo- und Hygrometer an und ich konnte ihn auch integrieren.

      Aber irgendwie werden die Werte nicht korrekt angezeigt.

      Siehe Screenshot.

      Oder muss noch was in den Einstellungen für BLE Adapter eingetragen werden ?

      ![](</s><URL url=)<link_text text="https://uploads.tapatalk-cdn.com/201812 ... 89be76.jpg">https://uploads.tapatalk-cdn.com/20181218/6898b0fedb32b57625dc31abbf89be76.jpg</link_text>" />

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

        @fromfuture:

        Oder muss noch was in den Einstellungen für BLE Adapter eingetragen werden ? `
        Hast Du Xiaomi eingetragen?

        ![](</s><ATTACHMENT 10527_unbenannt.jpg )[attachment=0]Unbenannt.JPG[/attachment]" />

        1 Reply Last reply Reply Quote 0
        • F
          fromfuture last edited by

          Genau daran lag es.

          Jetzt funktioniert es.

          Danke [emoji106][emoji4]

          Gesendet von meinem BKL-L04 mit Tapatalk

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

            @fromfuture:

            Genau daran lag es.

            Jetzt funktioniert es.

            Danke [emoji106][emoji4] `
            Schön, dass ich auch mal helfen konnte… 😄

            Ich verzweifel etwas, ich muss es irgendwie schaffen, das````
            sudo hcitool lescan

            
            Manuell über die Konsole geht es, aber automatisch per Cronjob oder Eintrag in die rc.local kriege ich es nicht hin.
            1 Reply Last reply Reply Quote 0
            • F
              fromfuture last edited by

              Da kann ich leider nicht helfen.

              Kann man eigentlich mehrere xiaomi einbinden?

              Und wenn gibt es da eine Grenze?

              Gesendet von meinem BKL-L04 mit Tapatalk

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

                ich bringe noch einmal die alte Frage wieder auf:

                Gibt es Aussichten, den Batterie-Level der Pflanzensensoren zu bekommen?

                Habe ich eine (vielleicht auch schon bekannte) Diskusion darüber erhalten:

                https://www.open-homeautomation.com/de/ … nt-sensor/

                Da ich aber zu wenig Know-How habe, kam ich damit wenig weiter.

                Habe zwar das GATTTOOL gefunden und auch nutzen können. Allerdings nicht viele Ergebnisse erhalten.

                Und. So lange BLE auf dem ioBroker läuft, funktioniert dasGATTTOOL nicht parallel

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

                  @Arnulf:

                  Gibt es Aussichten, den Batterie-Level der Pflanzensensoren zu bekommen? `

                  Das setzt eine aktive Verbindung voraus, die aktuell nicht im Adapter enthalten ist. Mit dem Sensor habe ich allerdings ein Gerät zum Testen, was ich bisher nicht auf dem Schirm hatte. Zugegeben, meine Priorität liegt momentan bei anderen Baustellen, aber vielleicht klappts über die Feiertage.

                  1 Reply Last reply Reply Quote 0
                  • R
                    reini last edited by

                    wenn du das mit dem Batterie-Level hinbekommen würdest wäre das natürlich top und somit bei mir bestens im Garten einsetzbar 8-)

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

                      @lobomau:

                      Ich würde gerne nur meine bekannten Geräte einfangen und keine neuen mehr speichern. Kann man das einstellen? `

                      Ich habe soeben 0.6.0 auf npm veröffentlicht (sollte dann morgen im latest sein).

                      Da gibts jetzt eine Option, keine neuen Geräte mehr aufzunehmen.
                      1097_unbenannt.png
                      Die Option deaktivieren und alle Devices aus Objekte löschen, die nicht bekannt sind.

                      –-

                      Außerdem an Board: NodeJS-10-Unterstützung. Ich konnte es allerdings noch nicht selbst testen. Wer also schon auf NodeJS 10 ist, darf gerne testen.

                      1 Reply Last reply Reply Quote 0
                      • S
                        Siegfried Forum Testing last edited by

                        Habe auf die v0.6.0 geupdatet trotzdem scheint bei mir scheint die Möglichkeit nicht auf

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

                          Wie hast du geupdated?

                          1 Reply Last reply Reply Quote 0
                          • S
                            Siegfried Forum Testing last edited by

                            erst über git …dann habe ich versucht zu deinstallieren und neu zu installieren ...

                            aber immer hat sich nichts geändert

                            1 Reply Last reply Reply Quote 0
                            • S
                              Siegfried Forum Testing last edited by

                              nochmal aus git probiert …

                              Nun hab ich den fehler: unhandled promise rejection: Error: Cannot find module '@abandonware/bluetooth-hci-socket'

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

                                @Siegfried:

                                erst über git `
                                Da ist das Problem. Bei Installation von git wird kein Upload ausgeführt.

                                Sofern nicht explizit dazu aufgefordert, bitte immer normal über die Adapter-Liste installieren.

                                @Siegfried:

                                Cannot find module '@abandonware/bluetooth-hci-socket' `
                                Was steht im Installer-Log? Da muss irgendein Fehler aufgetreten sein.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Siegfried Forum Testing last edited by

                                  da steht:

                                  ! ````
                                  $ ./iobroker url "https://github.com/AlCalzone/ioBroker.ble"
                                  install https://github.com/AlCalzone/ioBroker.ble/tarball/master
                                  npm install https://github.com/AlCalzone/ioBroker.ble/tarball/master --production --save --prefix "/opt/iobroker" (System call)
                                  npm

                                  ERR!

                                  path
                                  /root/.npm/_logs
                                  npm

                                  ERR!

                                  code
                                  EACCES
                                  npm
                                  ERR! errno -13npm
                                  ERR! syscall scandirnpm

                                  ERR!
                                  Error: EACCES: permission denied, scandir '/root/.npm/_logs'
                                  npm
                                  ERR! { Error: EACCES: permission denied, scandir '/root/.npm/_logs'npm
                                  ERR! stack: 'Error: EACCES: permission denied, scandir '/root/.npm/_logs'',npm ERR! errno: -13,

                                  ! npm ERR! code: 'EACCES',npm
                                  ERR! syscall: 'scandir',npm ERR!
                                  path: '/root/.npm/_logs' }npm ERR!
                                  npm ERR! The operation was rejected by your operating system.
                                  ! npm ERR! It is likely you do not have the permissions to access this file as the current usernpm
                                  ERR! npm ERR! If you believe this might be a permissions issue, please double-check the
                                  ! npm ERR! permissions of the file and its containing directories, or try runningnpm ERR! the command again as root/Administrator (though this is not recommended).
                                  ! glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs' stack: 'Error: EACCES: permission denied, scandir '/root/.npm/_logs'',
                                  errno: -13,
                                  code: 'EACCES',
                                  syscall: 'scandir',
                                  path: '/root/.npm/_logs' }
                                  ! npm

                                  ERR!

                                  path
                                  /root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f
                                  npm

                                  ERR!

                                  code
                                  EACCESnpm
                                  ERR! errno
                                  -13npm ERR! syscall
                                  opennpm

                                  ERR! Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'

                                  ! npm ERR! cause: npm
                                  ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'npm ERR! errno: -13,
                                  npm ERR! code: 'EACCES',
                                  npm ERR! syscall: 'open',
                                  npm ERR! path: '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f' },
                                  npm ERR! isOperational: true,
                                  npm ERR! stack: 'Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'',
                                  npm ERR! errno: -13,
                                  npm ERR! code: 'EACCES',
                                  npm ERR! syscall: 'open',
                                  npm ERR! path: '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f' }
                                  npm ERR!
                                  npm ERR! The operation was rejected by your operating system.
                                  ! npm ERR! It is likely you do not have the permissions to access this file as the current usernpm ERR!
                                  npm ERR! If you believe this might be a permissions issue, please double-check the
                                  npm ERR!
                                  permissions of the file and its containing directories, or try runningnpm ERR! the command again as root/Administrator (though this is not recommended).
                                  ! 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.0.7 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 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.0.7 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":"x64"})npm

                                  WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-1 (node_modules/@abandonware/bluetooth-hci-socket):npm
                                  WARN optional
                                  SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-1 preinstall: npm install node-pre-gyp
                                  npm
                                  WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 243

                                  ! process exited with code 0

                                  
                                  ****EDIT: Code in Code und Spoiler-Tags ; Homoran(Admin)****
                                  1 Reply Last reply Reply Quote 0
                                  • AlCalzone
                                    AlCalzone Developer last edited by

                                    Dachte ich es mir doch. Du hast mal mit sudo installiert.

                                    => Lesen und befolgen: viewtopic.php?f=8&t=19209

                                    => Nochmal den Adapter über die Admin-UI installieren.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Siegfried Forum Testing last edited by

                                      hm bekomme es irgendwie nicht hin.

                                      entweder ich bekomme den fehler oder es läuft wieder die alte version.

                                      Habe auch den Befehl.````
                                      sudo chown -R $(whoami) ~/.npm

                                      
                                      Reicht das? Oder sollte ich das in Klammern mit was ersetzten.
                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Siegfried Forum Testing last edited by

                                        jetzt läuft es …hab nun mit einem anderen Adapter probleme 😞

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

                                          Dann machst du am besten einen neuen Thread dazu auf 😉

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            Shaky79 last edited by

                                            Hallo zusammen,

                                            bei mir findet er zwar das @abandonware/bluetooth-hci socket, aber er sagt mir schon wieder falsche node Version. (Siehe Anhang)

                                            Ich dachte es gäbe jetzt Node10 Support? Sorry bin immer noch Anfänger mit Linux. Was mache ich hier falsch?

                                            Ich hab nochmal neu installiert.

                                            Bei der Installation kommt tatsächlich auch eine Fehlermeldung bei Bluetooth. Werde da aber nicht draus schlau. Bzw. weiß nicht was ich tun soll.

                                            $ ./iobroker add ble  --host phoscon
                                            NPM version: 6.5.0
                                            npm install iobroker.ble --production --save --prefix "/opt/iobroker" (System call)
                                            ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’:../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local <v8::value>Nan::MakeCallback(v8::Local<v8::object>, v8::Local<v8::string>, int, v8::Local<v8::value>*)’ is deprecated [-Wdeprecated-declarations]
                                                 Nan::MakeCallback(Nan::New<object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                                                                                                                                           ^
                                            In file included from ../src/BluetoothHciSocket.cpp:8:0:
                                            ../../../../nan/nan.h:979:46: note: declared here
                                               NAN_DEPRECATED inline v8::Local <v8::value>MakeCallback(
                                                                                          ^~~~~~~~~~~~
                                            ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’:
                                            ../src/BluetoothHciSocket.cpp:275:72: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local <v8::value>[1])’
                                               Local <value>error = errorConstructor->NewInstance(1, constructorArgs);
                                                                                                                    ^
                                            In file included from /root/.node-gyp/10.14.2/include/node/node.h:63:0,
                                                             from /root/.node-gyp/10.14.2/include/node/node_buffer.h:25,
                                                             from ../src/BluetoothHciSocket.cpp:7:
                                            /root/.node-gyp/10.14.2/include/node/v8.h:3993:44: note: candidate: v8::MaybeLocal <v8::object>v8::Function::NewInstance(v8::Local<v8::context>, int, v8::Local<v8::value>*) const
                                               V8_WARN_UNUSED_RESULT MaybeLocal <object>NewInstance(
                                                                                        ^~~~~~~~~~~
                                            /root/.node-gyp/10.14.2/include/node/v8.h:3993:44: note:   candidate expects 3 arguments, 2 provided
                                            /root/.node-gyp/10.14.2/include/node/v8.h:3996:44: note: candidate: v8::MaybeLocal <v8::object>v8::Function::NewInstance(v8::Local<v8::context>) const
                                               V8_WARN_UNUSED_RESULT MaybeLocal <object>NewInstance(
                                                                                        ^~~~~~~~~~~
                                            /root/.node-gyp/10.14.2/include/node/v8.h:3996:44: note:   candidate expects 1 argument, 2 provided
                                            ../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::Local <v8::value>Nan::MakeCallback(v8::Local<v8::object>, v8::Local<v8::string>, int, v8::Local<v8::value>*)’ is deprecated [-Wdeprecated-declarations]
                                               Nan::MakeCallback(Nan::New<object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                                                                                                                                         ^
                                            In file included from ../src/BluetoothHciSocket.cpp:8:0:
                                            ../../../../nan/nan.h:979:46: note: declared here
                                               NAN_DEPRECATED inline v8::Local <v8::value>MakeCallback(
                                                                                          ^~~~~~~~~~~~
                                            ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’:
                                            ../src/BluetoothHciSocket.cpp:395:34: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                                   devId = arg0->IntegerValue();
                                                                              ^
                                            In file included from /root/.node-gyp/10.14.2/include/node/v8.h:26:0,
                                                             from /root/.node-gyp/10.14.2/include/node/node.h:63,
                                                             from /root/.node-gyp/10.14.2/include/node/node_buffer.h:25,
                                                             from ../src/BluetoothHciSocket.cpp:7:
                                            /root/.node-gyp/10.14.2/include/node/v8.h:2476:46: note: declared here
                                               V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                                                                          ^
                                            /root/.node-gyp/10.14.2/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                               declarator __attribute__((deprecated(message)))
                                               ^~~~~~~~~~
                                            ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’:
                                            ../src/BluetoothHciSocket.cpp:417:34: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                                   devId = arg0->IntegerValue();
                                                                              ^
                                            In file included from /root/.node-gyp/10.14.2/include/node/v8.h:26:0,
                                                             from /root/.node-gyp/10.14.2/include/node/node.h:63,
                                                             from /root/.node-gyp/10.14.2/include/node/node_buffer.h:25,
                                                             from ../src/BluetoothHciSocket.cpp:7:
                                            /root/.node-gyp/10.14.2/include/node/v8.h:2476:46: note: declared here
                                               V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                                                                          ^
                                            /root/.node-gyp/10.14.2/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                               declarator __attribute__((deprecated(message)))
                                               ^~~~~~~~~~
                                            
                                            make: *** [Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1
                                            gyp
                                             ERR! build error 
                                            gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
                                            gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
                                            gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
                                            
                                            gyp ERR! System Linux 4.14.79-v7+gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                            gyp ERR! cwd /opt/iobroker/node_modules/noble/node_modules/bluetooth-hci-socket
                                            gyp ERR! node -v v10.14.2
                                            gyp ERR! node-gyp -v v3.8.0
                                            gyp ERR! not ok 
                                            
                                            npm
                                             WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/bluetooth-hci-socket/package.json'
                                            npm 
                                            WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none is installed. You must install peer dependencies yourself.
                                            npm
                                             WARN
                                             optional
                                             SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/noble/node_modules/bluetooth-hci-socket):
                                            npm WARN
                                             optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 install: `node-gyp rebuild`npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                                            
                                            host.phoscon install adapter ble
                                            got /opt/iobroker/node_modules/iobroker.ble/admin
                                            upload [2] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/words.js words.js application/javascript
                                            upload [1] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/index.html index.html text/html
                                            upload [0] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/ble.png ble.png image/png
                                            host.phoscon object system.adapter.ble created
                                            host.phoscon create instance ble
                                            host.phoscon object ble.0.options.allowNewDevices created
                                            host.phoscon object ble.0.options created
                                            host.phoscon object ble.0.info.driverState created
                                            host.phoscon object ble.0.info.connection created
                                            host.phoscon object ble.0.info created
                                            host.phoscon object system.adapter.ble.0.outputCount created
                                            host.phoscon object system.adapter.ble.0.inputCount created
                                            host.phoscon object system.adapter.ble.0.uptime created
                                            host.phoscon object system.adapter.ble.0.memRss created
                                            host.phoscon object system.adapter.ble.0.memHeapTotal created
                                            host.phoscon object system.adapter.ble.0.memHeapUsed created
                                            host.phoscon object system.adapter.ble.0.connected created
                                            host.phoscon object system.adapter.ble.0.alive created
                                            host.phoscon object system.adapter.ble.0 created
                                            process exited with code 0
                                            
                                            Fehlermeldung mit falscher Node Version bleibt aber die gleich. 
                                            
                                            Lampe im Broker dann auf gelb
                                            
                                            Gruss
                                              [10504_bleadapter.jpg](/assets/uploads/files/10504_bleadapter.jpg)</v8::value></object></v8::value></v8::string></v8::object></v8::value></object></v8::context></v8::object></object></v8::value></v8::context></v8::object></value></v8::value></v8::value></object></v8::value></v8::string></v8::object></v8::value> 
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            593
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            59
                                            370
                                            65809
                                            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