Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. Windmesser und tasmota möglich?

    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

    Windmesser und tasmota möglich?

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

      @saeft_2003

      Tasmota 9.3.1 dann Adapter Sonoff. Dort wird mir der Counter auch angezeigt und ändert sich wenn ich drehe.
      Allerdings passiert in meinem/deinem Skript nichts.

      5d955d85-8ebf-4bc0-9884-7077f6e1c658-image.png

      a36ad0ff-f036-472d-b068-db567a786fb6-image.png

      S 1 Reply Last reply Reply Quote 0
      • S
        saeft_2003 Most Active @SMS last edited by

        @sms

        Probiere es mal damit:

        <block xmlns="https://developers.google.com/blockly/xml" type="on" id="N,2u`J@hU+oF3H%bCJeR" x="162.9999999999992" y="887.0000000000001">
          <field name="OID">Object ID</field>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="variables_set" id="-t9a83!0!tDVd`=!tao5">
              <field name="VAR" id="W5!-!?p^+prEGdye/-br">rps</field>
              <value name="VALUE">
                <block type="math_arithmetic" id="1.5=!5X+TF+W;RQDg_KS">
                  <field name="OP">DIVIDE</field>
                  <value name="A">
                    <shadow type="math_number" id="D,DSBp_PM|zpK+v6h/a)">
                      <field name="NUM">1</field>
                    </shadow>
                    <block type="on_source" id="O-2[5eNvhi=l/:=EHrO{">
                      <field name="ATTR">state.val</field>
                    </block>
                  </value>
                  <value name="B">
                    <shadow type="math_number" id="#$F5yCq!Gc@)8*7kiv=K">
                      <field name="NUM">12.25</field>
                    </shadow>
                  </value>
                </block>
              </value>
              <next>
                <block type="variables_set" id="8,9YM1EyH#442roQap=m">
                  <field name="VAR" id="JA$2e3))XQ-;psrwU{1j">rps +1</field>
                  <value name="VALUE">
                    <block type="math_arithmetic" id="`.~^$(MN|sf;izV+gHSZ">
                      <field name="OP">ADD</field>
                      <value name="A">
                        <shadow type="math_number">
                          <field name="NUM">1</field>
                        </shadow>
                        <block type="variables_get" id="IIri6ED{)b}.3m5cP9F?">
                          <field name="VAR" id="W5!-!?p^+prEGdye/-br">rps</field>
                        </block>
                      </value>
                      <value name="B">
                        <shadow type="math_number" id="+.@heV(~Cq8wP}Kp}e1v">
                          <field name="NUM">1</field>
                        </shadow>
                      </value>
                    </block>
                  </value>
                  <next>
                    <block type="variables_set" id="Rz]J{?c23Q?M._r=!y~S">
                      <field name="VAR" id="4A7JTT+c=aXIj$.;y3sh">Schritt 1</field>
                      <value name="VALUE">
                        <block type="math_arithmetic" id="8LC_H;/@m^ghM0|KD(i+">
                          <field name="OP">DIVIDE</field>
                          <value name="A">
                            <shadow type="math_number" id="i=*xKz@(bm=zt-{C6HOS">
                              <field name="NUM">1.761</field>
                            </shadow>
                          </value>
                          <value name="B">
                            <shadow type="math_number">
                              <field name="NUM">1</field>
                            </shadow>
                            <block type="variables_get" id="ov%`;]dQO+%lw5tS:zxZ">
                              <field name="VAR" id="JA$2e3))XQ-;psrwU{1j">rps +1</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="oLktk{y(*E#a]UW25x4W">
                          <field name="VAR" id="UKR29JU1DG]u$lQME%T:">Schritt 2</field>
                          <value name="VALUE">
                            <block type="math_arithmetic" id="hW8T#oDkBoO;2H,8yqp.">
                              <field name="OP">MULTIPLY</field>
                              <value name="A">
                                <shadow type="math_number" id="8x^r~uq,k,,~+FcE``kn">
                                  <field name="NUM">3.013</field>
                                </shadow>
                              </value>
                              <value name="B">
                                <shadow type="math_number">
                                  <field name="NUM">1</field>
                                </shadow>
                                <block type="variables_get" id="YOA1*?k5#{v+;u4lkfnF">
                                  <field name="VAR" id="W5!-!?p^+prEGdye/-br">rps</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="b5gHPAWYFU7C55BYLB;V">
                              <field name="VAR" id="9)9dhPH~ku,gtzkQm*dU">kmh</field>
                              <value name="VALUE">
                                <block type="math_arithmetic" id="RTh}oAQ/GitV0=B@82V{">
                                  <field name="OP">ADD</field>
                                  <value name="A">
                                    <shadow type="math_number">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="variables_get" id="J[zmBFN=a+*4x=;hULej">
                                      <field name="VAR" id="4A7JTT+c=aXIj$.;y3sh">Schritt 1</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <shadow type="math_number">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="variables_get" id="^e;I0a.CuQ(];Q!q[;/_">
                                      <field name="VAR" id="UKR29JU1DG]u$lQME%T:">Schritt 2</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <next>
                                <block type="controls_if" id="|16n*hxLPCt/,j}czeiE">
                                  <value name="IF0">
                                    <block type="logic_compare" id="Y|7IHAvm`gd^A70t1OY!">
                                      <field name="OP">GTE</field>
                                      <value name="A">
                                        <block type="variables_get" id="u6`~5u4jr}@jK(mrc=80">
                                          <field name="VAR" id="9)9dhPH~ku,gtzkQm*dU">kmh</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="w;3t5${4~Z(Hns%$}y(t">
                                          <field name="NUM">5.761</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="update" id="XgO*]_cHNJy)p?*NJg^6">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">meine-datenpunkte.0.Windmesser_kmh</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_rndfixed" id="A+]q+3v{Hp:Z}vWu~Iq9">
                                          <field name="n">1</field>
                                          <value name="x">
                                            <shadow type="math_number">
                                              <field name="NUM">3.1234</field>
                                            </shadow>
                                            <block type="math_arithmetic" id="UCy@Q8tycpkB5L*6bu.k">
                                              <field name="OP">MINUS</field>
                                              <value name="A">
                                                <shadow type="math_number">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="variables_get" id="a0EHJ?B%{Ua`04+`8Zo+">
                                                  <field name="VAR" id="9)9dhPH~ku,gtzkQm*dU">kmh</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id="/ylIm)#(Fbt[5xnK|*?_">
                                                  <field name="NUM">1.761</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="controls_if" id="r,X`8Ko`H.AlQn?G6omY">
                                      <value name="IF0">
                                        <block type="logic_compare" id="`8y09*ISqX)B#cGr$!sB">
                                          <field name="OP">LT</field>
                                          <value name="A">
                                            <block type="variables_get" id="P$1:+f+DCF~:voNm{U=!">
                                              <field name="VAR" id="9)9dhPH~ku,gtzkQm*dU">kmh</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="X%H4qNq?*Sai]SJ;wHO}">
                                              <field name="NUM">5.761</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="update" id="j./g!7Y@5:D=maX=*+*!">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">meine-datenpunkte.0.Windmesser_kmh</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="65wrJE*PS=v}v=ezc}SF">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="timeouts_settimeout" id="OVb_d2mk9).9s77}ZxLm">
                                          <field name="NAME">timeout2</field>
                                          <field name="DELAY">1000</field>
                                          <field name="UNIT">ms</field>
                                          <statement name="STATEMENT">
                                            <block type="request" id="/,frJWZKwhvGcv2z6t90">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                              <field name="WITH_STATEMENT">FALSE</field>
                                              <field name="LOG"></field>
                                              <value name="URL">
                                                <shadow type="text" id="[0bbBk:0kLy|f_2lOt;u">
                                                  <field name="TEXT">http://192.168.178.148/cm?cmnd=counter1%200</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
        

        Du musst den trigger anpassen --> dein counter
        Du musst das objekt windmesser kmh anpassen
        Du musst die ip vom request anpassen damit dein counter auf 0 gesetzt wird

        SMS 1 Reply Last reply Reply Quote 0
        • SMS
          SMS @saeft_2003 last edited by

          @saeft_2003

          OK, so bekomme ich was angezeigt. Was ist da jetzt der Unterschied?

          Trigger auf "wurde geändert" oder "wurde aktualisiert"?

          Irgendwie zweifel ich auch die Anzeige an oder kann man von Hand auf fast 60km/h drehen lassen? 🤔
          Auf dem Karton steht leider nur "Wind Speed for WH2081" und "I310352".

          S 1 Reply Last reply Reply Quote 0
          • S
            saeft_2003 Most Active @SMS last edited by

            @sms

            geändert = geändert
            aktualisiert = wenn z.b. zweimal hintereinander die selbe Zahl oder Zustand aktualisiert wird

            daran kann es in deinem Fall nicht liegen. Hast du einen WH-SP-WS01? Evtl wird dein counter nicht auf null gesetzt probiere das doch mal händisch...

            SMS 1 Reply Last reply Reply Quote 0
            • SMS
              SMS @saeft_2003 last edited by SMS

              @saeft_2003

              So hieß das Teil bei Amazon:
              TOOGOO WH-SP-WS01 Anemometer Wind Geschwindigkeits Mess Ger?T Wind Geschwindigkeits Sensor Meteorologisches Instrumenten Zubeh?R für Misol Anemometer

              Wenn ich nicht drehe wird mir 0km/h angezeigt. Im Wemos steht auch 0, ebenso im iobroker.
              8111817b-8689-48fd-a7a0-a9a7d6c37f8f-image.png17b268b8-4a27-48e9-a2af-d2acdd5a2552-image.png
              790e3445-4281-4804-b06d-3d9606ecadba-image.png

              Den Trigger habe ich auf "wurde geändert" gelassen. Bei dir war "wurde aktualisiert" ausgewählt (in den vorhergehenden Blocklys).

              S 1 Reply Last reply Reply Quote 0
              • S
                saeft_2003 Most Active @SMS last edited by

                @sms

                Dann sollte das soweit passen... häng das teil doch mal raus und zeichne die kmh auf, dann kannst du schauen obs plausibel ist...

                SMS 1 Reply Last reply Reply Quote 0
                • SMS
                  SMS @saeft_2003 last edited by

                  @saeft_2003

                  Kann man das ganze auch mit einem Pi4 realisieren? Falls ja, welchen GPIO müsste ich nehmen?

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    saeft_2003 Most Active @SMS last edited by

                    @sms

                    Dabei kann ich dir nicht helfen

                    H 1 Reply Last reply Reply Quote 0
                    • H
                      hoepps2802 @saeft_2003 last edited by

                      @saeft_2003 Hi Habe dein Skript benutzt- super
                      aber in welchem Intervall misst du ? Ich will jede Minute messen und rechnen.
                      Wie ist deine Grundlage ?

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        saeft_2003 Most Active @hoepps2802 last edited by

                        @hoepps2802

                        Ändere einfach in tasmota die teleperiod. Meine steht auf 30sek.

                        AD91C144-4CE6-4AF0-B8D9-ADCB57943FA4.png

                        H 1 Reply Last reply Reply Quote 0
                        • H
                          hoepps2802 @saeft_2003 last edited by

                          @saeft_2003 danke, ich probiere es, kannst du mir die Zahlen in deiner Rechnung erklären, falls ich doch umrechnen muss

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            saeft_2003 Most Active @hoepps2802 last edited by

                            @hoepps2802

                            Auf anhieb nicht, falls Probleme auftreten dann frag einfach...

                            H 1 Reply Last reply Reply Quote 0
                            • H
                              hoepps2802 @saeft_2003 last edited by

                              @saeft_2003 ok, ich schau mal , weißt du wie viel Impulse / min welche Wind Geschwindigkeit sind?

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                saeft_2003 Most Active @hoepps2802 last edited by

                                @hoepps2802

                                Nein

                                SMS 1 Reply Last reply Reply Quote 0
                                • SMS
                                  SMS @saeft_2003 last edited by

                                  @saeft_2003

                                  Hi, die Werte vom Sensor können nicht passen. Was müsste ich denn anpassen bzw. woher bekomme ich die Daten mit denen ich rechnen müsste?
                                  Was sind denn die 12.25 bei dir?

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    saeft_2003 Most Active @SMS last edited by

                                    @sms

                                    Die 12.25 sind eigentlich laut Formel 60. Das haut aber bei mir nicht hin.

                                    Ich hab das angepasst auf 12.25 jetzt habe ich ungefähr die selbe kmh wie bei meinem homematic Windmesser.

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

                                      @saeft_2003

                                      hm ... laut Anzeige hätte ich heute morgen ca. 35km/h gehabt. Das hat sich aber nicht so angefühlt.

                                      Du misst alle 30Sekunden?
                                      Wie bekomme ich den den Durchschnitt von 5 Minuten hin?

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        saeft_2003 Most Active @SMS last edited by saeft_2003

                                        @sms

                                        Such hier im Forum nach blockly für einen gleitenden Durchschnitt, dass könnte dir helfen.

                                        Ich messe alle 30 sek

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          MatthiaB @saeft_2003 last edited by

                                          @saeft_2003 Hallo.

                                          Ich versuche mich auch gerade an einem Anemometer. Ich nutze dafür eine NodeMCU. Ich habe zwar noch keinen Widerstand und Kondensator aber wollte es mal so testen. Das könnte aber auch das Problem sein.

                                          Ich habe es mal anhand deiner Skizze verdrahtet. 3.3V ans Aneometer. 2. Kabel des Anemomter auf GND und D6. Leider verursacht das sofort einen Kurzschluss.

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            saeft_2003 Most Active @MatthiaB last edited by

                                            @matthiab

                                            Puhh so richtig helfen kann ich grad nicht. Versuch es halt mal mit nem Widerstand. Sonst muss der Fehler woanders liegen…

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            725
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            tasmota
                                            9
                                            61
                                            9046
                                            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