Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Pi 3 als Bluetooth LE Scanner (Beispielscript)

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    3.4k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

Pi 3 als Bluetooth LE Scanner (Beispielscript)

Scheduled Pinned Locked Moved Skripten / Logik
254 Posts 28 Posters 67.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ruhr70R Offline
    ruhr70R Offline
    ruhr70
    wrote on last edited by
    #244

    ja, ist mir vor einiger Zeit auch aufgefallen, dass es die Seite mit den Herstellern nicht mehr gibt.

    Das Skript lief bei mir trotzdem

    Gesendet von iPhone mit Tapatalk

    Adapter: Fritzbox, Unify Circuit
    Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

    1 Reply Last reply
    0
    • ruhr70R Offline
      ruhr70R Offline
      ruhr70
      wrote on last edited by
      #245

      ich ändere das aber mal, wenn ich wieder daheim bin

      Gesendet von iPhone mit Tapatalk

      Adapter: Fritzbox, Unify Circuit
      Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

      1 Reply Last reply
      0
      • HomoranH Do not disturb
        HomoranH Do not disturb
        Homoran
        Global Moderator Administrators
        wrote on last edited by
        #246

        @ruhr70:

        ich ändere das aber mal, wenn ich wieder daheim bin `

        Habe das dazu noch gefunden:
        ` > First we would like to thank all our loyal users, especially the ones who have donated!

        Since we have been subject to abuse of our API from several large companies and smart phone app creators who have incorrectly implemented our API, we have essentially been DDoSed for the past few months. (and our SSL cert expiring doh)

        We have tested the new site a few times during off-peak hours and the results are extremely promising! If you would like to help test our beta site, please Contact Us and let us know you are interested in the beta. We will get back to you with a link when the beta is live.

        Our current site will continue to operate without the API enabled and once the beta site goes live, all (correct) API queries will be backward compatible with the new website.

        Please feel free to contact us via our Contact Us page with any questions, improvements, requests, ideas, or anything at all you may have.

        Especially if you have any improvements or feature requests for the new site, we will accomidate and pack as many features as we can into the new site before it goes live!

        Thank you! `

        Gruß

        Rainer

        kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

        1 Reply Last reply
        0
        • HomoranH Do not disturb
          HomoranH Do not disturb
          Homoran
          Global Moderator Administrators
          wrote on last edited by
          #247

          Bin jetzt wohl irgendwie auf eine andere Seite von MacVendors gekommen.

          Danach machst du alles richtig.

          Bei korrekter Abfrage über die API kommt der Name zurück, sollte dieser nicht bekannt/zuzuordnen sein kommt ein 404.

          Das könntest du ggf. abfangen und in ein "unbekannter Hersteller" o.ä. umwandeln.

          Gruß

          Rainer

          kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

          Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

          der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

          1 Reply Last reply
          0
          • MathiasJM Offline
            MathiasJM Offline
            MathiasJ
            wrote on last edited by
            #248

            Weiß jemand, ob es schon einen Bluetooth 5.0 Stick gibt, der auch für einen Raspberry PI kompatibel ist?

            Derzeit muß ich meine Jacke an einem speziellen Platz aufhängen, damit meine Anwesenheit erkannt wird.

            Damit wäre dann, wenn ich der Spezfikation Glauben schenken darf endgültig Schluß.

            Gruß,

            Mathias

            IObroker auf dem NUC als VM.
            Da ich noch keine Aktoren habe, wird momentan via Radar nur der AB der Fritzbox ein- und ausgeschaltet.
            Welches Smarthome-System es letztendlich wird, weiß ich noch nicht. Vielleicht kommen auch nur Zigbee-Geräte ins Haus.

            1 Reply Last reply
            0
            • MathiasJM Offline
              MathiasJM Offline
              MathiasJ
              wrote on last edited by
              #249

              Hat sich erledigt!

              Ich habe den alten Raspberry PI 3B von meiner ehemaligen Raspberrymatic genommen. Das Funkmodul steckt jetzt auf einem Pi2 B und schlummert in der Schublade vor sich hin.

              Jetzt geht's Dank internem Funkmodul des PI 3B in der ganzen Wohnung.

              Gruß,

              Mathiaa

              Gesendet von meinem SM-N915FY mit Tapatalk

              IObroker auf dem NUC als VM.
              Da ich noch keine Aktoren habe, wird momentan via Radar nur der AB der Fritzbox ein- und ausgeschaltet.
              Welches Smarthome-System es letztendlich wird, weiß ich noch nicht. Vielleicht kommen auch nur Zigbee-Geräte ins Haus.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andreas.walte
                wrote on last edited by
                #250

                Hallo Zusammen

                bin Blutiger Anfänger habe mir 2 G-Tags gekauft und wollte diese als Anwesenheitserkennung nutzen

                2.) "noble" in der Javascript Instanz (Config) eintragen (ohne Anführungszeichen)

                3.) globales Skript: logs() (Post Nr. 2) in die globalen Skripte kopieren und starten

                4.) Bluetooth Scanner Skript (Post Nr. 3) in Skripte kopieren und starten

                ich kann leider damit nichts anfangen…......

                aller Anfang ist schwer erbitte um hilfe

                lg

                1 Reply Last reply
                0
                • O Offline
                  O Offline
                  oetti
                  wrote on last edited by
                  #251

                  Hallo zusammen,

                  wer von euch nutzt den BT0015 für diese Lösung? Welche Erfahrung habt ihr bzgl. der Reichweite damit gemacht?

                  Lt. Datenblatt sollen es 100m sein, was ich nicht so recht glauben kann. Die Hälfte würde mir schon reichen.

                  Gefühlt ist bei mir nach 10m Feierabend.

                  Wie sieht's bei euch aus? Habt ihr Alternativen mit Antenne, welche deutlich weiter reichen?

                  Gruß

                  oetti

                  ioBroker 4.0.10 (master) (CentOS 7 auf ESXi 6.7) | ioBroker 4.0.10 (Slave #1) VM | ioBroker 4.0.10 (Slave #2) (RPI 3)

                  1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    oetti
                    wrote on last edited by
                    #252

                    Hallo,

                    nach langem Testen habe ich noch einige Fragen zum Script, da mittlerweile gar keine Devices mehr im ioBroker angelegt werden.

                    Auf meinem Raspberry habe ich 2 Devices:

                    Devices:
                            hci1    B8:27:EB:90:0F:31
                            hci0    00:1A:7D:DA:71:0C
                    
                    

                    Wobei hci0 aus meiner Sicht der USB-Dongle (BT0015) ist:

                    hci1:   Type: Primary  Bus: UART
                            BD Address: B8:27:EB:90:0F:31  ACL MTU: 1021:8  SCO MTU: 64:1
                            UP RUNNING
                            RX bytes:98424 acl:0 sco:0 events:5223 errors:0
                            TX bytes:30993 acl:0 sco:0 commands:3154 errors:0
                    
                    hci0:   Type: Primary  Bus: USB
                            BD Address: 00:1A:7D:DA:71:0C  ACL MTU: 310:10  SCO MTU: 64:8
                            UP RUNNING
                            RX bytes:246821 acl:0 sco:0 events:9588 errors:0
                            TX bytes:34039 acl:0 sco:0 commands:3886 errors:0
                    
                    

                    EIn Scan über beide Geräte findet auch 2 v. 3 G-Tags (ca. 3m und 7m entfernt). Der 3. G-Tag (ca. 15m entfernt) wird von beiden nicht gefunden (siehe auch meine Frage einen Beitrag weiter vorher).

                    hcitool -i hci1 lescan
                    LE Scan ...
                    D8:E0:E1:A3:86:42 (unknown)
                    7C:2F:80:97:1E:CB (unknown)
                    7C:2F:80:97:1F:2A (unknown)
                    7C:2F:80:97:1F:2A Gigaset G-tag
                    07:B6:01:54:36:EA (unknown)
                    42:C5:B6:51:47:74 (unknown)
                    42:C5:B6:51:47:74 (unknown)
                    7C:2F:80:97:1E:CB Gigaset G-tag
                    D8:E0:E1:A3:86:42 [TV] Samsung 6 Series (40)
                    
                    hcitool -i hci0 lescan
                    LE Scan ...
                    7C:2F:80:97:1F:2A (unknown)
                    7C:2F:80:97:1F:2A Gigaset G-tag
                    7C:2F:80:97:1E:CB (unknown)
                    7C:2F:80:97:1E:CB Gigaset G-tag
                    42:C5:B6:51:47:74 (unknown)
                    42:C5:B6:51:47:74 (unknown)
                    7C:2F:80:97:1F:2A (unknown)
                    7C:2F:80:97:1F:2A Gigaset G-tag
                    42:C5:B6:51:47:74 (unknown)
                    42:C5:B6:51:47:74 (unknown)
                    42:C5:B6:51:47:74 (unknown)
                    42:C5:B6:51:47:74 (unknown)
                    42:C5:B6:51:47:74 (unknown)
                    42:C5:B6:51:47:74 (unknown)
                    7C:2F:80:97:1F:2A (unknown)
                    7C:2F:80:97:1F:2A Gigaset G-tag
                    
                    

                    Im ioBroker taucht mittlerweile nichts mehr davon auf. Sämtliche Instanzen habe ich mehrfach neugestartet - o.E.

                    9347_unbenannt.png

                    Folgende Fragen dazu:

                    1. Welches Bluetooth-Device wird denn vom Script abgefragt/genutzt (hic0 oder hci1 oder beide??)

                    2. Muss beim Device noch irgendetwas angegeben werden? Ich habe bis jetzt lediglich "hcitool -i hciX up" gemacht. Mehr nicht.

                    3. Siehe mein Beitrag vorher, sind 10m beim BT0015 wirklich alles?

                    4. Warum werden keine Objekte mehr angelegt?

                    Ich höre jetzt erst einmal auf. Nach müde kommt bekanntlich doof ;-)

                    Vllt fällt euch irgendetwas zu den oberen Fragen ein.

                    Danke

                    oetti

                    ioBroker 4.0.10 (master) (CentOS 7 auf ESXi 6.7) | ioBroker 4.0.10 (Slave #1) VM | ioBroker 4.0.10 (Slave #2) (RPI 3)

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      calliou1234
                      wrote on last edited by
                      #253

                      Hallo,
                      steht das script nicht mehr zum download?
                      Oder bin ich zu blöd...
                      Der Download Link verweist aus die Ausgangssseite.
                      Grüße Thomas

                      :mrgreen:

                      Psycho0verloadP 1 Reply Last reply
                      0
                      • C calliou1234

                        Hallo,
                        steht das script nicht mehr zum download?
                        Oder bin ich zu blöd...
                        Der Download Link verweist aus die Ausgangssseite.
                        Grüße Thomas

                        Psycho0verloadP Offline
                        Psycho0verloadP Offline
                        Psycho0verload
                        wrote on last edited by
                        #254

                        @calliou1234 327_bluetooth_ble_0.4.1.js

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        649

                        Online

                        32.7k

                        Users

                        82.4k

                        Topics

                        1.3m

                        Posts
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                        ioBroker Community 2014-2025
                        logo
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Home
                        • Recent
                        • Tags
                        • Unread 0
                        • Categories
                        • Unreplied
                        • Popular
                        • GitHub
                        • Docu
                        • Hilfe