Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. BLE Adapter / Ruuvi-Tag

    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

    BLE Adapter / Ruuvi-Tag

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

      PS: sollte da nicht stehen plugin ruuvi-tag is handling cd:bc:35:a4:33:e0, statt plugin _default is handling cd:bc:35:a4:33:e0?

      2019-09-02 20:43:56.337 - debug: ble.0 plugin _default is handling cd:bc:35:a4:33:e0
      
      AlCalzone 1 Reply Last reply Reply Quote 0
      • AlCalzone
        AlCalzone Developer @alexhk last edited by

        @alexhk Das liegt wohl daran, dass das Plugin nicht erkennt dass es für das Datenpaket zuständig ist.

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

          @AlCalzone Vielen Dank.

          Kann ich da auf meiner Seite was fixen?

          Den betroffenen Code habe ich gefunden, aber bis auf ein paar Debug Ausgaben einzubauen kann ich im Moment nicht viel machen (programmieren ist bei mir lange her).

          AlCalzone 3 Replies Last reply Reply Quote 0
          • AlCalzone
            AlCalzone Developer @alexhk last edited by

            @alexhk Nene, ich muss da ein bisschen mit rumspielen.

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

              @alexhk Es scheint dass deine Tags Data Format 5 nutzen, welches im Adapter fehlerhaft implementiert ist. Dank deines Tips mit RuuviCollector bin ich auf folgenden Code gestoßen:
              https://github.com/Scrin/ruuvitag-common-java/blob/master/src/main/java/fi/tkgwf/ruuvi/common/parser/impl/DataFormat5Parser.java

              Das muss ich jetzt nur noch übernehmen...

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

                @alexhk Kannst du bitte mal Version 0.8.4 probieren?

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

                  @AlCalzone

                  Hab ich gemacht und voila wir haben Daten, siehe Bild : ) Many thanks!

                  Was mir noch auffällt:

                  • Ich muss Settings/"Allow creation of devices without service data" selektieren, sonst kommt nichts an.
                  • Sollten die RuuviTags mit Namen auftauchen in Objects? Ich hatte vor ein paar Tagen ein Tutorial gesehen, da war z.B. der Xiaomi Flower Sensor mit dem namen "Flower Care" gelistet. Im Source hatte ich auch gesehen, dass du den Name und Description setzt (Zeile 17).
                  • Ich hatte heute Morgen nach ein paar Stunden Abwesenheit 300+ Mac Adressen in Objects, gäbe es eine Möglichkeit irgendwo einen Filter zu Erstellen (oder eine Whitelist) damit alles was nicht von Interesse ist ignoriert wird? Oder ist dafür Settings/"Monitored services, * for all services" gedacht?

                  Hier noch ein oder zwei Minuten mit Debug Log:
                  https://pastebin.com/fGysUQBQ

                  ca58c738-6e66-4959-8103-b0f6fbef1bab-image.png

                  Nochmals Danke!

                  AlCalzone 2 Replies Last reply Reply Quote 0
                  • AlCalzone
                    AlCalzone Developer @alexhk last edited by

                    @alexhk sagte in BLE Adapter / Ruuvi-Tag:

                    Ich muss Settings/"Allow creation of devices without service data" selektieren, sonst kommt nichts an.

                    Ok das ist scheiße weil dann dein Problem 3 auftritt. Nehm den Haken mal raus, ich muss da noch ne Kleinigkeit ändern...

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

                      @alexhk In Version 0.9.0 sollte es jetzt auch ohne den Haken funktionieren. Und die Tags werden standardmäßig "Ruuvi Tag" genannt. Der FlowerCare sendet selbst einen Namen, daher ist das dort nicht nötig.

                      alexhk 1 Reply Last reply Reply Quote 0
                      • alexhk
                        alexhk @AlCalzone last edited by alexhk

                        @AlCalzone Ist installiert und funktioniert. Das geht ja richtig flott bei dir!

                        Den Haken bei "Allow creation of devices without service data" habe ich raus, aber es tauchen doch noch andere Devices auf (ich kenne mich bei BLE nicht wirklich aus, also habe keine Ahnung was so gehoert und was nicht):

                        e9507a6f-214d-4555-a67e-4a72d467cdfd-image.png

                        ac1e0988-da6b-46fd-b3b6-8a52f656c42d-image.png

                        Ich werde die Tage mal meine Logik zum Laufen bringen (z.B. Kühlung an bei Temp > x) und dann bei Gelegenheit im Ruuvi Forum posten, dass sich die Leute ioBroker mal ansehen sollen.

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

                          @alexhk sagte in BLE Adapter / Ruuvi-Tag:

                          aber es tauchen doch noch andere Devices auf

                          Kannst du die bitte mal aufklappen? Evtl muss ich noch eine Möglichkeit einbauen, dass ohne "echtes" Plugin kein Fallback auf den Standard-Parser erfolgt.

                          alexhk 1 Reply Last reply Reply Quote 0
                          • alexhk
                            alexhk @AlCalzone last edited by alexhk

                            @AlCalzone Hier mal eben neu gestartet. manufacturerData scheint es wohl bei den meisten zu geben (zumindest bei den zwei die gleich aufgetaucht sind - ich lass mal laufen).

                            555b0dd2-1682-4563-b140-16a659dd1a1c-image.png

                            1 Reply Last reply Reply Quote 0
                            • K
                              kru last edited by

                              @AlCalzone Danke für dein Ruuvi Plugin (bin gerade auf der 0.11). Leider kann ich es nicht so konfigurieren, dass nur die Ruuvis verarbeitetn werden. Wenn ich bei Dienste * eingebe, funktioniert die Datenübertragung, aber dann laufen ca. 600 Ereignisse durch.
                              ca6fd6f0-715e-4ef0-b9a8-8e9b0a5f0ec8-image.png
                              Die UUID habe ich von: ble.0.c0:fe:1c:62:36:53.services.manufacturerData

                              Hier noch das Log:

                              c889d29a-e07f-4e01-a8f3-377ec00b9269-image.png

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

                                @kru Kannst du nicht einfach Dienste leer lassen?

                                K 1 Reply Last reply Reply Quote 0
                                • K
                                  kru @AlCalzone last edited by

                                  @AlCalzone Wenn ich die Dienste leer lasse, bekomme ich keine Daten.

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

                                    @kru Ok muss ich checken. Das liegt wohl daran, dass die empfangenen Werte in manufacturerData stehen. Kannst du mir mal ein Log auf level "debug" erstellen? Bitte mit leerer Dienste-Liste.

                                    K 1 Reply Last reply Reply Quote 0
                                    • K
                                      kru @AlCalzone last edited by kru

                                      @AlCalzone Dankeschön 🙂
                                      Ich bin auf der Firmware 2.5.9 der Ruuvi-Tags (https://github.com/ruuvi/ruuvitag_fw/releases) -> RAWv2

                                      Edit: Habe gerade einen mit der Firmware 1.0.1 getestet. Der wurde gleich erkannt (evtl. liegt es am nicht mehr vorhandenen URL-mode)
                                      Hier der Log unter 2.5.9:

                                      ble.0 2020-03-31 18:12:50.574 debug (2288) system.adapter.admin.0: logging true
                                      ble.0 2020-03-31 18:10:59.093 debug (2288) system.adapter.admin.0: logging false
                                      ble.0 2020-03-31 18:08:49.402 info (2288) starting scan for services ["feaa"]
                                      ble.0 2020-03-31 18:08:49.246 info (2288) monitored services: feaa
                                      ble.0 2020-03-31 18:08:49.245 info (2288) enabled plugins: ruuvi-tag, _default
                                      ble.0 2020-03-31 18:08:49.244 info (2288) loaded plugins: Xiaomi, mi-flora, ruuvi-tag, _default
                                      ble.0 2020-03-31 18:08:49.168 info (2288) starting. Version 0.10.1 in /opt/iobroker/node_modules/iobroker.ble, node: v10.19.0
                                      ble.0 2020-03-31 18:08:48.720 debug (2288) statesDB connected
                                      ble.0 2020-03-31 18:08:48.719 debug (2288) States connected to redis: 127.0.0.1:9000
                                      ble.0 2020-03-31 18:08:48.713 debug (2288) States create System PubSub Client
                                      ble.0 2020-03-31 18:08:48.710 debug (2288) States create User PubSub Client
                                      ble.0 2020-03-31 18:08:48.705 debug (2288) Redis States: Use Redis connection: 127.0.0.1:9000
                                      ble.0 2020-03-31 18:08:48.702 debug (2288) objectDB connected
                                      ble.0 2020-03-31 18:08:48.695 debug (2288) Objects connected to redis: 127.0.0.1:9001
                                      ble.0 2020-03-31 18:08:48.684 debug (2288) Objects client initialize lua scripts
                                      ble.0 2020-03-31 18:08:48.683 debug (2288) Objects create User PubSub Client
                                      ble.0 2020-03-31 18:08:48.682 debug (2288) Objects create System PubSub Client
                                      ble.0 2020-03-31 18:08:48.677 debug (2288) Objects client ready ... initialize now
                                      ble.0 2020-03-31 18:08:48.640 debug (2288) Redis Objects: Use Redis connection: 127.0.0.1:9001
                                      host.smarthome 2020-03-31 18:08:47.671 info instance system.adapter.ble.0 started with pid 2288

                                      Eventuell hilft das weiter: https://github.com/ruuvi/ruuvi-sensor-protocols

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

                                        @kru Ok da kommt wirklich gar nix rein... Ich checke das mal.

                                        K 1 Reply Last reply Reply Quote 0
                                        • K
                                          kru @AlCalzone last edited by

                                          @AlCalzone Perfekt. Danke Dir. Falls ich irgendwie unterstützen kann, lass es mich wissen

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

                                            @kru Kannst du mal (kurz) einen Scan laufen lassen, bei dem alle Services erlaubt sind? Ich würde gerne mal im Debug-Log sehen, wie sich die Tags mit v2.5.9 zu erkennen geben.

                                            K 2 Replies 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

                                            754
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            ble adapter iobroker.ble ruuvi ruuvi-tag
                                            3
                                            29
                                            2306
                                            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