Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Pumpenleistung wird nicht errechnet

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Pumpenleistung wird nicht errechnet

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

      Servus,

      ich möchte die Daten meiner Solaranlage erfassen, also Stromverbrauch, Laufzeit Pumpe, Leistungsaufnahme Pumpe, Förderleistung usw.

      Diese Werte hab ich mir über einen HM-Zwischenstecker bzw. über die Pumpendaten geholt und mir daraus ein Blockly gebastelt.

      <xml xmlns="https://developers.google.com/blockly/xml">
       <variables>
         <variable id=";ECt[gQr!?yJVzxBCA^i">Leistungsaufnahme-Pumpe-min [W]</variable>
         <variable id="@.i7OwC!N[_/mN-HR%fy">Leistungsaufnahme-Pumpe-max [W]</variable>
         <variable id="}J}=r^a9TLh5m;4rAq?0">Forderleistung_min[m³]</variable>
         <variable id="n1_ff,m2iu1(-4y7zoLr">Forderleistung_max [m³/h]</variable>
         <variable id="O,a`9CFvxq_KuF]tS_^J">Forderleistung-je-Watt [m³/h]</variable>
         <variable id="hmL1lxB)lTo+B70(O4gR">aktuelle-Leistungsaufnahme [W]</variable>
         <variable id="AhltH)K|pU=q{O]XAt*B">Leistungsaufnahme_min [W]</variable>
         <variable id="~G,Vz+-,.!-5nV$MPL*O">aktuelle-Fordermenge-m³/h</variable>
       </variables>
       <block type="comment" id="h7fthm^=Y|LY6aOnP=Y+" x="143" y="53">
         <field name="COMMENT">prüfen, ob Pumpe eingeschaltet ist</field>
         <next>
           <block type="on_ext" id="E^41]WvX1^in]$l9i/Ap">
             <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
             <field name="CONDITION">false</field>
             <field name="ACK_CONDITION"></field>
             <value name="OID0">
               <shadow type="field_oid" id="8.h^FFYpMKMRwY.ISnl/">
                 <field name="oid">hm-rpc.1.OEQ0770755.1.STATE</field>
               </shadow>
             </value>
             <statement name="STATEMENT">
               <block type="comment" id="N#G3B$7j8O,T4a?/wX^m">
                 <field name="COMMENT">Pumpe einschalten (muss Dauerbetrieb sein!)</field>
                 <next>
                   <block type="toggle" id="Jdjop@Tm8n`p:iF4c-3S">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">hm-rpc.1.OEQ0770755.1.STATE</field>
                     <field name="WITH_DELAY">FALSE</field>
                   </block>
                 </next>
               </block>
             </statement>
             <next>
               <block type="on_ext" id="|l:W4{]MD+o:L@cMlK4O">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                 <field name="CONDITION">ne</field>
                 <field name="ACK_CONDITION"></field>
                 <value name="OID0">
                   <shadow type="field_oid" id="8jI@PVqad[8/a3P^vN!B">
                     <field name="oid">hm-rpc.1.OEQ0770755.2.POWER</field>
                   </shadow>
                 </value>
                 <statement name="STATEMENT">
                   <block type="update" id="ylKcGkY*[%u@GYrA*3`_">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">0_userdata.0.Solar.Pumpentyp</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="text" id="Lh4cAS;gh5]kUWa0XxOr">
                         <field name="TEXT">Grundfos SOLAR PM2 15-105 130</field>
                       </block>
                     </value>
                     <next>
                       <block type="comment" id="h@Hsy`WtSv~_rFaS`%,]">
                         <field name="COMMENT">Prüfen der Leistungsaufnahme und wählen der Betriebsart</field>
                         <next>
                           <block type="variables_set" id="6!nF5+aKQVK*a82YRK6*">
                             <field name="VAR" id=";ECt[gQr!?yJVzxBCA^i">Leistungsaufnahme-Pumpe-min [W]</field>
                             <value name="VALUE">
                               <block type="math_number" id="z6[^+5+(imG9LW#t52wM">
                                 <field name="NUM">3</field>
                               </block>
                             </value>
                             <next>
                               <block type="variables_set" id="WwyashyTk-VctsXEtXOJ">
                                 <field name="VAR" id="@.i7OwC!N[_/mN-HR%fy">Leistungsaufnahme-Pumpe-max [W]</field>
                                 <value name="VALUE">
                                   <block type="math_number" id="cP]7s9|aL)(Pk!l3@XSX">
                                     <field name="NUM">70</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="variables_set" id="#(-SHw_uaMbo~+xIz?s+">
                                     <field name="VAR" id="}J}=r^a9TLh5m;4rAq?0">Forderleistung_min[m³]</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="JT57dBG8zze,P.K+pF-F">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="I=deKgYkC7%P1kez=v+T">
                                         <field name="VAR" id="n1_ff,m2iu1(-4y7zoLr">Forderleistung_max [m³/h]</field>
                                         <value name="VALUE">
                                           <block type="math_number" id="vPeAg-k8Kr0:|j{`ETT/">
                                             <field name="NUM">3.5</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="variables_set" id="y_/qiuR,W3_[x*k)q]HE">
                                             <field name="VAR" id="O,a`9CFvxq_KuF]tS_^J">Forderleistung-je-Watt [m³/h]</field>
                                             <value name="VALUE">
                                               <block type="math_arithmetic" id="x}}i|Venz9+[4,R/KuUO" inline="false">
                                                 <field name="OP">DIVIDE</field>
                                                 <value name="A">
                                                   <shadow type="math_number" id="=$P%sKn`yKr`QM/rZe/A">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="math_arithmetic" id="?m=v8UynbeJA/9wzkMI?">
                                                     <field name="OP">MINUS</field>
                                                     <value name="A">
                                                       <shadow type="math_number">
                                                         <field name="NUM">1</field>
                                                       </shadow>
                                                       <block type="variables_get" id="rWB2#gUJJa(77=O6p5FX">
                                                         <field name="VAR" id="n1_ff,m2iu1(-4y7zoLr">Forderleistung_max [m³/h]</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <shadow type="math_number">
                                                         <field name="NUM">1</field>
                                                       </shadow>
                                                       <block type="variables_get" id="_%nFV*^hbb`:}~+_#!Zc">
                                                         <field name="VAR" id="}J}=r^a9TLh5m;4rAq?0">Forderleistung_min[m³]</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <shadow type="math_number" id="mgD,uGnk4IZ4l1E3suSz">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="math_arithmetic" id="/Y{ZYv3Pv2v=Qqpf}^s$">
                                                     <field name="OP">MINUS</field>
                                                     <value name="A">
                                                       <shadow type="math_number" id="kqP07@*3PXGc$jQai;zp">
                                                         <field name="NUM">1</field>
                                                       </shadow>
                                                       <block type="variables_get" id="mD-^.B)jd5*2X;Vi=u$k">
                                                         <field name="VAR" id="@.i7OwC!N[_/mN-HR%fy">Leistungsaufnahme-Pumpe-max [W]</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <shadow type="math_number" id="hY1bZYM#pib5{soJw)i-">
                                                         <field name="NUM">1</field>
                                                       </shadow>
                                                       <block type="variables_get" id="1)mn8__}hAqbCy1_j7Y=">
                                                         <field name="VAR" id=";ECt[gQr!?yJVzxBCA^i">Leistungsaufnahme-Pumpe-min [W]</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="update" id="~X8dP}Ih#(}Jd4ebwGrw">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">0_userdata.0.Solar.Forderleistung-je-Watt</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="math_rndfixed" id="qy.l1cu.W*V]Bci+@RM0">
                                                     <field name="n">2</field>
                                                     <value name="x">
                                                       <shadow type="math_number" id="{u+nm.Kn@LospWWjX~k{">
                                                         <field name="NUM">3.1234</field>
                                                       </shadow>
                                                       <block type="variables_get" id="OYW}:_hq,}5cKhBJcIv;">
                                                         <field name="VAR" id="O,a`9CFvxq_KuF]tS_^J">Forderleistung-je-Watt [m³/h]</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="comment" id="pFEjqsOU9bLsS=qu[hA~">
                                                     <field name="COMMENT">Förderleistung aktuell</field>
                                                     <next>
                                                       <block type="controls_if" id="L0]$1|T-7!O4:P(^r]nm">
                                                         <mutation else="1"></mutation>
                                                         <value name="IF0">
                                                           <block type="logic_compare" id="$UoP5.vQKJ;Hyf7HBj{k">
                                                             <field name="OP">GTE</field>
                                                             <value name="A">
                                                               <block type="get_value" id="Yp84.Rze2NevQ7][Zd!c">
                                                                 <field name="ATTR">val</field>
                                                                 <field name="OID">hm-rpc.1.OEQ0770755.2.POWER</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <block type="variables_get" id="9~wAnB_AS^JN`RpfTK_B">
                                                                 <field name="VAR" id="AhltH)K|pU=q{O]XAt*B">Leistungsaufnahme_min [W]</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <statement name="DO0">
                                                           <block type="variables_set" id="W3wt9WnQz)l$jMgZ_YRB">
                                                             <field name="VAR" id="hmL1lxB)lTo+B70(O4gR">aktuelle-Leistungsaufnahme [W]</field>
                                                             <value name="VALUE">
                                                               <block type="math_arithmetic" id="+7$y^^$J`?RTGvW3liku">
                                                                 <field name="OP">MINUS</field>
                                                                 <value name="A">
                                                                   <shadow type="math_number" id="y#jg%.Rj;g,|oV[QBz?f">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                   <block type="get_value" id="kGPT@ikO6yHAGV=nC{L`">
                                                                     <field name="ATTR">val</field>
                                                                     <field name="OID">hm-rpc.1.OEQ0770755.2.POWER</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <shadow type="math_number" id="KEqRAtnyY|o1{k[lN=}C">
                                                                     <field name="NUM">0</field>
                                                                   </shadow>
                                                                   <block type="variables_get" id="zFvDIe}G=RM8PE-.r$-b">
                                                                     <field name="VAR" id=";ECt[gQr!?yJVzxBCA^i">Leistungsaufnahme-Pumpe-min [W]</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="update" id="txNAnF5slsi/Q.640KN.">
                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                 <field name="OID">0_userdata.0.Solar.aktuelle-Leistungsaufnahme-Pumpe__W_</field>
                                                                 <field name="WITH_DELAY">FALSE</field>
                                                                 <value name="VALUE">
                                                                   <block type="math_rndfixed" id="~D?b9^ag8m(;DS5GXl{{">
                                                                     <field name="n">2</field>
                                                                     <value name="x">
                                                                       <shadow type="math_number" id="Dkq.cl[OtD1O*;^?iHR=">
                                                                         <field name="NUM">3.1234</field>
                                                                       </shadow>
                                                                       <block type="variables_get" id="~Vo`)sl[U?JZbXZGQ5!L">
                                                                         <field name="VAR" id="hmL1lxB)lTo+B70(O4gR">aktuelle-Leistungsaufnahme [W]</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <next>
                                                                   <block type="variables_set" id="Bb{Y8~6@MK.*/=2GJZ{Q">
                                                                     <field name="VAR" id="~G,Vz+-,.!-5nV$MPL*O">aktuelle-Fordermenge-m³/h</field>
                                                                     <value name="VALUE">
                                                                       <block type="math_arithmetic" id="%AaiWg@!df_/MvK3j-ei">
                                                                         <field name="OP">MULTIPLY</field>
                                                                         <value name="A">
                                                                           <shadow type="math_number" id=";h9e+B/Z6;;M479Au|MP">
                                                                             <field name="NUM">1</field>
                                                                           </shadow>
                                                                           <block type="variables_get" id="xQ.EXle)r@3~z#VfmD{.">
                                                                             <field name="VAR" id="hmL1lxB)lTo+B70(O4gR">aktuelle-Leistungsaufnahme [W]</field>
                                                                           </block>
                                                                         </value>
                                                                         <value name="B">
                                                                           <shadow type="math_number" id="8ZRi(!w$:vb9#ypUP}|o">
                                                                             <field name="NUM">1</field>
                                                                           </shadow>
                                                                           <block type="variables_get" id="(Xmpl2`*FnpFwi#5^Waz">
                                                                             <field name="VAR" id="O,a`9CFvxq_KuF]tS_^J">Forderleistung-je-Watt [m³/h]</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                     <next>
                                                                       <block type="update" id="T|kMNpb-84TNVDf}Hw^]">
                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                         <field name="OID">0_userdata.0.Solar.aktuelle-Fordermenge-m</field>
                                                                         <field name="WITH_DELAY">FALSE</field>
                                                                         <value name="VALUE">
                                                                           <block type="math_rndfixed" id=":?y[7#4WD@q~;RQ-I-j=">
                                                                             <field name="n">2</field>
                                                                             <value name="x">
                                                                               <shadow type="math_number" id="w7|9%*cu(sg)K8!TC)@i">
                                                                                 <field name="NUM">3.1234</field>
                                                                               </shadow>
                                                                               <block type="variables_get" id=";UUC@Na:wp%aIa,Ci]zD">
                                                                                 <field name="VAR" id="~G,Vz+-,.!-5nV$MPL*O">aktuelle-Fordermenge-m³/h</field>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                         <next>
                                                                           <block type="update" id="Mf7ejghDFs;$IhI2/S)E">
                                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                             <field name="OID">0_userdata.0.Solar.aktuelle-Fordermenge-L</field>
                                                                             <field name="WITH_DELAY">FALSE</field>
                                                                             <value name="VALUE">
                                                                               <block type="math_rndfixed" id="e}WljEitKm!bzoKd[Lm+">
                                                                                 <field name="n">2</field>
                                                                                 <value name="x">
                                                                                   <shadow type="math_number" id="`7]RoiMmqE0cu+9m8J=!">
                                                                                     <field name="NUM">3.1234</field>
                                                                                   </shadow>
                                                                                   <block type="math_arithmetic" id="K^G,8-E9L[FaN*dzc~|m" inline="false">
                                                                                     <field name="OP">DIVIDE</field>
                                                                                     <value name="A">
                                                                                       <shadow type="math_number" id="JVs*5;owW7irq@fT93nm">
                                                                                         <field name="NUM">1</field>
                                                                                       </shadow>
                                                                                       <block type="variables_get" id="FGBKt_oZ]#|D4t~iIbQr">
                                                                                         <field name="VAR" id="~G,Vz+-,.!-5nV$MPL*O">aktuelle-Fordermenge-m³/h</field>
                                                                                       </block>
                                                                                     </value>
                                                                                     <value name="B">
                                                                                       <shadow type="math_number" id="fGCSn^4-J-n=aK-rN4(7">
                                                                                         <field name="NUM">3.6</field>
                                                                                       </shadow>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <next>
                                                                               <block type="update" id="+cBSJB;}Xkzi`{0DGT0^">
                                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                 <field name="OID">0_userdata.0.Solar.Betriebsart</field>
                                                                                 <field name="WITH_DELAY">FALSE</field>
                                                                                 <value name="VALUE">
                                                                                   <block type="text" id="oB[g[-rfZRfQ^B,_k-ye">
                                                                                     <field name="TEXT">Fördern</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <next>
                                                                                   <block type="control" id="8.)j6wy5V~D$7_QyRhN=">
                                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                     <field name="OID">0_userdata.0.Solar.solarpumpe-lauft</field>
                                                                                     <field name="WITH_DELAY">FALSE</field>
                                                                                     <value name="VALUE">
                                                                                       <block type="logic_boolean" id=":[v8vK4F)l65x/U?osOV">
                                                                                         <field name="BOOL">TRUE</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </next>
                                                                               </block>
                                                                             </next>
                                                                           </block>
                                                                         </next>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </statement>
                                                         <statement name="ELSE">
                                                           <block type="comment" id="Lg=R8!@!Pt_cB%#E_`6n">
                                                             <field name="COMMENT">Förderleistung 0 bei Stromaufnahme kleiner Leistungsaufnahme min (Standby)</field>
                                                             <next>
                                                               <block type="update" id="Qw/Su)7gVse82Ps^6+[9">
                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                 <field name="OID">0_userdata.0.Solar.Betriebsart</field>
                                                                 <field name="WITH_DELAY">FALSE</field>
                                                                 <value name="VALUE">
                                                                   <block type="text" id="!J@o_(UH$zutbaqoI)#2">
                                                                     <field name="TEXT">Standby</field>
                                                                   </block>
                                                                 </value>
                                                                 <next>
                                                                   <block type="control" id="EpLCoDT{#nGR}.)/I+v[">
                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                     <field name="OID">0_userdata.0.Solar.solarpumpe-lauft</field>
                                                                     <field name="WITH_DELAY">FALSE</field>
                                                                     <value name="VALUE">
                                                                       <block type="logic_boolean" id="-+71XA#aG]5DgBI-hK$E">
                                                                         <field name="BOOL">FALSE</field>
                                                                       </block>
                                                                     </value>
                                                                     <next>
                                                                       <block type="update" id="lL28g^`{vO1D}LuCy+HC">
                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                         <field name="OID">0_userdata.0.Solar.aktuelle-Fordermenge-m</field>
                                                                         <field name="WITH_DELAY">FALSE</field>
                                                                         <value name="VALUE">
                                                                           <block type="math_number" id="Q#U6N5_xRn;?~Pgr87$9">
                                                                             <field name="NUM">0</field>
                                                                           </block>
                                                                         </value>
                                                                         <next>
                                                                           <block type="update" id="OK8W1z+l8N2/`^5),qD2">
                                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                             <field name="OID">0_userdata.0.Solar.aktuelle-Fordermenge-L</field>
                                                                             <field name="WITH_DELAY">FALSE</field>
                                                                             <value name="VALUE">
                                                                               <block type="math_number" id="#4SwFubP5x.Z+[UDQz+;">
                                                                                 <field name="NUM">0</field>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </next>
                                                                       </block>
                                                                     </next>
                                                                   </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>
                 </statement>
               </block>
             </next>
           </block>
         </next>
       </block>
      </xml>
      

      Bis zu dieser Zeile funktioniert es, die gewünschten DP werden entsprechend befüllt (habe ich nachgerechnet, die Werte stimmen auch).

      fda964bf-3336-4676-8113-4cc39e2d5947-grafik.png

      Eigentlich soll hier nur folgendes berechnet werden:
      Die derzeitige Leistungsaufnahme in W (kommt vom Zwischenstecker, abzüglich des Standbywertes der Anlage) multipliziert mit der Fördermenge je Watt Leistungssteigerung (ja, das ist nur ein Durchschnittwert, die Pumpenkennlinie hab ich noch nicht).

      Der Datenpunkt bleibt leer, warum?

      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Hausbaer last edited by

        @hausbaer sagte in Pumpenleistung wird nicht errechnet:

        Der Datenpunkt bleibt leer, warum?

        Frag mal ein log.
        Da kommt doch bestimmt eine Meldung

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

          @homoran Nein, eben nicht, das ist ja das komische.

          javascript.0	2021-02-25 16:21:52.688	warn	(1159) at processTimers (internal/timers.js:497:7)
          javascript.0	2021-02-25 16:21:52.688	warn	(1159) at listOnTimeout (internal/timers.js:556:17)
          javascript.0	2021-02-25 16:21:52.688	warn	(1159) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1475:29)
          javascript.0	2021-02-25 16:21:52.688	warn	(1159) at Object.setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1417:20)
          javascript.0	2021-02-25 16:21:52.686	warn	(1159) You are assigning a string to the state "0_userdata.0.Bad.Bad-Anzeige-groß" which expects a number. Please fix your code to use a number or change the state type to string. This warning might b
          javascript.0	2021-02-25 16:21:24.949	info	(1159) script.js.Solar.Betrieb: registered 2 subscriptions and 2 schedules
          javascript.0	2021-02-25 16:21:24.942	info	(1159) Start javascript script.js.Solar.Betrieb
          javascript.0	2021-02-25 16:21:23.095	info	(1159) Stop script script.js.Solar.Betrieb
          javascript.0	2021-02-25 16:21:21.463	info	(1159) script.js.Solar.Betrieb: registered 2 subscriptions and 2 schedules
          javascript.0	2021-02-25 16:21:21.454	info	(1159) Start javascript script.js.Solar.Betrieb
          javascript.0	2021-02-25 16:21:21.434	info	(1159) Stop script script.js.Solar.Betrieb
          javascript.0	2021-02-25 16:21:20.220	info	(1159) script.js.Solar.Betrieb: registered 2 subscriptions and 2 schedules
          javascript.0	2021-02-25 16:21:20.199	info	(1159) Start javascript script.js.Solar.Betrieb
          javascript.0	2021-02-25 16:21:20.165	info	(1159) Stop script script.js.Solar.Betrieb
          
          Homoran 1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @Hausbaer last edited by

            @hausbaer sagte in Pumpenleistung wird nicht errechnet:

            You are assigning a string to the state "0_userdata.0.Bad.Bad-Anzeige-groß" which expects a number.

            Leider habe ich nur diese eine Zeile, da sind nur Variablen, kein schreiben/aktualisiern in einen Datenpunkt.

            Hast du die Variable vorher als Zahl deklariert?
            Was haben alle drei Variablen für einen Typ?

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

              @homoran

              Guten Morgen,

              ich musste erstmal abwarten, bis die Anlage wieder läuft (Sonnenschein!).

              Um die Frage zu beanworten: Ja, die Variablen sind vorher definiert. Die Variablen haben den Typ Zahl.

              Ich habe die Variablen anders benannt, weil ich befürchtet habe, dass die Sonderzeichen evtl. das Problem sein könnte.

              dce928b3-28d0-45b8-9e61-762fbceaabd6-image.png

              Dann habe ich im Betrieb überprüft, ob der Wert, den mein HM -Zwischenstecker liefert

              5123deaa-57c9-46d5-a895-971f3624718d-image.png

              identisch ist mit dem Wert, den iobroker erfasst und anzeigt (hier ein Wert, zeitversetzt in der VIS):

              14ecbcf2-e4d2-412f-9d12-e122e5546f49-image.png

              Das passt auch.

              Auch die DP habe ich nochmal überarbeit / neu benannt und natürlich im Script entsprechend neu zugewiesen.

              1e5ef070-7ca4-467f-90a6-eebbd14f0ebd-image.png

              Dabei ist mir aufgefallen, dass schon der DP "aktuelle-Leistungsaufnahme-Pumpe-W" nicht befüllt wird.

              Das ist im Blockly folgende Zeile / Rechnung:
              7627d1b3-9041-4e93-8bf6-7f04de402e63-image.png

              Eine einfache Subraktion, aber die funktioniert nicht??

              Edit:
              Das Log liefert leider keinen Eintrag

              Homoran E 2 Replies Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @Hausbaer last edited by Homoran

                @hausbaer sagte in Pumpenleistung wird nicht errechnet:

                Eine einfache Subraktion, aber die funktioniert nicht??

                Leider ist dein Blockly unvollständig

                Worauf triggerst du?
                Ist die Bedingung des Logik-falls erfüllt?

                In solchen Fällen kann man mit einem sinnvollen debugbaustein prüfen ob diese einfache Subtraktion überhaupt angestoßen wird

                EDIT:
                Wieso sind die Werte bei dir in gelb/orange??

                Das kenne ich gar nicht. Ich kenne nur grün - schwarz - rot

                Edit2:
                muss am neuen controller liegen, in meiner Testumgebung habe ich das jetzt aucgh

                1 Reply Last reply Reply Quote 0
                • E
                  ente34 @Hausbaer last edited by

                  @hausbaer
                  "0_userdata.0.Bad.Bad-Anzeige-groß"
                  Die Meldung kommt doch vermutlich von einem anderen Script (leider fehlen im log die Zeilen im Backtrace).
                  Sollte man nicht diese Script korrigieren/abstellen?
                  Ansonsten, was Homoran gesagt hat, Debug-Ausgaben sind hilfreich

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

                    Mir ist gerade aufgefallen, dass im Blockly oben links im Script "Instanz deaktiviert" steht, obwohl Javascript unter den Instanzen grün ist.

                    Installiert ist 4.11.0. Ich werd mal auf 4.10.15 downgraden und schauen, was passiert.

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

                      @ente34 sagte in Pumpenleistung wird nicht errechnet:

                      @hausbaer
                      Sollte man nicht diese Script korrigieren/abstellen?

                      Da hast du vermutlich recht. Diese Meldung ist aber - nach dem o.g. downgrade - nicht mehr vorhanden.

                      Ansonsten, was Homoran gesagt hat, Debug-Ausgaben sind hilfreich

                      Auch da: Du / ihr habt recht. Ich werde diese nachliefern, wenn Sonnenstunden sind und die Anlage läuft - und das Script immer noch nicht arbeitet.

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

                        Heute genug Sonne gehabt.

                        Ich habe das Script nochmal neu aufgebaut, Schritt für Schritt. Ich bekomme jetzt zumindest eine Pumpenleistung in Watt geliefert, weiß aber immer noch nicht, woran es lag. Werde morgen mal vergleichen und bescheid geben.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        521
                        Online

                        32.0k
                        Users

                        80.5k
                        Topics

                        1.3m
                        Posts

                        3
                        10
                        271
                        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