Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. Xiaomi Temp and Humidity Monitor 2 + BLE Adapter

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Xiaomi Temp and Humidity Monitor 2 + BLE Adapter

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

      Hier mal mein Blockly, Adapter wurde schon 2x damit neugestartet:

      
      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="timeout" id="BLE-Adapter-Neustart">BLE-Adapter-Neustart</variable>
        </variables>
        <block type="on_ext" id="mx#5OD`.VyZDq=4Up2tj" x="163" y="113">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="H+w#Kn139V0tWHK/uXQi">
              <field name="oid">ble.0.a4:c1:38:57:74:74.rssi</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="timeouts_cleartimeout" id="F1FmC9B1IO7ZrftLA9vB">
              <field name="NAME">BLE-Adapter-Neustart</field>
              <next>
                <block type="timeouts_settimeout" id="uqqZ#KU1Q%b_tt5ZujXy">
                  <field name="NAME">BLE-Adapter-Neustart</field>
                  <field name="DELAY">5</field>
                  <field name="UNIT">min</field>
                  <statement name="STATEMENT">
                    <block type="control" id="V#U6WMi[{+2(-4Sbtbse">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">system.adapter.ble.0.alive</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="0{:#OFY4|?Y7|+/Uv%PS">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="GvzYu^KLA0BJgSuONBC`">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                          <field name="OID">system.adapter.ble.0.alive</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">10</field>
                          <field name="UNIT">sec</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="Jr%V,C;g(5gP*9!gZQik">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                          <next>
                            <block type="timeouts_cleartimeout" id="$c#~oXyhd{;1,$m`^4:b">
                              <field name="NAME">BLE-Adapter-Neustart</field>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      

      IMG_2187.jpeg

      1 Reply Last reply Reply Quote 0
      • D
        Dezi @SBorg last edited by

        @sborg

        Paketlisten werden gelesen... Fertig
        Abhängigkeitsbaum wird aufgebaut.
        Statusinformationen werden eingelesen.... Fertig
        libcap2-bin ist schon die neueste Version (1:2.25-2).
        libudev-dev ist schon die neueste Version (241-7~deb10u9+rpi1).
        bluetooth ist schon die neueste Version (5.50-1.2~deb10u3+rpt1).
        bluez ist schon die neueste Version (5.50-1.2~deb10u3+rpt1).
        libbluetooth-dev ist schon die neueste Version (5.50-1.2~deb10u3+rpt1).
        0 aktualisiert, 0 neu installiert, 0 zu entfernen und 11 nicht aktualisiert.
        

        Davon hab ich scheinbar auch schon alle

        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Dezi last edited by

          @dezi sagte in Xiaomi Temp and Humidity Monitor 2 + BLE Adapter:

          11 nicht aktualisiert.

          Die hast du aber nicht. Ran da.

          D 1 Reply Last reply Reply Quote 0
          • D
            Dezi @Thomas Braun last edited by

            @thomas-braun
            Die hab ich im Anschluss direkt aktualisiert. Denke eher das liegt daran das ich Treiber nicht gestartet bekomme laut iobroker. Bluetooth an sich in an und findet auch Geräte

            Screenshot 2023-10-16 213755.png

            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Dezi last edited by

              @dezi

              rfkill
              

              sagt?

              D 1 Reply Last reply Reply Quote 0
              • D
                Dezi @Thomas Braun last edited by

                @thomas-braun

                ID TYPE      DEVICE      SOFT      HARD
                 0 wlan      phy0     blocked unblocked
                 1 bluetooth hci0   unblocked unblocked
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Dezi last edited by

                  @dezi

                  hcitool dev
                  

                  Und wie schaut ein Neusart des Adapters im Log File aus?

                  iob logs --watch | uniq
                  

                  und dann den Adapter Starten.

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    Dezi @Thomas Braun last edited by

                    @thomas-braun

                    Devices:
                            hci0    B8:27:EB:18:90:A9
                    

                    Logfile sag das selbe wie im ersten Post

                    2023-10-16 22:07:02.491  - error: ble.0 (1765) Cannot find module '../build/Release/bluetooth_hci_socket.node'
                    Require stack:
                    - /opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js
                    - /opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/index.js
                    - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js
                    - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
                    - /opt/iobroker/node_modules/@abandonware/noble/lib/resolve-bindings.js
                    - /opt/iobroker/node_modules/@abandonware/noble/with-custom-binding.js
                    - /opt/iobroker/node_modules/@abandonware/noble/index.js
                    - /opt/iobroker/node_modules/iobroker.ble/build/scanProcess.js
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Dezi last edited by

                      @dezi sagte in Xiaomi Temp and Humidity Monitor 2 + BLE Adapter:

                      Da wird das Modul nicht gebaut, würde ich sagen.

                      iob diag
                      

                      sagt?

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        Dezi @Thomas Braun last edited by

                        @thomas-braun said in Xiaomi Temp and Humidity Monitor 2 + BLE Adapter:

                        iob diag

                        Scheinbar wurde Nodejs nicht richtig installiert

                        Nodejs-Installation:    /usr/bin/nodejs         v18.17.1
                                                /usr/local/bin/node             v18.17.1
                                                /home/pi/.npm/bin/npm           10.2.0
                                                /home/pi/.npm/bin/npx           10.2.0
                                                /usr/bin/corepack       0.18.0
                        
                        Recommended versions are nodejs 18.18.2 and npm 9.8.1
                        *** nodejs is NOT correctly installed ***
                        Wrong installation path detected. This needs to be fixed.
                        

                        Werde heute abend mal versuchen das zu fixen.

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Dezi last edited by

                          @dezi

                          Mach es mit dem neuen Kommando.

                          iob nodejs-update
                          

                          Das zieht dir das gerade.

                          1 Reply Last reply Reply Quote 0
                          • D
                            Dezi last edited by Dezi

                            @thomas-braun said in Xiaomi Temp and Humidity Monitor 2 + BLE Adapter:

                            iob nodejs-update

                            Danke, das problem ist weg

                            Da sind weitere die nicht so gesund aussehen. Habe einen fehler bekommen als ich den ganzen log posten wollte, daher stückchenweise

                            Edit: Klappt jetzt mit dem ganzen log

                            Edit2: npm hatte da noch ein Problem wa sin den griff bekommen habe. Ich bekomme jetzt über 20 Bluetooth-Geräte angezeigt obwohl ich bei Aktive Plugns Xiamo eingegeben habe, wie kann ich das eingerenzen.

                            Oder geht das nicht?

                            Und meine Thermometer die dort angezeigt werden, haben kein verwertbaren Daten stehen

                            SBorg 1 Reply Last reply Reply Quote 0
                            • SBorg
                              SBorg Forum Testing Most Active @Dezi last edited by

                              @dezi sagte in Xiaomi Temp and Humidity Monitor 2 + BLE Adapter:

                              Ich bekomme jetzt über 20 Bluetooth-Geräte angezeigt obwohl ich bei Aktive Plugns Xiamo eingegeben habe, wie kann ich das eingerenzen.

                              Das kommt noch davon, dass du wohl "Neue Geräte suchen" aktiviert hast. Da wird alles was BT ist entdeckt. Was dich nicht interessiert/von dir ist, einfach löschen. Kommt aber mit der "Neue Geräte suchen" - Aktivierung wieder bzw. dann ev. andere. Verhindern lässt sich das nicht.
                              Mittels das Plugin wird dann bestimmt, dass bei einem Datenstring "fe95..." (war es glaube ich) die Daten im Xiaomi-Format vorliegen und dann bspw an Stelle 14-18 (absolut geraten 😉 ) vom Datenstring die Temperatur übertragen wurde.
                              Ohne Plugin müsstest du von den Thermometern zumindest den "fe95"-Datenstring bekommen.

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                Dezi @SBorg last edited by

                                @sborg
                                Die Einstellungen sehen zur Zeit so aus
                                Screenshot 2023-10-16 213755.png
                                Screenshot 2023-10-18 200458.png

                                SBorg 1 Reply Last reply Reply Quote 0
                                • SBorg
                                  SBorg Forum Testing Most Active @Dezi last edited by

                                  @dezi Zwei mögliche Dinge:

                                  • ich weiß nicht ob es case sensitiv ist, aber schreibe mal "xiaomi" klein
                                  • entferne mal das Komma am Ende, du hast ja nur ein Plugin. Ev. stört ihn dies

                                  Soweit sieht dann aber alles in Ordnung aus.

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    Dezi last edited by

                                    Groß-/Kleinschreibung und mit dem Komma waren so die letzten versuche die ich unternommen hatte.

                                    2/3 hab ich beim ersten mal in der Xiaomi Home App verbunden und aktuallisiert, den dritten hab ich über Telink geflasht und von dem bekomme ich alle nötigen Daten. DIe 2 anderen bekomm ich aufgrund der neuen Firmware nicht geflasht

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

                                      @dezi
                                      Wann hast du die gekauft ? Ich wollte mir nun 4 dazu bestellen . Mein erster Sensor war vor 3 Wochen gekommen . Wenn nun neue im Umlauf sind, weißt du, woran ich diese erkenne ?

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        Dezi @smarthome2020 last edited by

                                        @smarthome2020
                                        Müsste im selben Zeitraum gewesen sein, bei Ali vor run 4 Wochen bestellt und vor 2-3 Wochen erhalten. Ob es eine weitere Version von den eckigen gibt, weiß ich nicht.

                                        Ich vermute eher das es Software seitig ist und du deshalb erstmal nicht updaten solltest

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

                                          @dezi
                                          Hast du die an die Xiami-App gekoppelt? Ich hab meins sofort geflasht.

                                          D 1 Reply Last reply Reply Quote 0
                                          • D
                                            Dezi @smarthome2020 last edited by

                                            @smarthome2020 2 von 3 hab ich dort gekoppelt und ein Update gemacht, den 3. nicht und den konnte ich über Telink auch flashen

                                            S 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            698
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            ble ble adapter sensor xiaomi
                                            50
                                            247
                                            53439
                                            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