Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Taupunkt ganz simpel berechnen

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Taupunkt ganz simpel berechnen

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      stimezo Forum Testing @Hamudulu last edited by

      @Hamudulu
      Denkanstoß: Suchfunktion(dewpoint)

      H 1 Reply Last reply Reply Quote 0
      • H
        Hamudulu @stimezo last edited by

        @stimezo Danke, soweit war ich schon, hab auch schon einiges gelesen, allerdings nie im Zusammenhang mit Blockly. Außerdem war das alles etwas oversized. Ich brauche nur dieses Script als Blockly und ich frag mich eben ob das möglich ist....

        paul53 1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @Hamudulu last edited by

          @Hamudulu sagte:

          als Blockly und ich frag mich eben ob das möglich ist....

          Ja. Alle Funktionen sind auch in Blockly verfügbar.

          1 Reply Last reply Reply Quote 0
          • H
            Hamudulu last edited by

            Ok das ist schon mal gut. Jetzt ganz konkret. Wie stell ich so eine Formel in Blockly dar?
            sdd = 6.1078Math.pow(10,((7.5msg1)/(237.3 + msg1)))

            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @Hamudulu last edited by

              @Hamudulu sagte:

              sdd = 6.1078Math.pow(10,((7.5msg1)/(237.3 + msg1)))

              Blockly_temp.JPG

              H 1 Reply Last reply Reply Quote 0
              • H
                Hamudulu @paul53 last edited by

                @paul53 Danke.
                Jetzt mein Problem. Wie bekomme ich die mathematischen Funktionen einzeln als blöcke? Also zb. das "mal"
                Daran scheiter ich im Moment...

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

                  Ah jetzt geht es weiter. Ich muss umstellen auf exerne Eingänge 🙂

                  BBTown paul53 2 Replies Last reply Reply Quote 0
                  • BBTown
                    BBTown @Hamudulu last edited by

                    @Hamudulu multiplizieren.gif

                    1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @Hamudulu last edited by paul53

                      @Hamudulu
                      Nach den Formeln, die ich kenne, müsste es so funktionieren:

                      Blockly_temp.JPG

                      H 1 Reply Last reply Reply Quote 0
                      • H
                        Hamudulu @paul53 last edited by

                        @paul53 Ich war auch mal fleißig und hab versucht mein script nachzustellen.
                        Bildschirmfoto 2019-11-21 um 21.45.38.png

                        Leider schreibt es mir nix in den Datenpunkt. Wo hab ich da was falsch gedacht?

                        paul53 1 Reply Last reply Reply Quote 0
                        • paul53
                          paul53 @Hamudulu last edited by

                          @Hamudulu sagte:

                          Wo hab ich da was falsch gedacht?

                          Die Berechnung von dd ist falsch. Richtig: dd = sdd * msg3 / 100

                          100 * td / 100 ist umsonst. Das, was Du möchtest ist in Runde auf 2 Nachkommastellen enthalten.

                          H 1 Reply Last reply Reply Quote 0
                          • H
                            Hamudulu @paul53 last edited by

                            @paul53 jetzt läuft es. Vielen Dank
                            Und dein Vorschlag bring ich auch noch zum laufen, scheinbar hab ich noch Fehler drin...der Unterschied zu meiner Berechnung würde mich interessieren...

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

                              Wäre das Ganze nicht einfacher und übersichtlicher in einer JS-Funktion (unter Funktionen 😉 ) aufgehoben? Da ließe sich die ganze Berechnung sogar 1:1 von Node-RED übernehmen.

                              H 1 Reply Last reply Reply Quote 0
                              • H
                                Hamudulu @SBorg last edited by

                                @SBorg Hab ich versucht, klappte mit meinen bescheidenen JS Kenntnissen nicht. Blockly funktioniert jetzt und ich hab einiges dabei gelernt...

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

                                  @Hamudulu Easy going:
                                  Bild 1.png
                                  That's all 😊
                                  Ich habe halt einen Cron-Trigger benutzt und ein Debug zur Ausgabe. Die msg1/3 habe ich so übernommen (temp + humi wären hier aber besser, weil eindeutiger) und da ich keine aktuellen Werte als Datenpunkt habe, hier fest eingestellt.
                                  In der Funktion ist dann fast kpl. dein JS-Code von Node-RED.

                                  Blockly-Export:


                                  <xml xmlns="http://www.w3.org/1999/xhtml">
                                  <variables>
                                  <variable type="" id="H)XqzXx2DSAF|Z5$AgFL">msg1</variable>
                                  <variable type="" id="?qF=cSs#f$u2;HED+TJf">msg3</variable>
                                  </variables>
                                  <block type="schedule" id="+xkHtiOO^+1Ys$7)SPz}" x="38" y="38">
                                  <field name="SCHEDULE">/5 * * * * </field>
                                  <statement name="STATEMENT">
                                  <block type="debug" id="M[-Vh_Ud6$DwyujC+0)V">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                  <shadow type="text" id="a8dY^CVd
                                  azdSo#t:I]i">
                                  <field name="TEXT">test</field>
                                  </shadow>
                                  <block type="text_join" id="hR[WD8TuSxQ?X|anBa{H">
                                  <mutation items="1"></mutation>
                                  <value name="ADD0">
                                  <block type="procedures_callcustomreturn" id="Mp1gKA/lDvDP/dwMp103">
                                  <mutation name="Taupunkt">
                                  <arg name="msg1"></arg>
                                  <arg name="msg3"></arg>
                                  </mutation>
                                  <value name="ARG0">
                                  <block type="math_number" id="8C@Q,_tg8HTF9k1ubR6H">
                                  <field name="NUM">20.01</field>
                                  </block>
                                  </value>
                                  <value name="ARG1">
                                  <block type="math_number" id="l6@4Z1?2vc!U/NZEaayO">
                                  <field name="NUM">47.5</field>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  </block>
                                  </value>
                                  </block>
                                  </statement>
                                  </block>
                                  <block type="procedures_defcustomreturn" id="Dn
                                  cOkshtMy.AA|l%RnJ" x="338" y="37">
                                  <mutation statements="false">
                                  <arg name="msg1" varid="H)XqzXx2DSAF|Z5$AgFL"></arg>
                                  <arg name="msg3" varid="?qF=cSs#f$u2;HED+TJf"></arg>
                                  </mutation>
                                  <field name="NAME">Taupunkt</field>
                                  <field name="SCRIPT">DQp2YXIgc2RkID0gMDsNCnZhciBkZCA9IDA7DQp2YXIgZWxuID0gMDsNCnZhciB0ZCA9IDA7DQoNCmlmIChtc2cxID49IDApDQp7DQogc2RkID0gNi4xMDc4Kk1hdGgucG93KDEwLCgoNy41Km1zZzEpLygyMzcuMyArIG1zZzEpKSk7DQogZGQgPSBtc2czLzEwMC4wKnNkZDsNCiBlbG4gPSBNYXRoLmxvZzEwKGRkLzYuMTA3OCk7DQogdGQgPSAyMzcuMyplbG4vKDcuNSAtIGVsbik7DQp9DQplbHNlDQp7DQogc2RkID0gNi4xMDc4Kk1hdGgucG93KDEwLCgoNy42Km1zZzEpLygyNDAuNyArIG1zZzEpKSk7DQogZGQgPSBtc2czLzEwMC4wKnNkZDsNCiBlbG4gPSBNYXRoLmxvZzEwKGRkLzYuMTA3OCk7DQogdGQgPSAyNDAuNyplbG4vKDcuNiAtIGVsbik7DQogICAgDQp9DQpyZXR1cm4gTWF0aC5yb3VuZCgxMDAqdGQpLzEwMDsNCg==</field>
                                  <comment pinned="false" h="80" w="160">Berechnet den Taupunkt</comment>
                                  </block>
                                  </xml>

                                  H 1 Reply Last reply Reply Quote 0
                                  • H
                                    Hamudulu @SBorg last edited by

                                    @SBorg das ist cool, so hab ich angefangen zu probieren. War aber nur try n error...
                                    Gut versuch ich auch mal so. Ist auch ne nette Lösung. Danke

                                    NEA1971 1 Reply Last reply Reply Quote 0
                                    • NEA1971
                                      NEA1971 @Hamudulu last edited by NEA1971

                                      @hamudulu

                                      Hallo zusammen,
                                      ich hätte hierzu ebenfalls ein kleines Problem, wo ich einen kompetenten Rat bräuchte.
                                      Ich habe insgesamt 6 Räume mit jeweils einem Xiaomi Aqara Temperatur/Luftfeuchte-Sensor. Zu den Daten möchte ich jeweils den Taupunkt errechnen lassen.
                                      Ich habe dazu das Blockly oben von Hamudulu etwas auf meinen Bedarf angepasst. Leider beschreibt mir das Script die Datenpunkte nicht - als Wert wird mir unter dem Datenpunkt "(null)" angezeigt.

                                      Hier einer der zu beschreibenden Datenpunkte:


                                      {
                                      "common": {
                                      "name": "dpwohnzimmer",
                                      "desc": "Manuell erzeugt",
                                      "role": "value.dewpoint",
                                      "type": "number",
                                      "read": true,
                                      "write": true,
                                      "def": 0
                                      },
                                      "type": "state",
                                      "_id": "0_userdata.0.Taupunkt.dpwohnzimmer",
                                      "acl": {
                                      "object": 1636,
                                      "state": 1636,
                                      "owner": "system.user.admin",
                                      "ownerGroup": "system.group.administrator"
                                      },
                                      "from": "system.adapter.admin.0",
                                      "user": "system.user.admin",
                                      "ts": 1630328905039
                                      }

                                      und das Blockly:
                                      Auswahl_047.png
                                      der Export des Scripts:


                                      <xml xmlns="https://developers.google.com/blockly/xml">
                                      <variables>
                                      <variable id="f-+??FgK=EkG;Jx.E4Uh">r</variable>
                                      <variable id="M$gd;on{YS_4sZS7%v5;">T</variable>
                                      <variable id="3Z$x1{!vu;(:9*^Og4Mr">sdd</variable>
                                      <variable id="sMuyz@sFD?~GL7Pbp0m">tp</variable>
                                      <variable id="mX4kA.w3Vj3Gb{T/zN">dd</variable>
                                      <variable id="{NP4D8gJ;3K@K(4++fqR">eln</variable>
                                      <variable id="UL:4GF)A];9++Y79).sv">td</variable>
                                      </variables>
                                      <block type="comment" id="j/88n15b[7G5O?)}Aq(" x="13" y="-487">
                                      <field name="COMMENT">Wohnzimmer</field>
                                      <next>
                                      <block type="on_ext" id="+[m,Zx.:Xz]@3VsCEEA:">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                      <shadow type="field_oid" id="$FBYx:{pf1BZND)q6aGN">
                                      <field name="oid">zigbee.0.00158d0002b51c2b.humidity</field>
                                      </shadow>
                                      </value>
                                      <value name="OID1">
                                      <shadow type="field_oid" id="vw?;iie?.DQz;Y/,.)M2">
                                      <field name="oid">zigbee.0.00158d0002b51c2b.temperature</field>
                                      </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                      <block type="variables_set" id="Nt5@56dCWl~6LP!.So_"> <field name="VAR" id="f-+??FgK=EkG;Jx.E4Uh">r</field> <value name="VALUE"> <block type="get_value" id="kM9iJvuGhrg%k%VHOrHN"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002b51c2b.humidity</field> </block> </value> <next> <block type="variables_set" id="JO8oE5}7_^{k@8JSb8J{"> <field name="VAR" id="M$gd;on{YS_4sZS7%v5;">T</field> <value name="VALUE"> <block type="get_value" id="tvU]2+bk5LE%K:{$TaH">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.00158d0002b51c2b.temperature</field>
                                      </block>
                                      </value>
                                      <next>
                                      <block type="update" id="V{p/ou#(0mt{$M5kq;">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.Taupunkt.dpwohnzimmer</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                      <block type="convert_tonumber" id="gQT)eKnVuL0KWXh3pYFx">
                                      <value name="VALUE">
                                      <block type="variables_get" id="Qur?$boGpSg[9ABL5%mI">
                                      <field name="VAR" id="sMuyz@sFD?~GL7Pbp0m">tp</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </statement>
                                      <next>
                                      <block type="comment" id="tUSc|n]8;@1p!V8fTKm7">
                                      <field name="COMMENT">KiZi1</field>
                                      <next>
                                      <block type="on_ext" id="zl~$:X=Z=bZjEG4xW#1">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                      <shadow type="field_oid" id="3wytK;R?nIw.Yu63Rvl.">
                                      <field name="oid">zigbee.0.00158d0002b5169a.humidity</field>
                                      </shadow>
                                      </value>
                                      <value name="OID1">
                                      <shadow type="field_oid" id="o;2VOAVNLfjX
                                      [reJN]:">
                                      <field name="oid">zigbee.0.00158d0002b5169a.temperature</field>
                                      </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                      <block type="variables_set" id="9DKGj|$E9[CPFfEu6K1C">
                                      <field name="VAR" id="f-+??FgK=EkG;Jx.E4Uh">r</field>
                                      <value name="VALUE">
                                      <block type="get_value" id="3v=IDcPCA:BLb{Vu2JS=">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.00158d0002b5169a.humidity</field>
                                      </block>
                                      </value>
                                      <next>
                                      <block type="variables_set" id="t9LF|HO%]}i^$5g)t!/3">
                                      <field name="VAR" id="M$gd;on{YS_4sZS7%v5;">T</field>
                                      <value name="VALUE">
                                      <block type="get_value" id="rBjC+:Xv=V,I;Pb~@;?D">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.00158d0002b5169a.temperature</field>
                                      </block>
                                      </value>
                                      <next>
                                      <block type="update" id="!jwkM.jJ[/#~I=rfw7xL">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.Taupunkt.dpkizi1</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                      <block type="convert_tonumber" id="Yb;{zE(MGvBj3.l
                                      d=40">
                                      <value name="VALUE">
                                      <block type="variables_get" id="RSRXQ#B(dOm=@?Z2a/Db">
                                      <field name="VAR" id="sMuyz@*sFD?~GL7Pbp0m">tp</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </statement>
                                      <next>
                                      <block type="comment" id="6ie$X7ecT@R2SK$4UTwf">
                                      <field name="COMMENT">Schlafzimmer</field>
                                      <next>
                                      <block type="on_ext" id="{OLfJ$:=688u$QiM_z3G">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                      <shadow type="field_oid" id=":!v:CT#u78W9bxf
                                      @-bI">
                                      <field name="oid">zigbee.0.00158d0002b5167b.humidity</field>
                                      </shadow>
                                      </value>
                                      <value name="OID1">
                                      <shadow type="field_oid" id="Y[iJhmSd;s;kzaK8a}xT">
                                      <field name="oid">zigbee.0.00158d0002b5167b.temperature</field>
                                      </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                      <block type="variables_set" id="j:l1+oW+5F@id^WPey^"> <field name="VAR" id="f-+??FgK=EkG;Jx.E4Uh">r</field> <value name="VALUE"> <block type="get_value" id="CeOi]H_TjRaz,?~]sz7H"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002b5167b.humidity</field> </block> </value> <next> <block type="variables_set" id="NH!9H]NQ?i7*Tz!lQ/Wy"> <field name="VAR" id="M$gd;on{YS_4sZS7%v5;">T</field> <value name="VALUE"> <block type="get_value" id="5s}ol2K}_p0esKsBkfuK"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002b5167b.temperature</field> </block> </value> <next> <block type="update" id="l:kXFS/e]z,~e|!{J/FW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Taupunkt.dpschlafzimmer</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_tonumber" id="jwt,uXS($nhq,,HxYD+">
                                      <value name="VALUE">
                                      <block type="variables_get" id="l9TJW
                                      (X!G)Z0#d+HWS8">
                                      <field name="VAR" id="sMuyz@sFD?~GL7Pbp0m">tp</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </statement>
                                      <next>
                                      <block type="comment" id="Y7hW:R%jv+r~mgsORIoT">
                                      <field name="COMMENT">KiZi2</field>
                                      <next>
                                      <block type="on_ext" id="h@?GV9,l0rTi.]c@D8w-">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                      <shadow type="field_oid" id="9QMpB:8$E7UviB1ha0XO">
                                      <field name="oid">zigbee.0.00158d0002b51519.humidity</field>
                                      </shadow>
                                      </value>
                                      <value name="OID1">
                                      <shadow type="field_oid" id=":3VV{gd$OdeTZX[LD">
                                      <field name="oid">zigbee.0.00158d0002b51519.temperature</field>
                                      </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                      <block type="variables_set" id=",?J(k}9Uo_AXg_ownTNN">
                                      <field name="VAR" id="f-+??FgK=EkG;Jx.E4Uh">r</field>
                                      <value name="VALUE">
                                      <block type="get_value" id="6Oj!g]iOtA$c,HkdK(e">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.00158d0002b51519.humidity</field>
                                      </block>
                                      </value>
                                      <next>
                                      <block type="variables_set" id="-EM}M]%Zlyzko|nFXx@"> <field name="VAR" id="M$gd;on{YS_4sZS7%v5;">T</field> <value name="VALUE"> <block type="get_value" id="]MMXV1#-/|qsedY+KUs">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.00158d0002b51519.temperature</field>
                                      </block>
                                      </value>
                                      <next>
                                      <block type="update" id="I(7+I%|by06AK8tjoAqg">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.Taupunkt.dpkizi2</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                      <block type="convert_tonumber" id=":f]Es8(QAAt#!6
                                      YR(2:">
                                      <value name="VALUE">
                                      <block type="variables_get" id="lR[^N8W@eBzZz;%Zz#">
                                      <field name="VAR" id="sMuyz@sFD?~GL7Pbp0m">tp</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </statement>
                                      <next>
                                      <block type="comment" id="A
                                      Ed+cm#FFh:Am}xg::p">
                                      <field name="COMMENT">Badezimmer</field>
                                      <next>
                                      <block type="on_ext" id="w.ATwBvM0q@@7]qu7R">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                      <shadow type="field_oid" id="B57iMUJ4j^u}i~OMP;,B">
                                      <field name="oid">zigbee.0.00158d0002b51619.humidity</field>
                                      </shadow>
                                      </value>
                                      <value name="OID1">
                                      <shadow type="field_oid" id="~etP^s00f=syQzy8G5#m">
                                      <field name="oid">zigbee.0.00158d0002b51619.temperature</field>
                                      </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                      <block type="variables_set" id="zIH?a#]*v9R~y@52mC+h">
                                      <field name="VAR" id="f-+??FgK=EkG;Jx.E4Uh">r</field>
                                      <value name="VALUE">
                                      <block type="get_value" id="VrB:g3!8^|mRd621q*I"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002b51619.humidity</field> </block> </value> <next> <block type="variables_set" id="rjDNd*P7ESxVDb,Gy9AV"> <field name="VAR" id="M$gd;on{YS_4sZS7%v5;">T</field> <value name="VALUE"> <block type="get_value" id="gAsQR(P:z%StVauxW)+z"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002b51619.temperature</field> </block> </value> <next> <block type="update" id=")1~Yz|]o!:*Y{PGJzRty"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Taupunkt.dpbadezimmer</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_tonumber" id="fs1C=loMNJW+l8,+F,U">
                                      <value name="VALUE">
                                      <block type="variables_get" id="ji@cJgwRszFmWXC[2s?m">
                                      <field name="VAR" id="sMuyz@*sFD?~GL7Pbp0m">tp</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </statement>
                                      <next>
                                      <block type="comment" id="ndKR~-IJm/HMq4#npK/I">
                                      <field name="COMMENT">Dachzimmer</field>
                                      <next>
                                      <block type="on_ext" id="r%s
                                      }3+0~FLyM^itP_c4">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                      <shadow type="field_oid" id="WKb%7Q|tR^i8-Y?D=Hn_">
                                      <field name="oid">zigbee.0.00158d0002b516e3.humidity</field>
                                      </shadow>
                                      </value>
                                      <value name="OID1">
                                      <shadow type="field_oid" id="LQ3(J5H5(E/dpFZK[Lbj">
                                      <field name="oid">zigbee.0.00158d0002b516e3.temperature</field>
                                      </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                      <block type="variables_set" id=")RW^T
                                      +IaJ@+?R6QuC">
                                      <field name="VAR" id="f-+??FgK=EkG;Jx.E4Uh">r</field>
                                      <value name="VALUE">
                                      <block type="get_value" id="ECiO]}p~O;)BeB|jCya.">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.00158d0002b516e3.humidity</field>
                                      </block>
                                      </value>
                                      <next>
                                      <block type="variables_set" id="(EycjR);Qux[)/Z^n@[h">
                                      <field name="VAR" id="M$gd;on{YS_4sZS7%v5;">T</field>
                                      <value name="VALUE">
                                      <block type="get_value" id="O[f:.WjD*-bNP,6;TiRE">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.00158d0002b516e3.temperature</field>
                                      </block>
                                      </value>
                                      <next>
                                      <block type="update" id="Hv@H|R])#!(~RbSL_HFI">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.Taupunkt.dpdachzimmer</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                      <block type="convert_tonumber" id="P(vuNo8Q!5:wcVnCRcU{">
                                      <value name="VALUE">
                                      <block type="variables_get" id="R.HyVSgf-PVmRz^mDumt">
                                      <field name="VAR" id="sMuyz@sFD?~GL7Pbp0m">tp</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </statement>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      <block type="procedures_defnoreturn" id="|2Q(bPHLjrKvd#z+tq@4" x="663" y="-487">
                                      <field name="NAME">Taupunkt</field>
                                      <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                      <statement name="STACK">
                                      <block type="comment" id="1|c5Iv?gF{%IA,@I
                                      u.">
                                      <field name="COMMENT">Taupunktberechnung</field>
                                      <next>
                                      <block type="controls_if" id="ByEzI2A#1Vw!g@6y=x."> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="E*0IXU=pu|YoyJf0{uqc"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="l-k/?s0QhUS/(;J_vucT"> <field name="VAR" id="M$gd;on{YS_4sZS7%v5;">T</field> </block> </value> <value name="B"> <block type="math_number" id="@Os^%3xlb/TZfH@oH^Q">
                                      <field name="NUM">0</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      <statement name="DO0">
                                      <block type="variables_set" id="[:r[+m)b/$FQWtV[t)#"> <field name="VAR" id="3Z$x1{!vu;(:9*^Og4Mr">sdd</field> <value name="VALUE"> <block type="math_arithmetic" id="jAo9H:ZALCR1L9eCZ.Il" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="G6Q_]:vF;i~j7:Pi8-#t"> <field name="NUM">6.1078</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="665S^yxD[xGW4Inm4Mr,"> <field name="NUM">1</field> </shadow> <block type="math_single" id="$cG@3m(JoL4w3HkfhiS">
                                      <field name="OP">POW10</field>
                                      <value name="NUM">
                                      <shadow type="math_number" id="PRQST8q8yV]Fw_W3/x:z">
                                      <field name="NUM">9</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="(?IN@H@;V[kL!``q_2$" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="QyD0sMCD3#C](G$}r@_">
                                      <field name="NUM">1</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="a;!+nAsao:y,^/1|@jsY">
                                      <field name="OP">MULTIPLY</field>
                                      <value name="A">
                                      <shadow type="math_number" id="]RltYj4L;^qa317_M$="> <field name="NUM">7.5</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="EWFJRA-hdkJh0QPc.Qv?"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="nmLg;c|0$9+iucY..=L">
                                      <field name="VAR" id="M$gd;on{YS_4sZS7%v5;">T</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      <value name="B">
                                      <shadow type="math_number" id="ub!sba|dcBnu#IqUX}1r">
                                      <field name="NUM">1</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="hQ?]Y6c.Z;z~rbp9#WC$">
                                      <field name="OP">ADD</field>
                                      <value name="A">
                                      <shadow type="math_number" id="XRheb5t8I6;)aQkJ2lYT">
                                      <field name="NUM">237.3</field>
                                      </shadow>
                                      </value>
                                      <value name="B">
                                      <shadow type="math_number">
                                      <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="AcSL3eS]mbdzUDxMcsY0">
                                      <field name="VAR" id="M$gd;on{YS_4sZS7%v5;">T</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      <next>
                                      <block type="variables_set" id="5OQF=sBxj^$C(cPHO[y"> <field name="VAR" id="mX4kA._w3Vj3Gb{T/zN_">dd</field> <value name="VALUE"> <block type="math_arithmetic" id="LOO1_uCB2yObhF(3Ao.h" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="cy!FphPD6@UZo^!N5eo|"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="oB:4|Fi*KYE^3FjGkMP1"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">7.6</field> </shadow> <block type="variables_get" id="wijqrStadbe_On+gkU4n"> <field name="VAR" id="f-+??FgK=EkG;Jx.E4Uh">r</field> </block> </value> <value name="B"> <shadow type="math_number" id="N~_=GJQhkjzh2h[C9nWu"> <field name="NUM">100</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="f]XaZasgJhFAf$z/8n@k"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="q8=SL{BuR[EAHn(]:Hq">
                                      <field name="VAR" id="3Z$x1{!vu;(:9
                                      ^Og4Mr">sdd</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      <next>
                                      <block type="variables_set" id="V.LWooF4=WgvA1LGfkBP">
                                      <field name="VAR" id="{NP4D8gJ;3K@K(4++fqR">eln</field>
                                      <value name="VALUE">
                                      <block type="math_single" id="ZS@~m80I{rE{yD.bFAVW">
                                      <field name="OP">LOG10</field>
                                      <value name="NUM">
                                      <shadow type="math_number">
                                      <field name="NUM">9</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="ozDO$-;H}.0A@Yod[_b" inline="false">
                                      <field name="OP">DIVIDE</field>
                                      <value name="A">
                                      <shadow type="math_number" id="c:}sw
                                      2_;B]H[?gPr^g0">
                                      <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="x@kg5Wf;VpLbn-0z(so;">
                                      <field name="VAR" id="mX4kA.w3Vj3Gb{T/zN">dd</field>
                                      </block>
                                      </value>
                                      <value name="B">
                                      <shadow type="math_number" id="sEtqixSVh@rW/|O^cbET">
                                      <field name="NUM">6.1078</field>
                                      </shadow>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      <next>
                                      <block type="variables_set" id="J;ubZ2|r/nw^jdXyKr3L">
                                      <field name="VAR" id="UL:4GF)A];9++Y79).sv">td</field>
                                      <value name="VALUE">
                                      <block type="math_arithmetic" id="kIefD#q5wDGn+i4Z]:w" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="PHt0V{{d0iijFXw@ldg0"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="s-_(SzYRKU@FPCmSJj0I"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="NA+=G8*WO(Y8E.RUE5.="> <field name="NUM">237.3</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="qFxw]#bth0/miCmcPu@|"> <field name="VAR" id="{NP4D8gJ;3K@K(4++fqR">eln</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="A^):KB{[ss]U#]}u=%;R"> <field name="NUM">6.1078</field> </shadow> <block type="math_arithmetic" id="~n^jByV/9B7}/g~y+,)">
                                      <field name="OP">MINUS</field>
                                      <value name="A">
                                      <shadow type="math_number" id="2tg8805p7f|=_pB0L].">
                                      <field name="NUM">7.5</field>
                                      </shadow>
                                      </value>
                                      <value name="B">
                                      <shadow type="math_number">
                                      <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="UBF{jeWYsA|!~8fRHDz7">
                                      <field name="VAR" id="{NP4D8gJ;3K@K(4++fqR">eln</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </statement>
                                      <statement name="ELSE">
                                      <block type="variables_set" id="g$QTSdGTy+T-aFZX9$wp">
                                      <field name="VAR" id="3Z$x1{!vu;(:9
                                      ^Og4Mr">sdd</field>
                                      <value name="VALUE">
                                      <block type="math_arithmetic" id="g$P^tql^~WUAamw8k7n" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="(c1.KCn%}THJH{W5Bkmz"> <field name="NUM">6.1078</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_single" id="/1T#,u#%)1#jT)HCV=9J"> <field name="OP">POW10</field> <value name="NUM"> <shadow type="math_number"> <field name="NUM">9</field> </shadow> <block type="math_arithmetic" id="vp8rg(E,B,YS,I%ug)[Q" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="8HB}OAR3P8F:?w7qE22-"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="}Ln*)/CqQr4MyM(c#EjH"> <field name="NUM">7.6</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="o+w;;K}Q|%_n/Etl/gl9"> <field name="VAR" id="M$gd;on{YS_4sZS7%v5;">T</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="G?GFHbIe}%)q$lz:Bz?c"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="Q||2_A,%@XWwv5CCKFk#"> <field name="NUM">240.7</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="@}]UG%@}P.HPSrz]iHgC"> <field name="VAR" id="M$gd;on{YS_4sZS7%v5;">T</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="g/N;f_%f8Cn|9kuyE{(F"> <field name="VAR" id="mX4kA._w3Vj3Gb{T/zN_">dd</field> <value name="VALUE"> <block type="math_arithmetic" id="u69dXBrq66BCLE^M{]V2" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="J0lJ2u^IQu9boEc1aa$Z"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="{A]Yj,E@@tC7=?3vy.{G"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="}_|z]Pr1Ms^k+Gh6_FVS"> <field name="NUM">7.6</field> </shadow> <block type="variables_get" id="^hq}Dvu!rIQB{R*$6mt">
                                      <field name="VAR" id="f-+??FgK=EkG;Jx.E4Uh">r</field>
                                      </block>
                                      </value>
                                      <value name="B">
                                      <shadow type="math_number" id="}p=-XZ~(js#}jeqwsdn">
                                      <field name="NUM">100</field>
                                      </shadow>
                                      </value>
                                      </block>
                                      </value>
                                      <value name="B">
                                      <shadow type="math_number" id="pJlcaR:BP9^@(gw$(RtG">
                                      <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="uMHVhIUx1FQ-Lvu$l^])">
                                      <field name="VAR" id="3Z$x1{!vu;(:9
                                      ^Og4Mr">sdd</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      <next>
                                      <block type="variables_set" id="jjt:t%m%BfYT3Zap=M;"> <field name="VAR" id="{NP4D8gJ;3K@K(4++fqR">eln</field> <value name="VALUE"> <block type="math_single" id="+99f$xJ)^XL:a,7onGF,"> <field name="OP">LOG10</field> <value name="NUM"> <shadow type="math_number"> <field name="NUM">9</field> </shadow> <block type="math_arithmetic" id="xW02mthV|YNG5nwYvynh" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="E6#c7WR_4V%m=z{p)MPZ"> <field name="VAR" id="mX4kA._w3Vj3Gb{T/zN_">dd</field> </block> </value> <value name="B"> <shadow type="math_number" id=";uRP3BRr7?n|n~5lmTJ/"> <field name="NUM">6.1078</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="R[tn_(Y0qqH~W~+.puY-"> <field name="VAR" id="UL:4GF)A];9++Y79).sv">td</field> <value name="VALUE"> <block type="math_arithmetic" id="aS/=lAk=ZQ#dpFbE+QDx" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="laq*gf7u+IX8+!!x-R5d"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="XLNI074{%m0%e0[cIMlp"> <field name="NUM">240.7</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="EL2YKNTNBS5sQG+pBf@i"> <field name="VAR" id="{NP4D8gJ;3K@K(4++fqR">eln</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">6.1078</field> </shadow> <block type="math_arithmetic" id=".hEJ#RYdL%zb+4Hjr6|I"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="?b;^}jKWg7j)IMPTuo?">
                                      <field name="NUM">7.6</field>
                                      </shadow>
                                      </value>
                                      <value name="B">
                                      <shadow type="math_number">
                                      <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id=":0Nxo1iLv@ng5s_g)o9)">
                                      <field name="VAR" id="{NP4D8gJ;3K@K(4++fqR">eln</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </statement>
                                      <next>
                                      <block type="variables_set" id=")8/1GENxlDMsoC-~NmZR">
                                      <field name="VAR" id="sMuyz@sFD?~GL7Pbp0m">tp</field>
                                      <value name="VALUE">
                                      <block type="math_rndfixed" id="ss$V$R-Lv=/XIzX@$EAS">
                                      <field name="n">2</field>
                                      <value name="x">
                                      <shadow type="math_number" id="+$_x
                                      @enw?zJVQC2:3JV">
                                      <field name="NUM">3.1234</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="mk0h{=j0(diHL.Gn4zYl" inline="false">
                                      <field name="OP">DIVIDE</field>
                                      <value name="A">
                                      <shadow type="math_number" id="[,?Y1NM~2Jm[hD+Gm)Hv">
                                      <field name="NUM">1</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="[l`.ygZH4@]-KjJ2(OA+">
                                      <field name="OP">MULTIPLY</field>
                                      <value name="A">
                                      <shadow type="math_number" id="q^y@mBmcN:Pdn6YXT5Q7">
                                      <field name="NUM">100</field>
                                      </shadow>
                                      </value>
                                      <value name="B">
                                      <shadow type="math_number">
                                      <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="YrIu}OINL[7w1/KQihT">
                                      <field name="VAR" id="UL:4GF)A];9++Y79).sv">td</field>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      <value name="B">
                                      <shadow type="math_number" id="z)N+HO
                                      fmqR01vg:!kLJ">
                                      <field name="NUM">100</field>
                                      </shadow>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </value>
                                      </block>
                                      </next>
                                      </block>
                                      </next>
                                      </block>
                                      </statement>
                                      </block>
                                      </xml>

                                      Mit Verbose wird mir im Log nachfolgendes angezeigt:

                                      15:14:25.889	info	javascript.0 (733) script.js.common.Taupunkt: getState(id=zigbee.0.00158d0002b51c2b.humidity, timerId=undefined) => {"val":59.88,"ack":true,"ts":1630329265881,"q":0,"from":"system.adapter.zigbee.0","user":"system.user.admin","lc":1630329265881}
                                      15:14:25.891	info	javascript.0 (733) script.js.common.Taupunkt: getState(id=zigbee.0.00158d0002b51c2b.temperature, timerId=undefined) => {"val":23.18,"ack":true,"ts":1630329265857,"q":0,"from":"system.adapter.zigbee.0","user":"system.user.admin","lc":1630329014681}
                                      15:14:25.892	info	javascript.0 (733) script.js.common.Taupunkt: setForeignState(id=0_userdata.0.Taupunkt.dpwohnzimmer, state={"val":null,"ack":true,"c":"script.js.common.Taupunkt"})
                                      
                                      SBorg paul53 2 Replies Last reply Reply Quote 0
                                      • SBorg
                                        SBorg Forum Testing Most Active @NEA1971 last edited by

                                        @nea1971 sagte in Taupunkt ganz simpel berechnen:

                                        Leider beschreibt mir das Script die Datenpunkte nicht - als Wert wird mir unter dem Datenpunkt "(null)" angezeigt.

                                        "tp" ist bei dir auch nicht definiert, da die Funktion "Taupunkt" nie ausgeführt wird 😉
                                        Du musst die Funktion "Taupunkt" zum Ausführen noch in jeden "Zimmerblock" mit einfügen (schau mal genau im Original "Taupunkt_aussen")

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

                                          @sborg ah, ja, jetzt funktioniert es auch 😊
                                          Vielen Dank 👍

                                          1 Reply Last reply Reply Quote 0
                                          • paul53
                                            paul53 @NEA1971 last edited by

                                            @nea1971 sagte: das Blockly:

                                            Anmerkungen:

                                            • einen Wert, der sich runden ließ, muss man nicht "nach Zahl" wandeln, denn es kann nur eine Zahl sein
                                            • die Operation 100 * td / 100 ist sinnlos.
                                            NEA1971 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            446
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            25
                                            5936
                                            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