@c1olli
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="on_ext" id="gq`,=3iU#9VNbFii.@c!" x="38" y="-137">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="()(Rz:ROjN?}V$rLe[hs">
<field name="oid">fronius-wattpilot.1.TimeStamp</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="!^9P,f_s3gWEte%QeA06">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="_CQsxlAP#[U-D]GK8B.w">
<field name="OP">GTE</field>
<value name="A">
<block type="math_number" id="{L~if.kb*nVAl!k3I#84">
<field name="NUM">80</field>
</block>
</value>
<value name="B">
<block type="get_value" id="P0Ki#{1,CC_3ic}s#qq=">
<field name="ATTR">val</field>
<field name="OID">ford.0.VIN.statususv4.vehiclestatus.batteryFillLevel.value</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="LvwK}YD_{y*-5]}neG-d">
<mutation elseif="4" else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id=",wkwC#dURx7tHgqoDNiW">
<field name="OP">GTE</field>
<value name="A">
<block type="math_number" id="Y}7erw598VFI13%!Zq$=">
<field name="NUM">-11000</field>
</block>
</value>
<value name="B">
<block type="get_value" id="T6w}PKP8X?ysp!#bhUjh">
<field name="ATTR">val</field>
<field name="OID">fronius.0.powerflow.P_Grid</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="FMiO`]x/mB3M4nt#(e[0">
<value name="IF0">
<block type="logic_compare" id="Pk2fWtU+=|xuhRGxB]_l">
<field name="OP">NEQ</field>
<value name="A">
<block type="math_number" id="raI]cm:(X#l[;HX~I=G6">
<field name="NUM">16</field>
</block>
</value>
<value name="B">
<block type="get_value" id="29f^g,k_PNA(lLY=7s8D">
<field name="ATTR">val</field>
<field name="OID">fronius-wattpilot.1.amp</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="update" id="9_RqUWnr_=@1{![9mudX">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_power</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="z?#{zUZoS8Xc#0n6,d;f">
<field name="NUM">16</field>
</block>
</value>
<next>
<block type="update" id="lPB55x#gx^-@9?XlA:sI">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id=".Ztm5r2#v-yKjk5ic?*=">
<field name="TEXT">frc;0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="lFc0Dt[erzS#?*9m$Gs(">
<field name="OP">GTE</field>
<value name="A">
<block type="math_number" id="1-jcVD)^v`~FDO9P(`uD">
<field name="NUM">-9700</field>
</block>
</value>
<value name="B">
<block type="get_value" id="M/.p;7R?aRg-k*Y7%DeG">
<field name="ATTR">val</field>
<field name="OID">fronius.0.powerflow.P_Grid</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="controls_if" id="voFOXP[5qijJD_Gd|CKY">
<value name="IF0">
<block type="logic_compare" id="(:]4!n||+S#e5^CB,NKb">
<field name="OP">NEQ</field>
<value name="A">
<block type="math_number" id="(20q$Yw~nD+_sm(=roKF">
<field name="NUM">14</field>
</block>
</value>
<value name="B">
<block type="get_value" id="b}@IzyQW.Eqw_{3;C$-m">
<field name="ATTR">val</field>
<field name="OID">fronius-wattpilot.1.amp</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="update" id="-/*2ZkD(0bg!SVkw|p9j">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_power</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="4mf+w8|dl_O0vEz~(0-i">
<field name="NUM">14</field>
</block>
</value>
<next>
<block type="update" id="9pw]QUM+#xC:E*hf}wtG">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="d8;a!I34q$|fO+Eoq){V">
<field name="TEXT">frc;0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<value name="IF2">
<block type="logic_compare" id="%kVT5F^C~A4`SaV0(!1|">
<field name="OP">GTE</field>
<value name="A">
<block type="math_number" id="NkY,0Hu|rI^~qiAh14LO">
<field name="NUM">-8300</field>
</block>
</value>
<value name="B">
<block type="get_value" id="U;.D5yAmCi0j^ZXw^4T@">
<field name="ATTR">val</field>
<field name="OID">fronius.0.powerflow.P_Grid</field>
</block>
</value>
</block>
</value>
<statement name="DO2">
<block type="controls_if" id="PX%mkBufZ3p%BKK{_-`{">
<value name="IF0">
<block type="logic_compare" id="%)sw95037rf=T23ds,QB">
<field name="OP">NEQ</field>
<value name="A">
<block type="math_number" id="#G4-S^gKVI`[Tx)ZW^0p">
<field name="NUM">12</field>
</block>
</value>
<value name="B">
<block type="get_value" id="`~o.{;rr/ixUw,Y{HJM@">
<field name="ATTR">val</field>
<field name="OID">fronius-wattpilot.1.amp</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="update" id="duFC]#$DhGEt_Gl?}@m]">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_power</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="xy?ElpZB%P6IGkkEHkkD">
<field name="NUM">12</field>
</block>
</value>
<next>
<block type="update" id="W$pgC,-c!Wue?wf:K4oq">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="996E=7etPOU+|p+hA7cA">
<field name="TEXT">frc;0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<value name="IF3">
<block type="logic_compare" id="ys`0.^2jSxZ*=JlZe@3(">
<field name="OP">GTE</field>
<value name="A">
<block type="math_number" id="2@HDCKb{.p`7:Q;z=R!U">
<field name="NUM">-6900</field>
</block>
</value>
<value name="B">
<block type="get_value" id=";HMOdIs6yqeJAky#8_*w">
<field name="ATTR">val</field>
<field name="OID">fronius.0.powerflow.P_Grid</field>
</block>
</value>
</block>
</value>
<statement name="DO3">
<block type="controls_if" id="?;b2NX9MotHOvX:ZWlxw">
<value name="IF0">
<block type="logic_compare" id="f:#4LU/k_g}I/D4wz4Hi">
<field name="OP">NEQ</field>
<value name="A">
<block type="math_number" id="v)tlc1tgctdw_|A8SdMv">
<field name="NUM">10</field>
</block>
</value>
<value name="B">
<block type="get_value" id="AFI_(]8!=]7ah~aL0n1H">
<field name="ATTR">val</field>
<field name="OID">fronius-wattpilot.1.amp</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="update" id="T7y|u!v-x3N/:_)9vmoA">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_power</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="]IJS/6Y.{`rpi)1/QiQE">
<field name="NUM">10</field>
</block>
</value>
<next>
<block type="update" id="LHV];txC;wm~bzSi5G|L">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="cY4)47PzF_8YFIW**FN6">
<field name="TEXT">frc;0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<value name="IF4">
<block type="logic_compare" id="9oDDifoGa:x8ydabNrmN">
<field name="OP">GT</field>
<value name="A">
<block type="math_number" id="fT[FFamnz%+XVjmC[2V)">
<field name="NUM">-4100</field>
</block>
</value>
<value name="B">
<block type="get_value" id="CiVLqdWl0lV3c|`1q=],">
<field name="ATTR">val</field>
<field name="OID">fronius.0.powerflow.P_Grid</field>
</block>
</value>
</block>
</value>
<statement name="DO4">
<block type="controls_if" id="5W`0S^!QK-3WlI;?FoX4">
<value name="IF0">
<block type="logic_operation" id="AIsyWmQ)uA#=g4WnHcn`">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="Y7O]^!-@xtcOA~k}GJ(R">
<field name="OP">NEQ</field>
<value name="A">
<block type="math_number" id="?(Wt=gR_xI2zlk)M]%9!">
<field name="NUM">6</field>
</block>
</value>
<value name="B">
<block type="get_value" id="Ru$(aZP.pT{yRtIu`n+F">
<field name="ATTR">val</field>
<field name="OID">fronius-wattpilot.1.amp</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="Tzp$9ht,g]zQBH4i${[)">
<field name="OP">NEQ</field>
<value name="A">
<block type="text" id=",#yVKehj)C1Hs@MH:n1c">
<field name="TEXT">frc;0</field>
</block>
</value>
<value name="B">
<block type="get_value" id="o-FMmY;.d.PnU|U{Q[1B">
<field name="ATTR">val</field>
<field name="OID">fronius-wattpilot.1.set_state</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="update" id="Pq4D;`-+~59WItT;R2Hu">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_power</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="QG4v;AI=eRz9-*Pp{!@D">
<field name="NUM">6</field>
</block>
</value>
<next>
<block type="update" id="t-ehj(=?=~t29v+YZ$?w">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="_/~G~5kCfCsl2hT;,y[a">
<field name="TEXT">frc;0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<statement name="ELSE">
<block type="controls_if" id="0~%Q9}4p*x{{fmmzk{h+">
<value name="IF0">
<block type="logic_compare" id="MU4F,SOLWXAV;;L^|kOR">
<field name="OP">NEQ</field>
<value name="A">
<block type="text" id="mj{z|;#HBW:2Rz;kjmA+">
<field name="TEXT">frc;1</field>
</block>
</value>
<value name="B">
<block type="get_value" id="@^^G[^DU7NX]3-M0H7j7">
<field name="ATTR">val</field>
<field name="OID">fronius-wattpilot.1.set_state</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="update" id="(T(ocBtXi|gHGA8W@q;U">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="Rx:+[nc`je/J?jUq`C}F">
<field name="TEXT">frc;1</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</statement>
<statement name="ELSE">
<block type="update" id="YJ%/3pqUq-5veO8oKbg_">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">fronius-wattpilot.1.set_state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="CoDnq6X;O!2t1Sag0%N*">
<field name="TEXT">frc;1</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>

Freundliche Grüsse,
Tim