So sieht mein Script jetzt aus, in Anlehnung an Skripte die schon hier irgendwo im Forum von anderen geschrieben wurden...vielleicht kannst du es gebrauchen.
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="interval" id="Intervall">Intervall</variable>
</variables>
<block type="on_ext" id="%}p,5/FOtEH7?-ENJr5Y" x="-1837" y="-1113">
<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="4cLw$,c6LD[ItHM#7oH$">
<field name="oid">node-red.0.Erzeugung</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id=";86,weYMr-Pq?~x-TH+|">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_operation" id="pwUknR5Gk~$@oD_1/mx7" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="!tqV^qhccI@@ly:}dK`d">
<field name="OP">GTE</field>
<value name="A">
<block type="on_source" id="CjYC`62kpt;:{7W{^R09">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="S`a@].0**0jxP}%D+5+I">
<field name="NUM">400</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="time_compare" id="]xsncBb11%fR+7XlV,hR">
<mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
<field name="OPTION">between</field>
<field name="START_TIME">11:00</field>
<field name="END_TIME">18:00</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="hoMhEffvl,:#YMKd.J`e">
<value name="IF0">
<block type="logic_negate" id="GzatSc3Mx~,wnPb2n4;R">
<value name="BOOL">
<block type="variables_get" id="Z{T@-d:Re|pe!!ZlB[*:">
<field name="VAR" id="Intervall" variabletype="undefined">Intervall</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="H]%iZmji}q4kZL3$Dncc">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">homee.0.MeteringPlug-201.OnOff-1120</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="%((b;1s]|iv]9}MDZ3[+">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="_2G0=~f@(ufq@J6_)L{h">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">homee.0.MeteringPlug-201.OnOff-1120</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">60</field>
<field name="UNIT">min</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="|L|4r|kCkT+khB1}xCCX">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="timeouts_setinterval" id="(d.56)?5gj3SVQ9Gi`AZ">
<field name="NAME">Intervall</field>
<field name="INTERVAL">120</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="q-(Q?O+hS(c2iKvf@Kba">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">homee.0.MeteringPlug-201.OnOff-1120</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="9#Q;8zd+qPNwFpxG@n+_">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="9eB@Ytv[t||)u/wU/^={">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">homee.0.MeteringPlug-201.OnOff-1120</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">60</field>
<field name="UNIT">min</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="6NIgNBi*DuQ@MHz6XXeQ">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="debug" id="rS*l.hfk^NU:V3+0Fy{g" disabled="true">
<field name="Severity">warn</field>
<value name="TEXT">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="`sBF`/{u9sLT1kcX5rRh">
<field name="TEXT">Dazwischen </field>
</shadow>
<block type="text_join" id="PE69pUHWaA%[#).)403r">
<mutation items="1"></mutation>
<value name="ADD0">
<block type="text" id="(AFNf9dR4U90zcdEkw7s">
<field name="TEXT">Pumpe an</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
<statement name="ELSE">
<block type="timeouts_clearinterval" id="+QIl0_GAZp6JZ(#.g:/4">
<field name="NAME">Intervall</field>
<next>
<block type="controls_if" id="lH_I^v$*1#g*47MWd7V$">
<value name="IF0">
<block type="logic_compare" id="EvR#lQB2wi(9QlGsyW}K">
<field name="OP">LTE</field>
<value name="A">
<block type="on_source" id="A.!WbhG{{Nor1g84Lpn+">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="U%%S2e!9]@.hCSD-=2uN">
<field name="NUM">200</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="9;q[tc5D(8LJHNvY#};}">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">homee.0.MeteringPlug-201.OnOff-1120</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="]KUic+TJLB/3#y])}?eF">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="debug" id="5/#m#/Hi6[USY8rr#m2V" disabled="true">
<field name="Severity">warn</field>
<value name="TEXT">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="`sBF`/{u9sLT1kcX5rRh">
<field name="TEXT">Dazwischen </field>
</shadow>
<block type="text_join" id="@6I;5o_rzce]8YQ%(f=l">
<mutation items="1"></mutation>
<value name="ADD0">
<block type="text" id="buiCb4KegO95x$0B`b^|">
<field name="TEXT">Pumpe aus</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</xml>