@eve11 Hi,
ist schon etwas her das Thema aber bei meinem Umzug vom Homey zu ioBroker aktuell.
Das Problem löse ich mit einer Schleife:
[image: 1626352713711-frytur.png]
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="on_ext" id="OGQQvcc_/x7D$Yw8vwl/" x="38" y="13">
<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="J9nGbGi$I3a_@,1tS=!B">
<field name="oid">zigbee.0.588e81fffe298b4c.cover_close</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="f)Hjm3sgbeOdwfSR*Rd?">
<value name="IF0">
<block type="logic_compare" id="sAy`IoHWzJjWIZaYu/B`">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="8lNTW_YaxJE`C}XV^nd[">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.588e81fffe298b4c.cover_close</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="2M}HtdB)gW+$xQfvmz8D">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="Cc7YNH`ju3`-c7:3#9#|">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.680ae2fffe4d86d4.close</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="$;D]g~?mGpH9j8EF_tH^">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="controls_whileUntil" id="Tz:~L,y-tUA!RmP[Tf%k">
<field name="MODE">WHILE</field>
<value name="BOOL">
<block type="logic_compare" id="7R$!DA[=pJ43piHGxsH~">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="VKRy$5m*W#U|Nkz=1%kl">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.680ae2fffe4d86d4.position</field>
</block>
</value>
<value name="B">
<block type="math_number" id="$IHS[7d25Y#IC_{STbnF">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO">
<block type="control" id="xmB@=O|pcWb6!vp2j?u}">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.680ae2fffe4d86d4.stop</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="mhFPfLkP]tLSjAUTVL{^">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="controls_flow_statements" id="`}L+O-:)dOZwy5uBS+3h">
<field name="FLOW">BREAK</field>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</statement>
<next>
<block type="on_ext" id="Hnw8l#KmRccC4y1gI0~W">
<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="v(}9REO~EElE6S#|/k/w">
<field name="oid">zigbee.0.588e81fffe298b4c.cover_open</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="..egd[$y3Cq_9gK=NY[`">
<value name="IF0">
<block type="logic_compare" id="#,hhz[m1C:e+5Kzyrj$I">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id=",UZdqLJsM.uX#Q:X1^Ix">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.588e81fffe298b4c.cover_open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="50/^,knm+b#v4PWtURzx">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id=",.a~X*:%ZN;8k(^C$2iB">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.680ae2fffe4d86d4.open</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="xt9N52v[1#V|Z^,k[A{6">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="controls_whileUntil" id="FMpf:taOFDCKFg6N[~Q~">
<field name="MODE">WHILE</field>
<value name="BOOL">
<block type="logic_compare" id="I*NMP;bo4d|%F)yrd4Yd">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="BOu*DJ?Eaa1H[tu(^ekc">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.680ae2fffe4d86d4.position</field>
</block>
</value>
<value name="B">
<block type="math_number" id="k[],Qo8,.;_21Aa---h#">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<statement name="DO">
<block type="control" id="W3@WVyX^p5P[ARZ^RSmt">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.680ae2fffe4d86d4.stop</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="(/8zeLnb!89]-gG5e6.Q">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="controls_flow_statements" id="w^fW6wS[8)x%a,Nz,.0k">
<field name="FLOW">BREAK</field>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</xml>
PS: hab erst gestern mit Blocky angefangen, sollte ich hier vielleicht Fehler gemacht haben bin ich für Kritik dankbar.
Greetings
Luxi