@markusk1407 So kannst Du es nun mal versuchen:
[image: 1699192623721-6a7deb7e-3a54-4a96-8e5c-de8e3785d7c9-image.png]
Spoiler
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="`0j%;-cHZD%rWb0:d+_R">Liste Batterie</variable>
<variable id="+GH*4d~Ot4^IH#SycmDq">Batterie</variable>
</variables>
<block type="on_ext" id="|Wd+HQ}%Q#MuT=|6B0V]" x="-437" y="-12">
<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="-|Rv[nIR^5l0;02omey{">
<field name="oid">0_userdata.0.Test.JSON</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="Q@w_HW?4z$/vWvf#7*Q_">
<field name="VAR" id="`0j%;-cHZD%rWb0:d+_R">Liste Batterie</field>
<value name="VALUE">
<block type="convert_jsonata" id="`t?tg6!SpTN{TgV)Q@e0">
<value name="EXPRESSION">
<shadow type="text" id="lJA2P|9InBG%3Z7hu|(O">
<field name="TEXT">$.type</field>
</shadow>
</value>
<value name="TARGET">
<block type="convert_json2object" id="t}76$Wptn/_$fdOn5+x6">
<value name="VALUE">
<block type="on_source" id="e_vyqDzx4:T.Gb7tt_}G">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="/5zc=1*BzcDD8[`OoGrV">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="-!@1O=pZ$NinWYBtInDY">
<field name="OP">EQ</field>
<value name="A">
<block type="convert_type" id="UJss+#:yPBW3t8~U5B{T">
<value name="ITEM">
<block type="variables_get" id="@5(px5I~j^6!ywfO1::O">
<field name="VAR" id="`0j%;-cHZD%rWb0:d+_R">Liste Batterie</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="text" id="gtHBU*RcsDbJrUyo!W2/">
<field name="TEXT">string</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="+Pv8yZ^AzpxA#V4y5+9F">
<value name="IF0">
<block type="logic_compare" id="nTO,;I7Jx8L]S~n@`Q#o">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="O5y[n)wlzo{eZ0BG4JpG">
<field name="VAR" id="`0j%;-cHZD%rWb0:d+_R">Liste Batterie</field>
</block>
</value>
<value name="B">
<block type="text" id="qZ@2(i)(9jQ,+eGe4I_L">
<field name="TEXT">LOW_BATTERY</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="#)G6s3P8-5Ex;;hz-[{F">
<field name="COMMENT">WhatsApp</field>
<next>
<block type="debug" id="ITQq/f0I%^j8wxxM~rLG">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="0c.G}~G!uL?M1JyrSRXx">
<field name="TEXT">Sende Whats App</field>
</shadow>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="(I-=ay9m7zDse,iMRlO%">
<field name="OP">EQ</field>
<value name="A">
<block type="convert_type" id="$CN*q|@aswC/u0l9nDm9">
<value name="ITEM">
<block type="variables_get" id="v-)V?uqnqjE^qn``a%(|">
<field name="VAR" id="`0j%;-cHZD%rWb0:d+_R">Liste Batterie</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="text" id="GU6^`twrTOm$uKZ!c.Mp">
<field name="TEXT">object</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="controls_forEach" id="x:Kf1S2R+=kXPq:D6l4k">
<field name="VAR" id="+GH*4d~Ot4^IH#SycmDq">Batterie</field>
<value name="LIST">
<block type="variables_get" id="8jBns3$H2siHAe,ce@TB">
<field name="VAR" id="`0j%;-cHZD%rWb0:d+_R">Liste Batterie</field>
</block>
</value>
<statement name="DO">
<block type="debug" id="k+Ix:3d$sKzH+IT5OE5[">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="b[)=.J[dpo5z4AH!P:u7">
<field name="TEXT">test</field>
</shadow>
<block type="variables_get" id="ia11iJ]}yYs;G_)U~V~z">
<field name="VAR" id="+GH*4d~Ot4^IH#SycmDq">Batterie</field>
</block>
</value>
<next>
<block type="controls_if" id="fN$db7Z^#p{x6V=67}Wl">
<value name="IF0">
<block type="logic_compare" id="B3#~7s9.Bv]%a-NwN%25">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="ls2c}!IST/Oh@IeuWPjs">
<field name="VAR" id="+GH*4d~Ot4^IH#SycmDq">Batterie</field>
</block>
</value>
<value name="B">
<block type="text" id="]a$lem#f{/%fxQMQ%f1]">
<field name="TEXT">LOW_BATTERY</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="PkoxgwHN;L`#pBJH{oEh">
<field name="COMMENT">WhatsApp</field>
<next>
<block type="debug" id="/d.FIj-bL-ze8D*c2cv$">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="Sg}Dyz786[Jq@!2J-aV9">
<field name="TEXT">Sende Whats App</field>
</shadow>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</xml>