Huhu, ich nochmal,
also irgendwie klappt das mit meiner Sperrvariable noch nicht.
Habe es mit Blockly versucht.
<block xmlns="http://www.w3.org/1999/xhtml" type="schedule" id="HM6=)a/063Y[o{hs@E^f" x="63" y="63">
<field name="SCHEDULE">{"time":{"start":"05:00","end":"22:59","mode":"hours","interval":1},"period":{"days":1},"valid":{"from":"25.04.2019","to":""}}</field>
<statement name="STATEMENT">
<block type="on_ext" id="3|}^?^O*/rJ;$T.cYJa2">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="EaPrG1oKUf{tOKveZ+iR">
<field name="oid">javascript.0.Summe PV Strings</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="[2hF}[#)alR33@YL|[g#">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="30@HSE]rBRa#a1i[d,T?">
<field name="OP">GTE</field>
<value name="A">
<block type="get_value" id="MG|EvK6hwMNpfyVrFr~/">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Summe PV Strings</field>
</block>
</value>
<value name="B">
<block type="math_number" id=")$P:rIB=E}u*eq{SUpru">
<field name="NUM">2000</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="update" id="pjgM^xtIfVerTa/8f_2L">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Sperrvariable</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="|Ms-6LdFVBmz-[[Rgx8b">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="(pNk(/uYGH0;0I)G!`Q;">
<field name="OP">LTE</field>
<value name="A">
<block type="get_value" id="fAISphJqLy_yD8O^aMtN">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Summe PV Strings</field>
</block>
</value>
<value name="B">
<block type="math_number" id="Z,xh5Rq,GMsmU*IBut6L">
<field name="NUM">500</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="update" id=",@Fj3xJw%V)].pTMmJ2I">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Sperrvariable</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="QI7uXPQJbAL_=Rw7`#Rs">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
Kann mir jemand sagen wo der Fehler liegt?
Die Sperrvariable ist irgendwie immer auf true.
Viele Grüße
Nanouk