Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. RADAR2: Adapter läuft, findet Bluetooth des Handys nicht

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    RADAR2: Adapter läuft, findet Bluetooth des Handys nicht

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

      Hallo, liebes Forum,

      bisher habe ich hier nur gelesen. Es sind tolle Beiträge, die mir oft weitergeholfen haben. Herzlichen Dank.
      Bei dem Adapter Radar2 trete ich aber nun auf der Stelle. Ich bin allerdings in dem Bereich auch was Linux-Skripte betrifft leider noch ein totaler Noobs.

      Zuvor hatte ich eine Anwesenheitserkennung mit dem Ping-Adapter, die auch solage zuverlässig funktioniert hat, bis ich mein Hany gewechselt habe (jetzt Samsung S9). Vermutlich legt sich das WLAN hin und wieder schlafen.

      Klar also, dass ich auf den Radar2 gestoßen bin. Der Adapter läuft auch (wird schnell grün) aber er erkennt mein Handy nicht.
      Ich vermute, der Fehler ist schon auf tieferer Ebene, denn:
      Wenn ich auf der Konsole folgenes eingebe:
      sudo l2ping -c 1 <meine Bluetooth-Mac>
      Dann wird auch mein Gerät gefunden - allerdings auch nur, wenn ich am Handy "scanning" aktiviere.
      Wenn ich aber in <sudo bluetoothctl> dann mit <scan on> suchen lasse, dann werden zwar bluetooth Geräte angezeigt (wusste gar nicht, dass so viele Geräte in der Nähe sind), aber die Bluetooth-Mac meines Handys ist nicht dabei.

      radar2öEinstellungen.png
      Radar2-Instanz.png

      Mein Handy wird auch unter Objekte angezeigt, aber wenn ich Bluetooth einschalte (und WLAN aus) dann ist es immer nur auf FALSE.
      Die Erkennung per WLAN funzt besser, aber irgenwie auch nicht zuverlässig. Aber eines nach dem anderen.

      Hier noch die Logs:
      radar2-logs.png

      Hoffe, mit den Angaben kommt wer weiter und kann mir helfen.
      Vielen Dank im Voraus.

      Liebe Grüße
      Äd

      M 1 Reply Last reply Reply Quote 0
      • M
        MCU @Äd last edited by MCU

        @Äd Welche Version vom Adapter?
        Bedenken bei Anwesenheitskontrolle.: Es kann sich nur ändern, wenn man die Tür geöffnet/geschlossen hat!?
        FritzBox im Einsatz: ->tr-064-Adapter nutzen

        b78221bf-833c-4b43-b2b6-9f91e6342ca2-image.png
        Unter Devices stehen dann die Devices die beobachtet werden und deren Zustand im Netz oder nicht!

        Ä 1 Reply Last reply Reply Quote 0
        • Ä
          Äd @MCU last edited by

          Hallo @MCU,

          vielen Dank für deine Antwort.
          Es der Radar2 v2.0.1
          Und ich denke, ich habe mich an die Installationshinweise in der Info gehalten.
          Wobei ich allerdings leider die hinweise unter "Bluetooth usage" nicht wirklich verstanden habe.
          Vermute, dass ich ein Typ "l2ping"Bluetooth beim Handy habe (s.o. meine Tests auf der Konsole), aber mir ist nicht klar, ob ich da in dem Adapter was entsprechend einstellen muss, bzw. wenn ja: wo?

          Zitat: "Bedenken bei Anwesenheitskontrolle [...]"
          Aber das Skript aktiviert doch nicht den Radar2, oder?
          Ich habe es so verstanden, dass das Skript das Teil-Ergebnis des Adapters abfragt. Bei mir sieht das Ergebnis für mein Handy im Radar2 aber immer gleich aus und zwar unabhängig davon, ob Bluetooth ein oder ausgeschaltet ist - so wie im folgendne Bild:
          radar2-Objects.png
          Auf true geht es nur, wenn ich auch WLAN einschalte. Aber WLAN ist ja wegen des Energiesparkonzepts meines Handys auch nicht zuverlässig.

          Falls ich das mit dem Skript fasch verstanden habe: Zugegeben, ich habe es noch gar nicht implementiertk da ja bereits Radar2-Adapter nicht auf das BlueTooth meines Handys ragiert hat.

          Liebe Grüße
          Äd

          amg_666 1 Reply Last reply Reply Quote 0
          • amg_666
            amg_666 @Äd last edited by

            @Äd Willkommen im Club 🙂 du kannst dich auch gerne in meinen Thread mit reinhängen, guckst du hier

            Starte mal den Adapter neu und check im Log was da an warnmeldungen kommt, eventuell das gleiche Problem wie bei mir dass er Admin Rechte vom iobroker erwartet ?

            Ä 1 Reply Last reply Reply Quote 0
            • Ä
              Äd @amg_666 last edited by

              Hallo @amg_666 ,

              vielen Dank für die freundliche Begrüßung und deine Hilfe. 🙂

              Habe mal ins Log geschaut; da kommen nach dem Neustart des Adapters jede Menge Meldungen (wäre ein riesiges File, aber wenn es hilft kann ich es schicken).

              Da ich davon wirlklich keine Ahnung habe, ist es schwierig für mich, da was zu finden, aber folgende Meldungen sind mir aufgefallen:
              2020-11-20 22:42:56.749 - warn: radar2.0 (14401) node-bluetooth not found!

              2020-11-20 22:42:59.736 - warn: radar2.0 (14401) adapter.objects.getObjectList is deprecated, and will be removed in the future. Please use adapter.getObjectList/Async. Report this to Developer!

              2020-11-20 22:43:26.382 - info: radar2.0 (14401) debug: Del State err: Error: Not existsat /opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:1588:72at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2999:68at /opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:93872at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)at /opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49at processTicksAndRejections (internal/process/task_queues.js:97:5

              Die letzte Meldung kommt extrem oft.

              Sagen dir die Meldungen was? Soll ich mehr aus dem Log schicken?

              Danke für den Link, schaue ich mir gerne an.

              Liebe Grüße
              Äd

              amg_666 1 Reply Last reply Reply Quote 0
              • amg_666
                amg_666 @Äd last edited by

                @Äd ich geh jetzt ins Bett 🙂 poste mal den ganzen log aber BITTE in code-tags (wähle das Symbol </> aus und kopier das dann da rein, dann wirds lesbarer.

                Ä 1 Reply Last reply Reply Quote 0
                • Ä
                  Äd @amg_666 last edited by

                  ja, war ich dann auch, hatte mir zuvor nochmal deinen Post angeschaut. Das mit dem Rufzeichen for der MAC-Adresse und die Wiederholung der Befehle auf der Shell hatten bei mir leider keinen Erfolg.

                  Hier jetzt aber erst noch mal der Log von gestern Abend (musste aber dennoch kürzen, wegen Längenbegrenzung pro Post):

                  
                  2020-11-20 22:42:27.937  - info: radar2.0 (27556) debug: ChangeState ack:true of _uBTs = ['00:c2:4c:60:90:bb','00:c3:f4:e5:f0:b5','09:a0:42:18:16:28','0f:04:e3:f0:72:09','32:79:a9:e1:9d:b7','41:03:60:1e:46:eb','45:5b:fc:c4:c5:1c','48:6e:76:9c:f9:77','59:b0:61:c1:26:58','5c:02:27:49:94:cc','62:43:1b:9b:90:e7','66:d3:dd:02:0b:ed','7e:8b:4b:50:54:5c','a4:c1:38:72:d5:48','c8:69:cd:65:61:e6']
                  2020-11-20 22:42:33.541  - info: radar2.0 (27556) debug: radar2 found uIP's: []
                  2020-11-20 22:42:45.554  - info: radar2.0 (27556) debug: arp-scan -lgq --retry=6 --timeout=500 --interface=eth0 executed for 12.004 seconds and returned 14 hosts.
                  2020-11-20 22:42:45.588  - info: radar2.0 (27556) debug: ChangeState ack:true of Fritzbox._lastHere = 2020-11-20@22:42:45
                  2020-11-20 22:42:46.379  - info: radar2.0 (27556) debug: ChangeState ack:true of Galaxy-S9._lastHere = 2020-11-20@22:42:46
                  2020-11-20 22:42:50.290  - info: host.iobroker-raspi "system.adapter.radar2.0" disabled
                  2020-11-20 22:42:50.311  - info: host.iobroker-raspi stopInstance system.adapter.radar2.0 (force=false, process=true)
                  2020-11-20 22:42:50.315  - info: host.iobroker-raspi stopInstance system.adapter.radar2.0 send kill signal
                  2020-11-20 22:42:50.322  - info: radar2.0 (27556) Got terminate signal TERMINATE_YOURSELF
                  2020-11-20 22:42:50.324  - info: radar2.0 (27556) Adapter disconnected and stopped with dostop(false) and callback(true)
                  2020-11-20 22:42:50.386  - info: host.iobroker-raspi instance system.adapter.radar2.0 terminated with code 0 (NO_ERROR)
                  2020-11-20 22:42:53.298  - info: host.iobroker-raspi "system.adapter.radar2.0" enabled
                  2020-11-20 22:42:53.358  - info: host.iobroker-raspi instance system.adapter.radar2.0 started with pid 14401
                  2020-11-20 22:42:55.803  - info: radar2.0 (14401) starting. Version 1.0.9 in /opt/iobroker/node_modules/iobroker.radar2, node: v12.19.1, js-controller: 3.1.6
                  2020-11-20 22:42:56.094  - warn: radar2.0 (14401) adapter.objects.getObjectList is deprecated, and will be removed in the future. Please use adapter.getObjectList/Async. Report this to Developer!
                  2020-11-20 22:42:56.282  - info: radar2.0 (14401) radar2 initialization started...
                  2020-11-20 22:42:56.501  - info: radar2.0 (14401) Connected with '0.0.0.0' for DHCP Scan
                  2020-11-20 22:42:56.747  - info: radar2.0 (14401) found '@abandonware/noble'
                  2020-11-20 22:42:56.749  - warn: radar2.0 (14401) node-bluetooth not found!
                  2020-11-20 22:42:56.751  - info: radar2.0 (14401) radar2 set to flag items away if they are not seen for 2 minutes
                  2020-11-20 22:42:56.752  - info: radar2.0 (14401) Debug mode set by adapter config ('!' as last letter in removeEnd)!
                  2020-11-20 22:42:56.755  - info: radar2.0 (14401) use known BT list: [ '01:12:23:34:45:56', '68:e7:c2:a6:dc:c6' ]
                  2020-11-20 22:42:56.756  - info: radar2.0 (14401) use known IP list: [ '1.1.1.1' ]
                  2020-11-20 22:42:56.757  - info: radar2.0 (14401) Remove name end for host names: .fritz.box
                  2020-11-20 22:42:56.759  - info: radar2.0 (14401) arp-scan will use the following interfaces: [ 'eth0' ]
                  2020-11-20 22:42:56.760  - info: radar2.0 (14401) radar2 set to scan every 30 seconds and printers every 720 minutes.
                  2020-11-20 22:42:56.818  - info: radar2.0 (14401) debug: Noble State Change: poweredOn
                  2020-11-20 22:42:56.823  - info: radar2.0 (14401) Will try to scan BT devices: true
                  2020-11-20 22:42:57.338  - info: radar2.0 (14401) debug: ChangeState ack:true of info.connection = true
                  2020-11-20 22:42:58.654  - warn: radar2.0 (14401) ip address 192.168.178.3 in Fritzbox was used already for another device Fritzbox, this is forbidden!
                  2020-11-20 22:42:58.732  - info: radar2.0 (14401) debug: ChangeState ack:true of Fritzbox._lastHere = 2020-11-20@22:42:45
                  2020-11-20 22:42:58.792  - info: radar2.0 (14401) Init item Fritzbox with {name: 'Fritzbox',id: 'Fritzbox',type: 'IP',hasMAC: [ '12:34:56:78:90:12', 'c8:0e:14:02:51:df' ],ipVendor: 'Vendor N/A',rip: ['192.168.178.3','fd00::ca0e:14ff:fe02:51df','2a00:6020:23ff:6900:ca0e:14ff:fe02:51df','192.168.178.3'],lasthere: '2020-11-20T22:42:45.585Z',anwesend: true}
                  2020-11-20 22:42:58.814  - info: radar2.0 (14401) debug: ChangeState ack:true of Fritzbox = true
                  2020-11-20 22:42:58.831  - info: radar2.0 (14401) debug: ChangeState ack:true of Galaxy-S9._lastHere = 2020-11-20@22:42:46
                  2020-11-20 22:42:58.882  - info: radar2.0 (14401) debug: ChangeState ack:true of Fritzbox._here = true
                  2020-11-20 22:42:59.332  - info: radar2.0 (14401) Init item Galaxy-S9 with {name: 'Galaxy-S9',bluetooth: [ '68:e7:c2:a6:dc:c6' ],id: 'Galaxy-S9',type: 'BT',hasMAC: [ '24:18:1d:dd:9d:d3' ],ipVendor: 'Samsung Electro-Mechanics(Thailand)',btVendor: 'Samsung Electronics Ltd',rip: [ '192.168.178.69' ],lasthere: '2020-11-20T22:42:46.375Z',anwesend: true}
                  2020-11-20 22:42:59.370  - info: radar2.0 (14401) debug: ChangeState ack:true of Galaxy-S9 = true
                  2020-11-20 22:42:59.387  - info: radar2.0 (14401) debug: ChangeState ack:true of Galaxy-S9._here = true
                  2020-11-20 22:42:59.705  - info: radar2.0 (14401) debug: Same external IP address 94.31.101.137
                  2020-11-20 22:42:59.731  - info: radar2.0 (14401) debug: ChangeState ack:true of _ExternalNetwork = 94.31.101.137
                  2020-11-20 22:42:59.733  - info: radar2.0 (14401) Adapter identified macs: (12:34:56:78:90:12,c8:0e:14:02:51:df,24:18:1d:dd:9d:d3), 
                  ips: (192.168.178.3,fd00::ca0e:14ff:fe02:51df,2a00:6020:23ff:6900:ca0e:14ff:fe02:51df,192.168.178.69), 
                  bts: (68:e7:c2:a6:dc:c6)
                  2020-11-20 22:42:59.736  - warn: radar2.0 (14401) adapter.objects.getObjectList is deprecated, and will be removed in the future. Please use adapter.getObjectList/Async. Report this to Developer!
                  2020-11-20 22:43:00.977  - info: radar2.0 (14401) will scan UWZ with code UWZDE67258 every 120 minutes
                  2020-11-20 22:43:00.983  - info: radar2.0 (14401) radar2 found 2 devices in config (Fritzbox,Galaxy-S9)
                  2020-11-20 22:43:00.984  - info: radar2.0 (14401) radar2 set use of noble(true), doArp("-lgq --retry=6 --timeout=500" on eth0), btid(0) and doUwz(UWZDE67258,120,0,de,true).
                  2020-11-20 22:43:01.005  - info: radar2.0 (14401) debug: radar2 found uIP's: []
                  2020-11-20 22:43:01.098  - info: radar2.0 (14401) UWZ found the following (changed) warnings: No warnings
                  2020-11-20 22:43:01.119  - info: radar2.0 (14401) debug: ChangeState ack:true of _UWZ = No warnings
                  2020-11-20 22:43:12.857  - info: radar2.0 (14401) debug: arp-scan -lgq --retry=6 --timeout=500 --interface=eth0 executed for 11.843 seconds and returned 14 hosts.
                  2020-11-20 22:43:12.900  - info: radar2.0 (14401) debug: ChangeState ack:true of Fritzbox._lastHere = 2020-11-20@22:43:12
                  2020-11-20 22:43:13.106  - info: radar2.0 (14401) debug: ChangeState ack:true of Galaxy-S9._lastHere = 2020-11-20@22:43:13
                  2020-11-20 22:43:25.093  - info: radar2.0 (14401) debug: ChangeState ack:true of _nHere = 2
                  2020-11-20 22:43:25.095  - info: radar2.0 (14401) debug: radar2 found here (Fritzbox, Galaxy-S9)
                  2020-11-20 22:43:25.097  - info: radar2.0 (14401) debug: and who here (Fritzbox, Galaxy-S9)
                  2020-11-20 22:43:25.098  - info: radar2.0 (14401) debug: and not here ()
                  2020-11-20 22:43:25.130  - info: radar2.0 (14401) debug: ChangeState ack:true of _allHere = Fritzbox, Galaxy-S9
                  2020-11-20 22:43:25.155  - info: radar2.0 (14401) debug: ChangeState ack:true of _notHere = 
                  2020-11-20 22:43:25.172  - info: radar2.0 (14401) debug: ChangeState ack:true of _isHere = Fritzbox, Galaxy-S9
                  2020-11-20 22:43:25.180  - info: radar2.0 (14401) debug: radar2 found uBT's: [ '00:c2:4c:60:90:bb', '00:c3:f4:e5:f0:b5', '09:a0:42:18:16:28', '0f:04:e3:f0:72:09', '24:09:11:d7:56:47', '32:79:a9:e1:9d:b7', '41:03:60:1e:46:eb', '48:6e:76:9c:f9:77', '59:b0:61:c1:26:58', '5c:02:27:49:94:cc', '62:43:1b:9b:90:e7', '66:d3:dd:02:0b:ed', '7e:8b:4b:50:54:5c', 'a4:c1:38:72:d5:48', 'c8:69:cd:65:61:e6'
                  ]
                  2020-11-20 22:43:25.197  - info: radar2.0 (14401) debug: ChangeState ack:true of _uBTs.00:c2:4c:60:90:bb = { address: '00:c2:4c:60:90:bb', btName: 'NaN', rssi: -86, btVendor: 'Vendor N/A', by: 'noble'
                  }
                  2020-11-20 22:43:25.213  - info: radar2.0 (14401) debug: ChangeState ack:true of _uBTs.48:6e:76:9c:f9:77 = { address: '48:6e:76:9c:f9:77', btName: 'NaN', rssi: -85, btVendor: 'Vendor N/A', by: 'noble'
                  }
                  2020-11-20 22:43:25.235  - info: radar2.0 (14401) debug: ChangeState ack:true of _uBTs.32:79:a9:e1:9d:b7 = { address: '32:79:a9:e1:9d:b7', btName: 'NaN', rssi: -72, btVendor: 'Vendor N/A', by: 'noble'
                  }
                  
                  2020-11-20 22:43:25.640  - info: radar2.0 (14401) debug: ChangeState ack:true of _uIPs.192_168_178_92 = { ipAddress: '192.168.178.92', macAddress: 'dc:89:83:50:78:2f', by: 'arp', getMacVendor: 'Samsung Electronics Ltd', hosts: [ 'Galaxy-A01' ]
                  }
                  2020-11-20 22:43:25.656  - info: radar2.0 (14401) debug: ChangeState ack:true of _uIPs = ['192.168.178.107','192.168.178.108','192.168.178.109','192.168.178.32','192.168.178.62','192.168.178.77','192.168.178.92','192.168.178.93','192.168.178.97','192.168.178.98']
                  2020-11-20 22:43:25.658  - info: radar2.0 (14401) first scan took 24.651 seconds
                  2020-11-20 22:43:25.660  - info: radar2.0 (14401) will scan external network every  60  minutes
                  2020-11-20 22:43:25.997  - info: radar2.0 (14401) debug: Same external IP address 94.31.101.137
                  2020-11-20 22:43:25.999  - info: radar2.0 (14401) debug: cleanup old states...
                  2020-11-20 22:43:26.001  - warn: radar2.0 (14401) adapter.objects.getObjectList is deprecated, and will be removed in the future. Please use adapter.getObjectList/Async. Report this to Developer!
                  2020-11-20 22:43:26.354  - info: radar2.0 (14401) debug: Cleanup and delete item _uBTs.00:06:39:bf:e1:57
                  2020-11-20 22:43:26.382  - info: radar2.0 (14401) debug: Del State err: Error: Not existsat /opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:1588:72at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2999:68at /opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:93872at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)at /opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49at processTicksAndRejections (internal/process/task_queues.js:97:5)
                  2020-11-20 22:43:26.453  - info: radar2.0 (14401) debug: Cleanup and delete item _uBTs.00:12:ff:04:00:21
                  
                  
                  2020-11-20 22:43:55.604  - info: radar2.0 (14401) debug: Cleanup and delete item _uBTs.6a:ec:6d:a0:0d:c4
                  2020-11-20 22:43:55.607  - info: radar2.0 (14401) debug: Del State err: Error: Not existsat /opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:1588:72at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2999:68at /opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:93872at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)at /opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49at runMicrotasks (<anonymous>)at processTicksAndRejections (internal/process/task_queues.js:97:5)
                  2020-11-20 22:43:55.671  - info: radar2.0 (14401) debug: radar2 found uIP's: []
                  2020-11-20 22:43:55.701  - info: radar2.0 (14401) debug: Cleanup and delete item _uBTs.6a:f1:eb:ab:e7:1d
                  [
                  
                  2020-11-20 22:44:07.301  - info: radar2.0 (14401) debug: Del State err: Error: Not existsat /opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:1588:72at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2999:68at /opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:93872at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)at /opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49at runMicrotasks (<anonymous>)at processTicksAndRejections (internal/process/task_queues.js:97:5)
                  2020-11-20 22:44:07.562  - info: radar2.0 (14401) debug: Cleanup and delete item _uBTs.ff:e2:23:58:7f:de
                  2020-11-20 22:44:07.574  - info: radar2.0 (14401) debug: Del State err: Error: Not existsat /opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:1588:72at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2999:68at /opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:93872at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)at /opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49at runMicrotasks (<anonymous>)at processTicksAndRejections (internal/process/task_queues.js:97:5)
                  2020-11-20 22:44:07.612  - info: radar2.0 (14401) debug: Cleanup and delete item _uBTs.ff:ff:30:00:88:0a
                  2020-11-20 22:44:07.616  - info: radar2.0 (14401) debug: Del State err: Error: Not existsat /opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:1588:72at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2999:68at /opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:93872at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)at /opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49at runMicrotasks (<anonymous>)at processTicksAndRejections (internal/process/task_queues.js:97:5)
                  2020-11-20 22:44:07.663  - info: radar2.0 (14401) debug: Cleanup and delete item _uIPs.192_168_178_100
                  2020-11-20 22:44:07.666  - info: radar2.0 (14401) debug: Del State err: Error: Not existsat /opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:1588:72at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2999:68at /opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:93872at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)at /opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49at runMicrotasks (<anonymous>)at processTicksAndRejections (internal/process/task_queues.js:97:5)
                  2020-11-20 22:44:07.674  - info: radar2.0 (14401) debug: arp-scan -lgq --retry=6 --timeout=500 --interface=eth0 executed for 11.997 seconds and returned 14 hosts.
                  2020-11-20 22:44:07.690  - info: radar2.0 (14401) debug: ChangeState ack:true of Fritzbox._lastHere = 2020-11-20@22:44:07
                  2020-11-20 22:44:07.778  - info: radar2.0 (14401) debug: Cleanup and delete item _uIPs.192_168_178_85
                  2020-11-20 22:44:07.781  - info: radar2.0 (14401) debug: Del State err: Error: Not existsat /opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:1588:72at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2999:68at /opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:93872at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)at /opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49at runMicrotasks (<anonymous>)at processTicksAndRejections (internal/process/task_queues.js:97:5)
                  2020-11-20 22:44:07.855  - info: radar2.0 (14401) debug: Cleanup and delete item info
                  2020-11-20 22:44:07.876  - info: radar2.0 (14401) debug: Del Object err: Error: Not existsat /opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:1588:72at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2999:68at /opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:93872at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)at /opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49at runMicrotasks (<anonymous>)at processTicksAndRejections (internal/process/task_queues.js:97:5)
                  2020-11-20 22:44:07.897  - info: radar2.0 (14401) Adapter initialization finished!
                  2020-11-20 22:44:07.903  - info: radar2.0 (14401) debug: ChangeState ack:true of Galaxy-S9._lastHere = 2020-11-20@22:44:07
                  2020-11-20 22:44:19.747  - info: radar2.0 (14401) debug: radar2 found here (Fritzbox, Galaxy-S9)
                  2020-11-20 22:44:19.748  - info: radar2.0 (14401) debug: and who here (Fritzbox, Galaxy-S9)
                  2020-11-20 22:44:19.749  - info: radar2.0 (14401) debug: and not here ()
                  2020-11-20 22:44:19.751  - info: radar2.0 (14401) debug: radar2 found uBT's: [ '00:c2:4c:60:90:bb', '00:c3:f4:e5:f0:b5', '09:a0:42:18:16:28', '24:09:11:d7:56:47', '32:79:a9:e1:9d:b7', '41:03:60:1e:46:eb', '45:5b:fc:c4:c5:1c', '48:6e:76:9c:f9:77', '49:88:14:6c:ad:5c', '59:b0:61:c1:26:58', '5c:02:27:49:94:cc', '62:43:1b:9b:90:e7', '66:d3:dd:02:0b:ed', '7e:8b:4b:50:54:5c', 'a4:c1:38:72:d5:48', 'c8:69:cd:65:61:e6'
                  ]
                  2020-11-20 22:44:19.768  - info: radar2.0 (14401) debug: ChangeState ack:true of _uBTs.24:09:11:d7:56:47 = { address: '24:09:11:d7:56:47', btName: 'NaN', rssi: -82, btVendor: 'Vendor N/A', by: 'noble'
                  
                  

                  Vielen Dank,

                  LG
                  Äd

                  amg_666 1 Reply Last reply Reply Quote 0
                  • amg_666
                    amg_666 @Äd last edited by

                    @Äd was sagt er wenn du den Adapter neu startest, kommt da irgendeine Warnung bzgl arp-scan?

                    Ä 1 Reply Last reply Reply Quote 0
                    • Ä
                      Äd @amg_666 last edited by

                      Hallo in die Runde,

                      @amg_666, tut mir Leid, aber ich habe nix bezüglich arp-scan gefunden.

                      Aber ich möchte noch mal auf das zurückkommen, was ich im allerersten Post schon gesagt habe:
                      Mit folgendem Befehl auf der Konsole (über Putty) wird mein Handy gefunden:

                      sudo l2ping -c 1 <meine Bluetooth-Mac>
                      pi@iobroker-raspi:~ $ sudo l2ping -c 1 <meine Bluetooth-Mac>
                      Ping: <meine Bluetooth-Mac> from <Mac des BT-Controllers auf dem PI> (data size 44) ...
                      44 bytes from <meine Bluetooth-Mac> id 0 time 8.74ms
                      1 sent, 1 received, 0% loss
                      
                      

                      Aber mit "bluetoothctl" nicht :

                      pi@iobroker-raspi:~ $ sudo bluetoothctl
                      Agent registered
                      [bluetooth]# scan on
                      Discovery started
                      

                      Nun habe ich als Test eine beliebige Mac aus dieser Liste in der Instanz des radar2-Adapters eingetragen.
                      Dabei geht dann auch tatsächlich der Wert unter Obekte auf true, s. hier:
                      671a4526-3f37-40f8-9bfa-a4e01103a49c-grafik.png

                      Aber heißt das nicht, dass der Adapter bei mir nicht auf l2ping schaut. Wie kann ich ihn dazu bringen, dass er das macht?
                      Oder was kann ich machen, dass mein Handy mit bluetoothctl gesehen wird?

                      LIebe Grüße
                      Äd

                      amg_666 Ä 2 Replies Last reply Reply Quote 0
                      • amg_666
                        amg_666 @Äd last edited by amg_666

                        @Äd said in RADAR2: Adapter läuft, findet Bluetooth des Handys nicht:

                        sudo l2ping -

                        ich vermute ein ähnliches Problem wie bei mir. Du hast auf der Konsole sudo ... eingegeben. Was passiert, wenn du ohne sudo also nur "l2ping -c 1 <IP>" eingibst. Läuft das oder gibt es einen Fehler a la keine Zugriffsberechtigung?

                        Ä 1 Reply Last reply Reply Quote 0
                        • Ä
                          Äd @amg_666 last edited by

                          Hallo @amg_666

                          interessant, aber das hat bei mir sogar gefunzt:

                          pi@iobroker-raspi:~ $ l2ping -c 1 <meine Bluetooth-Mac>
                          Ping: <meine Bluetooth-Mac> from <Mac des BT-Controllers auf dem PI> (data size 44) ...
                          44 bytes from <meine Bluetooth-Mac> id 0 time 34.61ms
                          1 sent, 1 received, 0% loss
                          pi@iobroker-raspi:~ $
                          
                          

                          Liebe Grüße
                          Äd

                          1 Reply Last reply Reply Quote 0
                          • Ä
                            Äd @Äd last edited by

                            Hallo nochmal an alle,

                            inzwischen bin ich wirklich am verzweilen. Ich überlege gar, den Radar2 wieder rauszuschmeißen, aber mir fehlt derzeit eine alternative.

                            Ich sehe eigentlich hier das Kern-Problem:

                            @Äd said in RADAR2: Adapter läuft, findet Bluetooth des Handys nicht:

                            Mit folgendem Befehl auf der Konsole (über Putty) wird mein Handy gefunden:

                            sudo l2ping -c 1 <meine Bluetooth-Mac>
                            pi@iobroker-raspi:~ $ sudo l2ping -c 1 <meine Bluetooth-Mac>
                            Ping: <meine Bluetooth-Mac> from <Mac des BT-Controllers auf dem PI> (data size 44) ...
                            44 bytes from <meine Bluetooth-Mac> id 0 time 8.74ms
                            1 sent, 1 received, 0% loss
                            
                            

                            Aber mit "bluetoothctl" nicht :

                            pi@iobroker-raspi:~ $ sudo bluetoothctl
                            Agent registered
                            [bluetooth]# scan on
                            Discovery started
                            

                            Nun habe ich als Test eine beliebige Mac aus dieser Liste in der Instanz des radar2-Adapters eingetragen.
                            Dabei geht dann auch tatsächlich der Wert unter Obekte auf true, s. hier:
                            671a4526-3f37-40f8-9bfa-a4e01103a49c-grafik.png

                            Aber heißt das nicht, dass der Adapter bei mir nicht auf l2ping schaut. Wie kann ich ihn dazu bringen, dass er das macht?
                            Oder was kann ich machen, dass mein Handy mit bluetoothctl gesehen wird?

                            Den Test, dass ich auf der Konsole (unter Putty) "l2ping -c 1 <IP>" ohne sudo funzt, habe ich ja auch schon gemacht.

                            Liebe Grüße
                            Äd

                            amg_666 1 Reply Last reply Reply Quote 0
                            • amg_666
                              amg_666 @Äd last edited by

                              @Äd Keine Ahnung was da schief läuft, aber guck mal hier, da hat jemand ein ähnliches Problem was wohl an irgendwelchen Rechten in der bluetooth.conf lag. Vielleicht kriegst du es ja damit gefixt...

                              Ä 1 Reply Last reply Reply Quote 0
                              • Ä
                                Äd @amg_666 last edited by

                                Hallo @amg_666

                                vielen Dank für für deine Antwort.
                                (By the way: Hätte gestern schon geantwortet, aber hatte irgendwie probleme mich im Forum einzuloggen, aber jetzt gehts wieder, juhu)

                                Ja, könnte das gleiche Problem sein. Muss das aber alles nochmal in Ruhe lesen. Im Momet fühle ich fühle ich mich damit noch ziemlich überfordert.

                                Liebe Grüße
                                Äd

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  Jan1 @Äd last edited by

                                  @Äd
                                  ich habe gerade das selbe Problem hier und auch kein Plan wieso das nicht geht zumal mein Beelink das Handy über BT scannen kann.

                                  Hatte aber mal zum Testen, ob einer Erkennung über die MAC überhaupt funktioniert und dazu die MAC des WLAN vom Handy eingetragen, wird erkannt, aber allerdings genau so schnell wieder vergessen, was ein Anwesenheitserkennung über die MAC des BT, selbst wenn die mal gescannt werden könnte wohl eh nicht den erhofften Zuverlässigkeitsgrad hätte 😉

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

                                    ist das Hier vllt ein Hinweis

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      Jan1 @crunchip last edited by

                                      @crunchip
                                      Oh muss ich mir mal genauer ansehen, da man hier wohl das Handy per BT mit dem Adapter koppeln muss. Alles bisschen spartanisch beschrieben und setzt viel Grundkenntnis voraus.

                                      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

                                      1.1k
                                      Online

                                      31.6k
                                      Users

                                      79.6k
                                      Topics

                                      1.3m
                                      Posts

                                      anwesenheitserkennung blueetooth radar2 adapter samsung s9
                                      5
                                      17
                                      673
                                      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