NEWS
Überschuss Wärmepumpe
-
Muss das Thema noch einmal aufgreifen.
Derzeit sieht mein Script so aus:<block xmlns="https://developers.google.com/blockly/xml" type="procedures_defnoreturn" id="Ma~~XRRb?+r37-Nc_I6t" x="813" y="463"> <field name="NAME">switchOff</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id=",Egp%5VyFA4~BuM*|2-|"> <value name="IF0"> <block type="logic_operation" id="(v5+?t,At.q]*haeK/fb" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="L4Io-de}E2a4ta`LJ9NC"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="LMS1G.{eF#;EVoZj3CCS"> <field name="OP">AND</field> <value name="A"> <block type="variables_get" id="qd+g@:p3t285N6Qz;Dl5"> <field name="VAR" id="+l8CB%A26RkWF;d6hPt^">gr100</field> </block> </value> <value name="B"> <block type="variables_get" id="i+;3+schEOyhG*^i9+$~"> <field name="VAR" id="B7QKKsZJJ/rD9$B7mY6C">switch1h</field> </block> </value> </block> </value> <value name="B"> <block type="logic_boolean" id="9Yl*CFo^j2hT_i%wY{4*"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="ow/FdN|$ThNgIO?.yN]T"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="v]?-?hf8HfB?D63nk;|A"> <field name="ATTR">val</field> <field name="OID">sonoff.0.DVES_F572FC.DS18B20-3_Temperature</field> </block> </value> <value name="B"> <block type="math_number" id="EKA{Zn)Tii@{s7}u]G6M"> <field name="NUM">42</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="(|[X898Jn$%eta8@h%$I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.DVES_F572FC.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="{w9Ai~l*Td~H+xVOGn?J"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block>
Doch leider funktioniert das mit der Stunde nicht richtig, die Wärmepumpe sollte ja mind. eine Stunde laufen bevor sie abgeschaltet wird.
Hat jemand eine idee wo das Problem liegen könnte? -
@madison sagte: Derzeit sieht mein Script so aus:
Das ist nur eine Funktion, die nirgends aufgerufen wird und zwei Variablen auswertet, die nirgends gesetzt werden.
-
@paul53 ist der export von dem Blockly
sorry, war beim export nicht alles dabei<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout1">timeout1</variable> <variable type="timeout" id="timeout2">timeout2</variable> <variable type="timeout" id="timeout3">timeout3</variable> <variable id="+l8CB%A26RkWF;d6hPt^">gr100</variable> <variable id="B7QKKsZJJ/rD9$B7mY6C">switch1h</variable> </variables> <block type="on" id="F!!Ou/C`OjBU2N;2s?US" x="188" y="38"> <field name="OID">fronius.0.powerflow.P_Grid</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="qjZ;R!,!*H=11p#Egh+v"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="?]lGz,I4K),UYyo[4%98"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="{LBQshF_hKMC,Wp=O!@@"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="Bp?Fi=(b0uKhdv*u!Q6x"> <field name="NUM">-500</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="=LFs$DUT/hJCCGhQVXhv"> <field name="NAME">timeout1</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="b~mna{[e9y^z0HBTa7PW"> <value name="IF0"> <block type="logic_compare" id="HKpI5DKrAmnAcSak4W;s"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="nyl~uf0Z2+_6kN1*+g?$"> <field name="ATTR">val</field> <field name="OID">sonoff.0.DVES_F572FC.POWER</field> </block> </value> <value name="B"> <block type="logic_boolean" id="k}DMur}sC,{*c[WncO63"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="(zGO6Qkwq(f8e%kO|8Sg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.DVES_F572FC.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/6AaiPMn826qm8P53w7["> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="%Zy:%ZMXlarV9@amW2bs"> <field name="NAME">timeout1</field> </block> </statement> <next> <block type="controls_if" id="{[diRkfyM[.]Jtxg$4U)"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="-`b=fhm{mPh095}0@KuI"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id="sETxhFI[-k*;pp3ZGJS_"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="HqJ?48]sqCU]MT/=DZp`"> <field name="NUM">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="$=NLcQVhfZO0,4%KbZfE"> <field name="NAME">timeout2</field> <field name="DELAY">10</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="variables_set" id="b(=m)mt`IWT;sY~E?}g7"> <field name="VAR" id="+l8CB%A26RkWF;d6hPt^">gr100</field> <value name="VALUE"> <block type="logic_boolean" id="M1wU31[B,uJ-Q@riDi|P"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="procedures_callnoreturn" id="bnJaxS]jMkxSPHlI=vqR"> <mutation name="switchOff"></mutation> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="[@T#iDT$Ud2;O,6;W.H/"> <field name="NAME">timeout2</field> <next> <block type="variables_set" id="i;,RLCdV},^zEa*_6cM2"> <field name="VAR" id="+l8CB%A26RkWF;d6hPt^">gr100</field> <value name="VALUE"> <block type="logic_boolean" id="TUjF#,9drH]syK5szgO:"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </statement> <next> <block type="on_ext" id="(xXt]eB6)Vix.:KPkq!}"> <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 xmlns="http://www.w3.org/1999/xhtml" type="field_oid" id="l_u/*Kbe1kX5xiQVF*p+"> <field name="oid">default</field> </shadow> <block type="text" id="nR@Mw^]bR6W}x@_KE7g)"> <field name="TEXT">DVES_F572FC POWER</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id="7b$3~[60wWg@u1}{Hj?/"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="{Nr0}siZHCC!+`5xxx}~"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="67xG/z!M$Uw-hlOqs_?j"> <field name="NAME">timeout3</field> <field name="DELAY">60</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="variables_set" id=",)^HX7BCttUtUiJ6^8qH"> <field name="VAR" id="B7QKKsZJJ/rD9$B7mY6C">switch1h</field> <value name="VALUE"> <block type="logic_boolean" id="!N(NF}d41aaElY%yc,)G"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="procedures_callnoreturn" id="o;QuduYqb*E@=3}E[bO{"> <mutation name="switchOff"></mutation> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="q){%NyVclQ|!6ej%+0SP"> <field name="NAME">timeout3</field> <next> <block type="variables_set" id="wApdLjyIMtf~^5?x|$6}"> <field name="VAR" id="B7QKKsZJJ/rD9$B7mY6C">switch1h</field> <value name="VALUE"> <block type="logic_boolean" id="q^-E#(SI3vcifr+9Lek="> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> <block type="procedures_defnoreturn" id="Ma~~XRRb?+r37-Nc_I6t" x="788" y="363"> <field name="NAME">switchOff</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id=",Egp%5VyFA4~BuM*|2-|"> <value name="IF0"> <block type="logic_operation" id="(v5+?t,At.q]*haeK/fb" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="L4Io-de}E2a4ta`LJ9NC"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="LMS1G.{eF#;EVoZj3CCS"> <field name="OP">AND</field> <value name="A"> <block type="variables_get" id="qd+g@:p3t285N6Qz;Dl5"> <field name="VAR" id="+l8CB%A26RkWF;d6hPt^">gr100</field> </block> </value> <value name="B"> <block type="variables_get" id="i+;3+schEOyhG*^i9+$~"> <field name="VAR" id="B7QKKsZJJ/rD9$B7mY6C">switch1h</field> </block> </value> </block> </value> <value name="B"> <block type="logic_boolean" id="9Yl*CFo^j2hT_i%wY{4*"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="ow/FdN|$ThNgIO?.yN]T"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="v]?-?hf8HfB?D63nk;|A"> <field name="ATTR">val</field> <field name="OID">sonoff.0.DVES_F572FC.DS18B20-3_Temperature</field> </block> </value> <value name="B"> <block type="math_number" id="EKA{Zn)Tii@{s7}u]G6M"> <field name="NUM">42</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="(|[X898Jn$%eta8@h%$I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.DVES_F572FC.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="{w9Ai~l*Td~H+xVOGn?J"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </xml>
-
@madison
Die Timer timeout1 und timeout2 werden mehrfach gestartet und lassen sich nicht mehr stoppen. Besser so:Die Trigger-ID des POWER-Datenpunktes war auch falsch. Der Trigger wurde also nie ausgelöst.
-
@paul53 danke Paul, werde ich Morgen testen
-
@paul53 Es funktioniert jetzt wesentlich besser, aber das die Wärmepumpe mind. eine Stunde läuft klappt noch nicht ganz richtig.
Hast noch eine idee? -
@madison sagte: Hast noch eine idee?
Wenn dieses Skript die einzige Quelle zum Schalten der Wärmepumpe ist: Nein.
-
@madison sagte: Wärmepumpe mind. eine Stunde läuft klappt noch nicht
Dann ermittle die Ursache mittels einer Log-Ausgabe:
-
@paul53 werd ich testen, danke!