Dann ist mir aufgefallen wenn wir "Code" einfügen geht das Falsch und Richtig.
Normal Kopiere ich eine Code zuerst und klicke dann auf "Insert code" und füge dann den Code ein.
Test Code
Mache ich das aber nun mit einem "Langen" Code passiert das....
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="timeout" id="Auslösen">Auslösen</variable>
<variable type="interval" id="Intervall">Intervall</variable>
<variable type="interval" id="Intervall2">Intervall2</variable>
</variables>
<block type="on" id="ff_;m?5I
z9,re[wgt." x="-1987" y="-1312">
<field name="OID">Alarmanlage.0.alarm_ausgelöst</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id=":.8j88l@oN^WN##FhL5">
<value name="IF0">
<block type="logic_compare" id="~3d,_Bb:n?bq3tbMCf?j">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="%Zp?nvi[}vrS)
J?~~.H">
<field name="ATTR">val</field>
<field name="OID">Alarmanlage.0.alarm_ausgelöst</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="pTA9Xnof|YPhrE4/(N">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="email" id="Bp]9MfoZd?6C]I-ajwS">
<field name="INSTANCE"></field>
<field name="IS_HTML">FALSE</field>
<field name="LOG"></field>
<value name="TO">
<shadow type="text" id="(Y,35j}$uO(||tQ(LO9">
<field name="TEXT">olaf.himmelberg@xxxxx</field>
</shadow>
</value>
<value name="TEXT">
<shadow type="text" id="(s.LJa;9a;6,HDPowDFN">
<field name="TEXT">Alarm ausgelöst</field>
</shadow>
</value>
<value name="SUBJECT">
<shadow type="text" id="kDgSI8WcB/8_awPw;(Kk">
<field name="TEXT">Alarm ausgelöst</field>
</shadow>
</value>
</block>
</statement>
<next>
<block type="control" id="UI7#[UnA,jV;jhZXAef;">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="+FwqgmkwtdCdbx8+%/H">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="Sa5O=:NLSZvGt)QPf(KB">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.rgb</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="EQXxc:.|9x.8@,kLImmH">
<field name="TEXT">ff8400</field>
</block>
</value>
<next>
<block type="control" id="+wBuf7:p3Rk-slh0]k%y">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="c.qqg#?Ws{QWc(x$4D7]">
<field name="TEXT">100</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="R]Y)WjVzzMMAO*?Sj">
<field name="NAME">Auslösen</field>
<field name="DELAY">30</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="controls_if" id=":X?w_**_y[8ooL:34f=P">
<value name="IF0">
<block type="logic_compare" id="pP)IUf+4.x
5yA:jL-sD">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="9f#[G?W=A_CXQ4WFgd#M">
<field name="ATTR">val</field>
<field name="OID">Alarmanlage.0.alarm_ausgelöst</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="YNw{-}8|gBx|r6?qSt5">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id=")V@I+[]E_pL1TArryAs">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">alexa2.0.Echo-Devices.90F00818732500U1.Commands.speak</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">5</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="text" id="v+y5lK6@%vTW7^,r1.7u">
<field name="TEXT">Achtung Alarmanlage wurde ausgelöst. Achtung!!!</field>
</block>
</value>
<next>
<block type="controls_if" id="_0osBIv.YQ[sySUmtz0">
<value name="IF0">
<block type="logic_compare" id="TR!t%9B5vFw}QUgy(sx^">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="]7)h;hV~7WA]uHL=3
cN">
<field name="ATTR">val</field>
<field name="OID">Alarmanlage.0.alarm_ausgelöst</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="%W,ZYlRt0=!:
DeFe.">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="@:1sW^6
FI;=27^/(Ic">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.mid</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="]y!Y{Dl8kgobUB89JVna">
<value name="VALUE">
<block type="text" id="#f?TbKmMoY,zAq|#r%|1">
<field name="TEXT">2</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="-%IpTjr)=🙁4HBsvW+">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.volume</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="=u3IR5d?50z9L#Ahr}g">
<value name="VALUE">
<block type="text" id="(zl^-FeAnmwL!Pc}Sy{">
<field name="TEXT">30</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="timeouts_setinterval" id="_Gq5hzMR^i-EO|C!-^le">
<field name="NAME">Intervall2</field>
<field name="INTERVAL">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="XYx3tRK86z6FUM;([DYv">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="S5B+DhWnZH^{]V1*d
%Y">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="buQZp$@rHEy{|O@Sm+">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.on</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">500</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="[Niz+ro+Xn+W{awF6u9F">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="control" id="Y(plh@KG#w[usfPDic0~">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.rgb</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="LS+q|D6OQ_GKV1,1MG:">
<field name="TEXT">ff0000</field>
</block>
</value>
<next>
<block type="control" id="PAarH.2ntzd=~][tAq1">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id=";6qr:]Gr;9Vf5ftY/)b6">
<field name="TEXT">30</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="timeouts_setinterval" id="|EFQDab]0vJer@MQ6M:i">
<field name="NAME">Intervall</field>
<field name="INTERVAL">7</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="lgfGvn-nMkAdQt|z}_NP">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.mid</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="};S:ng
:NkdO_4HHCug">
<value name="VALUE">
<block type="text" id="/u.{7Zx-@9gY-vHei?i">
<field name="TEXT">2</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="cjE@|rmFY0c}3!dbkYyc">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.volume</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="bcy(,e,+NV=K[5?(4">
<value name="VALUE">
<block type="text" id="d(WA,uPkg-|1}PwpWGY:">
<field name="TEXT">30</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>`
Es sollte aber so aussehen.....
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="timeout" id="Auslösen">Auslösen</variable>
<variable type="interval" id="Intervall">Intervall</variable>
<variable type="interval" id="Intervall2">Intervall2</variable>
</variables>
<block type="on" id="ff_;m?5I`z9,re[wg*t." x="-1987" y="-1312">
<field name="OID">Alarmanlage.0.alarm_ausgelöst</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id=":.8j88l@oN`^WN##FhL5">
<value name="IF0">
<block type="logic_compare" id="~3d,_Bb:n?bq3tbMCf?j">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="%Zp?nvi[}vrS)`J?~~.H">
<field name="ATTR">val</field>
<field name="OID">Alarmanlage.0.alarm_ausgelöst</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="pTA9Xn^of|YPhrE^4/(N">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="email" id="Bp]9MfoZd?6C]I*-ajwS">
<field name="INSTANCE"></field>
<field name="IS_HTML">FALSE</field>
<field name="LOG"></field>
<value name="TO">
<shadow type="text" id="(Y,35j}$u~O(||tQ(LO9">
<field name="TEXT">olaf.himmelberg@xxx</field>
</shadow>
</value>
<value name="TEXT">
<shadow type="text" id="(s.LJa;9a;6,HDPowDFN">
<field name="TEXT">Alarm ausgelöst</field>
</shadow>
</value>
<value name="SUBJECT">
<shadow type="text" id="kDgSI8WcB/8_awPw;(Kk">
<field name="TEXT">Alarm ausgelöst</field>
</shadow>
</value>
</block>
</statement>
<next>
<block type="control" id="UI7#[UnA,jV;jhZXAef;">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="+~FwqgmkwtdCdbx8+%/H">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="Sa5O=:NLSZvGt)QPf(KB">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.rgb</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="EQXxc:.|9x.8@,kLImmH">
<field name="TEXT">ff8400</field>
</block>
</value>
<next>
<block type="control" id="+wBuf7:p3Rk-slh0]k%y">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="c.qqg#?Ws{QWc(x$4D7]">
<field name="TEXT">100</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="R]Y)~WjV^zz`MMAO*?Sj">
<field name="NAME">Auslösen</field>
<field name="DELAY">30</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="controls_if" id=":X?w_**_y[8ooL:34f=P">
<value name="IF0">
<block type="logic_compare" id="pP)IUf+4.x`5yA:jL-sD">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="9f#[G?W=A_CXQ4WFgd#M">
<field name="ATTR">val</field>
<field name="OID">Alarmanlage.0.alarm_ausgelöst</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="YNw{-}8|gBx|r6?q^St5">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id=")V@I+[*]E_pL1TArryAs">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">alexa2.0.Echo-Devices.90F00818732500U1.Commands.speak</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">5</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="text" id="v+y5lK6@%vTW7^,r1.7u">
<field name="TEXT">Achtung Alarmanlage wurde ausgelöst. Achtung!!!</field>
</block>
</value>
<next>
<block type="controls_if" id="`_0osBIv.YQ[sySUmtz0">
<value name="IF0">
<block type="logic_compare" id="TR!t%9B5vFw}QUgy(sx^">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="]7)h;hV~7WA]uHL=3`cN">
<field name="ATTR">val</field>
<field name="OID">Alarmanlage.0.alarm_ausgelöst</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="`%W,ZYlRt0=!:`De`Fe.">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="@:1sW^6`FI;=2~7^/(Ic">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.mid</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="]y!Y{Dl8kgobUB89JVna">
<value name="VALUE">
<block type="text" id="#f?TbKmMoY,zAq|#r%|1">
<field name="TEXT">2</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="-%~IpTjr)=:(^4HBsvW+">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.volume</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="=u3IR5d?50z9L#Ahr_}g">
<value name="VALUE">
<block type="text" id="(zl^-F`eAnmwL!Pc}Sy{">
<field name="TEXT">30</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="timeouts_setinterval" id="_Gq5hzMR^i-EO|C!-^le">
<field name="NAME">Intervall2</field>
<field name="INTERVAL">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="XYx3tRK86z6FUM;([DYv">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="S5B+DhWnZH^{]V1*d`%Y">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="buQZ*p_$@rHEy{|O@Sm+">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.on</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">500</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="[Niz+ro+Xn+W{awF6u9F">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="control" id="Y(plh@KG#w[usfPDic0~">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.rgb</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="LS+q|D6OQ_GKV1,~1MG:">
<field name="TEXT">ff0000</field>
</block>
</value>
<next>
<block type="control" id="P`AarH.2ntzd=~][tAq1">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id=";6qr:]Gr;9Vf5ftY/)b6">
<field name="TEXT">30</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="timeouts_setinterval" id="|EFQDab]0vJer@MQ6M:i">
<field name="NAME">Intervall</field>
<field name="INTERVAL">7</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="lgfGvn-nMkAdQt|z}_NP">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.mid</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="};S:ng`*:NkdO_4HHCug">
<value name="VALUE">
<block type="text" id="/u.{7Zx-@9gY-v~Hei?i">
<field name="TEXT">2</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="cjE@|rmFY0c}3!dbkYyc">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7c49eb195029.volume</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="bcy(,_e,+*NV=K[_5?(4">
<value name="VALUE">
<block type="text" id="d(WA,uPkg-|1}PwpWGY:">
<field name="TEXT">30</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
Das erreiche ich aber nur, wenn ich zu erst den Code einfüge, den dann Markiere und dann auf "Insert Code" klicke..... das ist doch sehr Umständlich und keiner der User weis das..... ist da auch noch ein Fehler drin?