Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. hygrometer (luftfeuchte) - hilfe bei integration

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    hygrometer (luftfeuchte) - hilfe bei integration

    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      x-traxion @liv-in-sky last edited by x-traxion

      @liv-in-sky weil ich den nicht mehr hatte.
      Habe auf allen die Custom Firmware drauf. Hätte ich vielleicht dazu erwähnen sollen:)
      Da dort aber ein Key drin stehen muss habe ich einfach 32x die 0 genommen. Sollte also nicht das Problem sein. Ich werde es aber mal testen.

      Ich vermute ich weiß woran es lag.
      Kann es sein dass sich die Custom FW zurück setzt sobald man die Batterie raus macht?
      Das würde dann auch den Advertising Type auf Custom setzten statt auf Mi Like.
      Nachdem ich jetzt den betroffenen Sensor neu geflasht habe ging er. Als ich die Batterie entfernt und neu eingesetzt habe hat er mir auch wieder den Batteriezustand angezeigt und keine Werte mehr geschrieben. Wieder den Advertising Type auf Mi Like gestellt ging wieder alles.

      Ist es eigentlich normal, dass wenn ich im ESPHome auf MCU1 auf Logs klicke er mir auch die Einträge von MCU 2 anzeigt?

      OpenSourceNomad 1 Reply Last reply Reply Quote 0
      • OpenSourceNomad
        OpenSourceNomad Most Active @x-traxion last edited by OpenSourceNomad

        @x-traxion said in hygrometer (luftfeuchte) - hilfe bei integration:

        Wofür ist bei den Sensoren eigentlich der Eintrag id?

        Di id bei esphome ist rein intern und optional. Damit kann man schöne Sachen machen wie z.B. eine Tabupunktberechnung oder die absolute Luftfeuchtigkeit und zwar direkt auf dem ESP:

        #badezimmer      
          - platform: xiaomi_lywsd03mmc
            mac_address: "A4:C1:38:AF:9A:89"
            bindkey: "d8767f017a812bef51bb64789a9fa5a3"
            temperature:
              name: "eg_badezimmer_temp"
              id: no3temperature
            humidity:
              name: "eg_badezimmer_humid"
              id: no3humidity
            battery_level:
              name: "eg_badezimmer_batt_lvl"
        

        kannst du dann ganz einfach mittels template sensor erweitern:

          - platform: template
            name: "Badezimmer absolute Luftfeuchtigkeit"
            lambda: |-
              const float mw = 18.01534; 	// molar mass of water g/mol
              const float r = 8.31447215; 	// Universal gas constant J/mol/K
              return (6.112 * powf(2.718281828, (17.67 * id(no3temperature).state) / (id(no3temperature).state + 243.5)) * id(no3humidity).state * mw) / ((273.15 + id(no3temperature).state) * r); // in grams/m^3
            unit_of_measurement: g/m³
            icon: 'mdi:water'
        
          - platform: template
            name: "Badezimmer Taupunkt"
            lambda: return (243.5*(log(id(no3humidity).state/100)+((17.67*id(no3temperature).state)/(243.5+id(no3temperature).state)))/(17.67-log(id(no3humidity).state/100)-((17.67*id(no3temperature).state)/(243.5+id(no3temperature).state))));
            unit_of_measurement: °C
            icon: 'mdi:thermometer-alert'
        

        und schon hast du immer auch die absolute Luftfeuchtigkeit und den Taupunkt 🎉

        Kann es sein dass sich die Custom FW zurück setzt sobald man die Batterie raus macht?
        Das würde dann auch den Advertising Type auf Custom setzten statt auf Mi Like.

        Das ist (leider) der Fall, ja. Musst dir selber deine binary bauen um das advertising type dauerhauft auf mi like zu haben. Gibt aber inzwischen auch eine neue beta von esphome die den advertising type custom unterstützt. Nächste Woche sollte auch esphome 1.16 (stable) erscheinen, da dürfte das dann natürlich auch drin sein.

        Ist es eigentlich normal, dass wenn ich im ESPHome auf MCU1 auf Logs klicke er mir auch die Einträge von MCU 2 anzeigt?

        Kommt ganz auf das logging an. Bei OTA logging wird immer nur das "korrekte" ausgeworfen. Wenn du allerdings das logging über ein lokales serial logging auswählst wird dir das immer angezeigt, egal welches Gerät da angesteckt ist bzw. egal welches du ausgewählt hast.

        Ich tippe also das dein MCU 2 am lokalen serial (via usb?) hängt und du kein OTA logging ausgewählt hast 😉

        X 1 Reply Last reply Reply Quote 0
        • X
          x-traxion @OpenSourceNomad last edited by

          Sorry, irgendwie hat die Benachrichtigung für den Thread hier nicht funktioniert.

          @opensourcenomad

          und schon hast du immer auch die absolute Luftfeuchtigkeit und den Taupunkt 🎉

          Werde ich gleich mal einbauen 🙂 Danke

          Das ist (leider) der Fall, ja. Musst dir selber deine binary bauen um das advertising type dauerhauft auf mi like zu haben. Gibt aber inzwischen auch eine neue beta von esphome die den advertising type custom unterstützt. Nächste Woche sollte auch esphome 1.16 (stable) erscheinen, da dürfte das dann natürlich auch drin sein.

          Ok, dann warte ich mal bis die 1.16 live ist und versuche es damit.
          Dann wäre das Problem gelöst.

          Ich tippe also das dein MCU 2 am lokalen serial (via usb?) hängt und du kein OTA logging ausgewählt hast 😉

          Und genau das ist nicht der Fall. Beide MCUs hängen jetzt nur noch am WLAN und ich frage das logging über OTA an MCU2 ab und sehe ebenfalls die Einträge der ersten MCU.
          UG+EG hängt auf MCU1
          OG+DG auf MCU2

          Starte ich das logging an MCU2 sehe ich zB:

          [15:11:02][D][xiaomi_ble:300]: Got Xiaomi LYWSD03MMC (A4:C1:38:65:4C:DF):
          [15:11:02][D][xiaomi_ble:303]:   Temperature: 16.8°C
          [15:11:02][D][xiaomi_ble:306]:   Humidity: 49.0%
          [15:11:02][D][sensor:092]: 'ug_waschkueche_temp': Sending state 16.80000 °C with 1 decimals of accuracy
          [15:11:02][D][sensor:092]: 'ug_waschkueche_humid': Sending state 49.00000 % with 0 decimals of accuracy
          

          und die Waschküche hängt 100%ig an der ersten MCU im EG

          @liv-in-sky

          ich glaube das senden der daten hängt mit dem mqtt zusammen - also die kleinen bluetooth jungs senden garnicht sondern der esp mit mqtt - bin mir da aber nicht sicher

          Also die Jungs senden definitiv öfters als alle 10 Minuten.
          Der Sensor in der Waschküche hat in 4 Tagen 7% Batterie verloren.
          So halten die Dinger auf keinen Fall ein Jahr.

          Dann muss ich mir vermutlich doch selbst ne binary bauen, da bei der Custom FW der standardwert ja auf 60 Sekunden liegt.
          Wobei laut log sogar alle 30 Sekunden etwas passiert.

          liv-in-sky 1 Reply Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @x-traxion last edited by

            @x-traxion

            wenn ich meine batterien ansehe glaube ich auch, dass die kein jahr halten - kann das an irgendwelchen einstellungen liegen. falls du da eine lösung findest: bitte posten

            habe mal im video gepostet - vielleicht antwortet er ja

            https://www.youtube.com/watch?v=NXKzFG61lNs&feature=youtu.be&t=983s

            X 1 Reply Last reply Reply Quote 0
            • X
              x-traxion @liv-in-sky last edited by

              @liv-in-sky danke für den Link.
              Hab den Post schon gelesen und habe jetzt mal alle im UG+EG mit der neuen Firmware geflasht. Die behebt auch das "Problem" dass die Einstellungen nicht gespeichert werden wenn man die Batterie raus nimmt.

              Ich werde die im UG+EG jetzt mal mit den im OG+DG vergleichen.
              Mal schauen was dabei raus kommt 🙂

              liv-in-sky 1 Reply Last reply Reply Quote 1
              • liv-in-sky
                liv-in-sky @x-traxion last edited by

                @x-traxion wußte garnicht, dass es eine neue version gibt - bitte um feedback, wenn nach dem flashen etwas positives rauskommt

                X 1 Reply Last reply Reply Quote 0
                • X
                  x-traxion @liv-in-sky last edited by

                  @liv-in-sky ist eine angepasste Version von einem Russen.
                  Bis jetzt bin ich schonmal positiv überrascht was man alles einstellen kann.
                  Allein dass die Settings gespeichert werden ist Gold wert.

                  Man kann bei der Firmware auch den Namen ändern.
                  Im moment scheint er auch deutlich seltener zu senden. Vorher ca alle 30-60 Sekunden. Jetzt ca alle 120 Sekunden.

                  liv-in-sky 1 Reply Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @x-traxion last edited by

                    @x-traxion funktionirt das mit dem flashen dann genauso, wie in dem video oder nutzt du dazu ein anderes tool ?

                    X 1 Reply Last reply Reply Quote 0
                    • X
                      x-traxion @liv-in-sky last edited by x-traxion

                      @liv-in-sky
                      https://github.com/pvvx/ATC_MiThermometer
                      da gibts auch die Firmware.
                      Weiter unten bei "OTA and Custom Setup" ist dann auch der Link zum angepassten Flasher v1.6
                      https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html

                      liv-in-sky 2 Replies Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @x-traxion last edited by

                        @x-traxion
                        der ersteller des youtube videos hat mich auch dahin verwiesen - aber alle 120 sekunden ist ja auch noch etwas viel

                        1 Reply Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky @x-traxion last edited by

                          @x-traxion hi - habe jetzt erst zeitzum flashen der neun software gehabt - kapiere nicht, was da zum einstellen ist - hast du da erfahrung damit

                          X 1 Reply Last reply Reply Quote 0
                          • X
                            x-traxion @liv-in-sky last edited by

                            @liv-in-sky sorry, das mit der Benachrichtigung hier funktioniert irgendwie immer noch nicht 😕
                            Ja, hab jetzt alle meine umgeflasht auf die neue Firmware.

                            anbei ein Screenshot vom Schlafzimmersensor:
                            Flasher.jpg

                            1 Reply Last reply Reply Quote 0
                            • liv-in-sky
                              liv-in-sky @OpenSourceNomad last edited by liv-in-sky

                              @opensourcenomad

                              ich hätte mal eine bitte an dich - könntest du mir bei esphome helfen. ich habe ein 1637 segment anzeige angeschlossen und würde gerne über mqtt werte an das display senden. das überfordert mich gerade.

                              wie geht das, dass mqtt empfängt und dann den wert anzeigt

                              das habe ich - aber wie verbinde ich den empfang von mqtt mit dem schreiben des displays - im moment wird 33 ausgegeben

                              mqtt:
                                broker: 192.168.178.59
                                port: 1506
                                topic_prefix: esp7segment/sensors
                                id: mqtt_client
                              
                                 
                              
                              text_sensor:
                                  - platform: wifi_info
                                    ip_address:
                                     name: "ESP IP Address"
                                    mac_address:
                                     name: "ESP Mac Wifi Address"
                              
                              
                              display:
                                  platform: tm1637
                                  id: tm1637_display
                                  clk_pin: D6
                                  dio_pin: D5
                                  lambda: |-
                                    it.print("33");
                              
                              OpenSourceNomad 1 Reply Last reply Reply Quote 0
                              • OpenSourceNomad
                                OpenSourceNomad Most Active @liv-in-sky last edited by OpenSourceNomad

                                @liv-in-sky said in hygrometer (luftfeuchte) - hilfe bei integration:

                                wie geht das, dass mqtt empfängt

                                mittels mqtt subscribe component

                                # Example configuration entry
                                sensor:
                                  - platform: mqtt_subscribe
                                    name: "Data from topic"
                                    id: mysensor
                                    topic: the/topic
                                

                                und dann den wert anzeigt

                                via lambda das display füllen wie in der tm1637 component beschrieben:

                                      // Print a right-padded sensor value with 0 digits after the decimal
                                      it.printf("S%3.0f", id(my_sensor).state);
                                      // Result: "S 42
                                
                                liv-in-sky 1 Reply Last reply Reply Quote 1
                                • liv-in-sky
                                  liv-in-sky @OpenSourceNomad last edited by liv-in-sky

                                  @opensourcenomad ⭐ ⭐ ⭐ ⭐ ⭐

                                  vielen dank - läuft wie eine eins

                                  falls noch jmd sowas braucht - hier ein "yaml" für anzeige eines mqtt wertes auf einem TM1637-7-segment-display

                                  sensor:
                                   - platform: mqtt_subscribe
                                     name: "Data from topic"
                                     id: mysensor
                                     topic: esp7segment/value
                                    
                                  mqtt:
                                   broker: 192.168.178.59
                                   port: 1506
                                   topic_prefix: esp7segment/sensors
                                   id: mqtt_client
                                   on_message:
                                    - topic: esp7segment/value
                                      then:
                                         - logger.log: id(mysensor).state
                                  
                                  
                                  text_sensor:
                                     - platform: wifi_info
                                       ip_address:
                                        name: "ESP IP Address"
                                       mac_address:
                                        name: "ESP Mac Wifi Address"
                                  
                                  
                                  display:
                                     platform: tm1637
                                     id: tm1637_display
                                     clk_pin: D3
                                     dio_pin: D5
                                     lambda: |-
                                        it.printf("%3.0f ", id(mysensor).state);
                                  
                                  

                                  FredF 1 Reply Last reply Reply Quote 1
                                  • FredF
                                    FredF Most Active Forum Testing @liv-in-sky last edited by

                                    @liv-in-sky
                                    Da ich mich auch gerade mit den Xiaomis und ESPhome beschäftige, habe ich mir den neuen ESPhome Adapter von @Dutchman installiert...
                                    Funktioniert schon super und kommt mir gelegen, da ich kein MQTT betreiben will.
                                    https://github.com/iobroker-community-adapters/ioBroker.esphome

                                    liv-in-sky OpenSourceNomad 3 Replies Last reply Reply Quote 2
                                    • liv-in-sky
                                      liv-in-sky @FredF last edited by

                                      @fredf danke - kenn ich nicht - werd ich mir absehen

                                      1 Reply Last reply Reply Quote 0
                                      • liv-in-sky
                                        liv-in-sky @FredF last edited by

                                        @fredf

                                        @Dutchman

                                        kann im forum nix finden und auch leider nicht installieren - code 25

                                        FredF 1 Reply Last reply Reply Quote 0
                                        • FredF
                                          FredF Most Active Forum Testing @liv-in-sky last edited by

                                          @liv-in-sky sagte in hygrometer (luftfeuchte) - hilfe bei integration:

                                          kann im forum nix finden und auch leider nicht installieren - code 25

                                          Stimmt im Forum finde ich auch nichts, aber auf discord hat @Dutchman das gepostet.

                                          code 25

                                          kA, bei mir hat die Installation geklappt 🤔

                                          liv-in-sky 1 Reply Last reply Reply Quote 0
                                          • liv-in-sky
                                            liv-in-sky @FredF last edited by liv-in-sky

                                            @fredf über "katze" und link von github ?

                                            $ ./iobroker url "https://github.com/iobroker-community-adapters/ioBroker.esphome"
                                            Info: Can not get current GitHub commit, we remember master branch only. Status: 422 (No commit found for SHA: master)
                                            install https://github.com/iobroker-community-adapters/ioBroker.esphome/tarball/master
                                            NPM version: 6.14.8
                                            npm install https://github.com/iobroker-community-adapters/ioBroker.esphome/tarball/master --loglevel error --prefix "/opt/iobroker" (System call)
                                            npm 
                                            ERR! code E404
                                            npm 
                                            ERR! 404 Not Found - GET https://codeload.github.com/iobroker-community-adapters/ioBroker.esphome/legacy.tar.gz/masternpm ERR! 404 npm ERR! 404  'https://github.com/iobroker-community-adapters/ioBroker.esphome/tarball/master' is not in the npm registry.npm 
                                            ERR! 404 Your package name is not valid, because npm 
                                            ERR! 404  1. name can only contain URL-friendly charactersnpm ERR!
                                            404  2. name can no longer contain capital lettersnpm ERR! 404 npm ERR! 404
                                            Note that you can also install from anpm ERR! 404
                                            tarball, folder, http url, or git url.
                                            
                                            npm ERR! A complete log of this run can be found in:npm ERR!     /home/iobroker/.npm/_logs/2021-02-25T14_44_32_777Z-debug.log
                                            ERROR: host.iobroker59 Cannot install https://github.com/iobroker-community-adapters/ioBroker.esphome/tarball/master: 1
                                            ERROR: process exited with code 25
                                            

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            786
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            hygrometer luftfeuchtigkeit
                                            13
                                            112
                                            9585
                                            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