NEWS
[gelöst] Blockly Skript erzeugt viele Fehler im Log
-
Hallo,
ich habe mir eine Tabelle erstellt welche mir zeigt welche Adapter laufen.
Das Skript sieht folgendermaßen aus:
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="T;4ToXjiEg-7T=9ZEQvB">Liste_adapter</variable> <variable id="9o),p7hh;Nyznz=m+s+n">Tabelle_gruen</variable> <variable id=",uQ[TnUTK#qN${7ViwL[">durchgang</variable> <variable id="EP;3C8NM6Z/Hi-?L2#2v">i</variable> <variable id="+UFs6;9C-2SnfFZ$t.$?">adapter</variable> <variable id="Y(e]aSoChZVd#%kSD{77">bild</variable> <variable id="D%qVg[bLER_4I0[9p_xk">umbruch</variable> <variable id="3uO4DZtfq9#9S=#NOXTP">alive</variable> </variables> <block type="variables_set" id="`i`ME.!W?D6fI/y4G^,u" x="462" y="663"> <field name="VAR" id="T;4ToXjiEg-7T=9ZEQvB">Liste_adapter</field> <value name="VALUE"> <block type="selector" id="qINF[fqu.d!L5a,j$28_"> <field name="TEXT">system.adapter.*.alive</field> </block> </value> <next> <block type="on_ext" id="o5=5CS@u|B`0vZtT|6#A"> <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="LzF!R,~Q5?uTd9nn.tLx"> <field name="oid">default</field> </shadow> <block type="variables_get" id="cq.!hDYT^cQk]3_TcS7z"> <field name="VAR" id="T;4ToXjiEg-7T=9ZEQvB">Liste_adapter</field> </block> </value> <statement name="STATEMENT"> <block type="variables_set" id="@2bj_2[=B|{9E~AMJ|Kd"> <field name="VAR" id="9o),p7hh;Nyznz=m+s+n">Tabelle_gruen</field> <value name="VALUE"> <block type="text" id="Vzr0N:eCiY1YCrG#d7?a"> <field name="TEXT"></field> </block> </value> <next> <block type="variables_set" id="$pUijj;JAzB,6nB$|sl8"> <field name="VAR" id=",uQ[TnUTK#qN${7ViwL[">durchgang</field> <value name="VALUE"> <block type="math_number" id="F?X_Sq:A!2pw=fyG19fo"> <field name="NUM">0</field> </block> </value> <next> <block type="controls_forEach" id="gECBKCr~FK=]B+4QO2m%"> <field name="VAR" id="EP;3C8NM6Z/Hi-?L2#2v">i</field> <value name="LIST"> <block type="variables_get" id="S*}x{G|n%JU7@-()f;Mw"> <field name="VAR" id="T;4ToXjiEg-7T=9ZEQvB">Liste_adapter</field> </block> </value> <statement name="DO"> <block type="math_change" id="i(VJv3$9AH/d)_$GV=A$"> <field name="VAR" id=",uQ[TnUTK#qN${7ViwL[">durchgang</field> <value name="DELTA"> <shadow type="math_number" id="JEVhq=8BD3t[j%A7~_MA"> <field name="NUM">1</field> </shadow> </value> <next> <block type="variables_set" id="H97Ac7mTcBV;nutC;]n;"> <field name="VAR" id="+UFs6;9C-2SnfFZ$t.$?">adapter</field> <value name="VALUE"> <block type="text_getSubstring" id="!r|K]3:dyK@^*;!6N`WI"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_END</field> <value name="STRING"> <block type="variables_get" id="`Ty9f|av,5dP_R_pr+Lc"> <field name="VAR" id="EP;3C8NM6Z/Hi-?L2#2v">i</field> </block> </value> <value name="AT1"> <block type="math_number" id="PAo:{]2{z3hJx6W)DkPz"> <field name="NUM">16</field> </block> </value> <value name="AT2"> <block type="math_number" id="*27KZZlMyvZ`u}nrf-Pi"> <field name="NUM">9</field> </block> </value> </block> </value> <next> <block type="variables_set" id="c=FHF`]#z6mg7rv$5tuL"> <field name="VAR" id="Y(e]aSoChZVd#%kSD{77">bild</field> <value name="VALUE"> <block type="text_join" id="dzX@YeJoW$V_rLb0k3w0"> <mutation items="5"></mutation> <value name="ADD0"> <block type="text" id="i|fDD2Lr:)RBzrc|%MJ|"> <field name="TEXT"><img src="https://192.168.99.33:8082/proxy.0/files/</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="*y_pkN=_s=lm_:!Lwo-d"> <field name="VAR" id="+UFs6;9C-2SnfFZ$t.$?">adapter</field> </block> </value> <value name="ADD2"> <block type="text" id="hbY2vecnQejRVxt-4A@I"> <field name="TEXT">.admin/</field> </block> </value> <value name="ADD3"> <block type="variables_get" id="VHP~85JRD^gZh-~+s{WM"> <field name="VAR" id="+UFs6;9C-2SnfFZ$t.$?">adapter</field> </block> </value> <value name="ADD4"> <block type="text" id="cna9s`pUD/iUl,spY4A|"> <field name="TEXT">.png" width="30" align="middle"></field> </block> </value> </block> </value> <next> <block type="controls_if" id="+!_9Rr+o/t?kaSSMvd]?"> <mutation else="1"></mutation> <value name="IF0"> <block type="math_number_property" id="i6)ZANibWL9l2%Lg`Xbi"> <mutation divisor_input="true"></mutation> <field name="PROPERTY">DIVISIBLE_BY</field> <value name="NUMBER_TO_CHECK"> <shadow type="math_number" id="v;w`:5v@.]qp!F#4Y)tT"> <field name="NUM">0</field> </shadow> <block type="variables_get" id="yZ`Nd[d``-nf|$#2B(D5"> <field name="VAR" id=",uQ[TnUTK#qN${7ViwL[">durchgang</field> </block> </value> <value name="DIVISOR"> <block type="math_number" id="l;g`#Ys5=Zn/D_Wkd:0U"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="qhEq)[d{pM{BzOURRM%["> <field name="VAR" id="D%qVg[bLER_4I0[9p_xk">umbruch</field> <value name="VALUE"> <block type="text" id="k)bM4fBqNyMGfFr0m*{?"> <field name="TEXT"></tr> <tr></field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="LtIw]mx0/e;mwRt_a`}p"> <field name="VAR" id="D%qVg[bLER_4I0[9p_xk">umbruch</field> <value name="VALUE"> <block type="text" id="IS(YicK^|1!@mDGS){+Y"> <field name="TEXT"></field> </block> </value> </block> </statement> <next> <block type="controls_if" id="jPbVh[Wm^Lw0GTYXMK3Y"> <mutation else="1"></mutation> <value name="IF0"> <block type="get_value_var" id="|yZR;z%vNgci5}=XeIfr"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="x/Z!^IpI+8F}aItTWM5M"> <field name="VAR" id="EP;3C8NM6Z/Hi-?L2#2v">i</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="wRVfdd.f[f;:=my;X+7`"> <field name="VAR" id="3uO4DZtfq9#9S=#NOXTP">alive</field> <value name="VALUE"> <block type="text" id=")vf+HEMp9zW#,r4+n/W6"> <field name="TEXT"><img src="https://192.168.99.33:8082/proxy.0/files/lovelace.0/cards/spacer_green.png" width="300" height="5"/></field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="p4cU}TxiNAoy:rF2:1m1"> <field name="VAR" id="3uO4DZtfq9#9S=#NOXTP">alive</field> <value name="VALUE"> <block type="text" id="6ai7f:pi)Wp5#FfbO}c$"> <field name="TEXT"><img src="https://192.168.99.33:8082/proxy.0/files/lovelace.0/cards/spacer_red.png" width="300" height="5"/></field> </block> </value> </block> </statement> <next> <block type="variables_set" id="TEs{pOq.U,w-9m-xChAv"> <field name="VAR" id="9o),p7hh;Nyznz=m+s+n">Tabelle_gruen</field> <value name="VALUE"> <block type="text_join" id="LwkIHb9$ynp/+s.:d%6o"> <mutation items="9"></mutation> <value name="ADD0"> <block type="variables_get" id="fGwYi22*KT]@+i`z+MqC"> <field name="VAR" id="9o),p7hh;Nyznz=m+s+n">Tabelle_gruen</field> </block> </value> <value name="ADD1"> <block type="text" id="kkkBx#5ONX01WvDfOv#c"> <field name="TEXT"><td valign="bottom" width="33%"><center></field> </block> </value> <value name="ADD2"> <block type="variables_get" id="wIw/F.T)UQC|I?/7Rv5h"> <field name="VAR" id="Y(e]aSoChZVd#%kSD{77">bild</field> </block> </value> <value name="ADD3"> <block type="text" id="Lz1ngwcEI=;!h(;?[Pgo"> <field name="TEXT"><br></field> </block> </value> <value name="ADD4"> <block type="variables_get" id="[6QgN=c{8{I6l~%C^5h9"> <field name="VAR" id="3uO4DZtfq9#9S=#NOXTP">alive</field> </block> </value> <value name="ADD5"> <block type="text" id="1}@K]L^|NlZ+%6Yy)w]q"> <field name="TEXT"><br></field> </block> </value> <value name="ADD6"> <block type="text_getSubstring" id="d!GI![]+$p@7k[WI{)ij"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id=",hEK`P18:9UgP:Fv$w5A"> <field name="VAR" id="+UFs6;9C-2SnfFZ$t.$?">adapter</field> </block> </value> <value name="AT1"> <block type="math_number" id="oBA:]3vPJKIh2aA[s=,4"> <field name="NUM">1</field> </block> </value> <value name="AT2"> <block type="math_number" id="!B/az+vafPMc_Ip6[Qhp"> <field name="NUM">17</field> </block> </value> </block> </value> <value name="ADD7"> <block type="text" id=":CqAQ{]69UAF/)T_0R7P"> <field name="TEXT"><p></td></field> </block> </value> <value name="ADD8"> <block type="variables_get" id="3leK?mOa1+QQ_c8NKaJ%"> <field name="VAR" id="D%qVg[bLER_4I0[9p_xk">umbruch</field> </block> </value> </block> </value> <next> <block type="variables_set" id="5PX9q`7ogJp/bvIn?f;b"> <field name="VAR" id="3uO4DZtfq9#9S=#NOXTP">alive</field> <value name="VALUE"> <block type="text" id="TPP?sg5,fHW3$85@tf5("> <field name="TEXT"><font size="3"><b><font color=green>●</font></field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="update" id="Gf?CuRIWj$@Zn7KndF1L"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.VIS.Tabellen.Status_Adapter_gruen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text_join" id="l]@o|@UFR]MKf~.4$q_0"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="_y/nF*7#3LKK#Ivd}3Km"> <field name="TEXT"><table width="100%"> <tr></field> </block> </value> <value name="ADD1"> <block type="variables_get" id="%H:8sInt33:%c)XH`Z;M"> <field name="VAR" id="9o),p7hh;Nyznz=m+s+n">Tabelle_gruen</field> </block> </value> <value name="ADD2"> <block type="text" id="f-jcG$CydVybV^g0^^kI"> <field name="TEXT"></table></field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </xml>
Im Log kommt bei der Ausführung:
v5.3.8 11 99+ Log-Größe: 1.5 KB javascript.0 Zeit warn Nachricht javascript.0 2022-04-25 14:12:33.474 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:33.474 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:33.474 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:33.473 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:33.473 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:33.472 warn getState "system.adapter.text2command.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:33.471 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:33.471 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:33.471 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:33.471 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:33.471 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:33.470 warn getState "system.adapter.snmp.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:33.469 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:33.469 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:33.469 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:33.469 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:33.468 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:33.465 warn getState "system.adapter.pushsafer.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:33.465 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:33.465 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:33.465 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:33.465 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:33.464 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:33.463 warn getState "system.adapter.proxy.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:33.462 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:33.462 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:33.461 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:33.460 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:33.460 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:33.456 warn getState "system.adapter.parser.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:33.456 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:33.456 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:33.456 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:33.456 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:33.455 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:33.454 warn getState "system.adapter.mytime.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:33.452 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:33.452 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:33.452 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:33.452 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:33.452 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:33.450 warn getState "system.adapter.discovery.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:33.450 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:33.450 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:33.450 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:33.449 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:33.449 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:33.447 warn getState "system.adapter.device-reminder.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:33.447 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:33.447 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:33.447 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:33.446 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:33.446 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:33.442 warn getState "system.adapter.alias-manager.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:27.448 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:27.447 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:27.447 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:27.447 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:27.447 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:27.446 warn getState "system.adapter.text2command.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:27.445 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:27.445 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:27.445 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:27.445 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:27.445 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:27.444 warn getState "system.adapter.snmp.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:27.443 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:27.443 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:27.443 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:27.443 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:27.443 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:27.442 warn getState "system.adapter.pushsafer.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:27.442 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:27.441 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:27.441 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:27.441 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:27.441 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:27.440 warn getState "system.adapter.proxy.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:27.440 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:27.440 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:27.439 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:27.439 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:27.439 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:27.438 warn getState "system.adapter.parser.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:27.436 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:27.436 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:27.436 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:27.435 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:27.435 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:27.434 warn getState "system.adapter.mytime.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:27.433 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:27.433 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:27.433 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:27.433 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:27.432 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:27.431 warn getState "system.adapter.discovery.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:27.431 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:27.431 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:27.430 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:27.430 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:27.430 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:27.428 warn getState "system.adapter.device-reminder.0.alive" not found (3) states[id]=null javascript.0 2022-04-25 14:12:27.428 warn at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:12:27.428 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:12:27.428 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:12:27.427 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:12:27.427 warn at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:21:9) javascript.0 2022-04-25 14:12:27.425 warn getState "system.adapter.alias-manager.0.alive" not found (3) states[id]=null
-
-
Aber ich frage mich warum.
Der Selektor findet die Datenpunkte ja. -
@david-g sagte in Blockly Skript erzeugt viele Fehler im Log:
Aber ich frage mich warum.
Der Selektor findet die Datenpunkte ja.Dann bau halt mal ein paar logs ein, dann sieht du ja ob er die richtig abgreift bzw. ob du diese richtig weiterverarbeitest.
-
@david-g sagte: Im Log kommt bei der Ausführung:
Zu einigen Datenpunkten "*.alive" existiert offenbar kein Zustand. Deshalb sollte
gegen eine JS-Funktion mit Ergebnis und folgendem Inhalt ausgetauscht werden:
if(existsState(id)) return getState(id).val;
-
Das ist es. Hab mir die Datenpunkte mal angesehen.
Habe den JS Baustein erstellt.
allerdings finde ich nur das "normale" "etwas tun" ohne die Option nochwas dran zu hängen. -
@david-g sagte: die Option nochwas dran zu hängen.
Zahnrad links.
Inhalt: 3 Punkte rechts. -
Irgendwo hab ich wohl einen Fehler.
Beim Speichern kommt im Log
javascript.0 2022-04-25 14:45:13.834 error at processImmediate (internal/timers.js:466:21) javascript.0 2022-04-25 14:45:13.833 error at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.javascript/main.js:1311:17) javascript.0 2022-04-25 14:45:13.833 error at /opt/iobroker/node_modules/iobroker.javascript/main.js:1836:17 javascript.0 2022-04-25 14:45:13.833 error at prepareScript (/opt/iobroker/node_modules/iobroker.javascript/main.js:1735:37) javascript.0 2022-04-25 14:45:13.833 error at createVM (/opt/iobroker/node_modules/iobroker.javascript/main.js:1486:28) javascript.0 2022-04-25 14:45:13.832 error at Object.createScript (vm.js:262:10) javascript.0 2022-04-25 14:45:13.832 error at new Script (vm.js:102:7) javascript.0 2022-04-25 14:45:13.832 error SyntaxError: Unexpected token ')' javascript.0 2022-04-25 14:45:13.832 error ^ javascript.0 2022-04-25 14:45:13.831 error if(existsState(id)) return getState(id).val;))) javascript.0 2022-04-25 14:45:13.831 error script.js.Eigene_Scripte.VIS.Tabelle_Adapter compile failed: at script.js.Eigene_Scripte.VIS.Tabelle_Adapter:5
-
@david-g sagte:
error if(existsState(id)) return getState(id).val;)))
Rechts sind 3 schließende Klammern zu viel. Außerdem musst Du
id
durchx
ersetzen, da Du den Übergabeparameter nicht umbenannt hast. Oder Du änderst x in id: -
Oh, da muss ich beim kopieren was falsch gemacht haben.
Speichern klappt jetzt.Allerdings kommt im Log jetzt:
javascript.0 2022-04-25 14:51:34.547 error at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:51:34.547 error at Immediate.<anonymous> (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:51:34.547 error at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:51:34.546 error at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:51:34.546 error at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:26:15) javascript.0 2022-04-25 14:51:34.546 error at etwas_tun (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:5:20) javascript.0 2022-04-25 14:51:34.545 error script.js.Eigene_Scripte.VIS.Tabelle_Adapter: ReferenceError: id is not defined javascript.0 2022-04-25 14:51:34.346 error at processImmediate (internal/timers.js:464:21) javascript.0 2022-04-25 14:51:34.345 error at Immediate.<anonymous> (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5909:56) javascript.0 2022-04-25 14:51:34.345 error at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29) javascript.0 2022-04-25 14:51:34.345 error at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38) javascript.0 2022-04-25 14:51:34.344 error at Object.<anonymous> (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:26:15) javascript.0 2022-04-25 14:51:34.344 error at etwas_tun (script.js.Eigene_Scripte.VIS.Tabelle_Adapter:5:20) javascript.0 2022-04-25 14:51:34.343 error script.js.Eigene_Scripte.VIS.Tabelle_Adapter: ReferenceError: id is not defined
Die Abfrage aus dem falls Block scheint auch nicht stattzufinden. Jedenfalls ändert sich die Tabelle nicht, wenn ich einen Adapter stoppe.
-
@david-g sagte:
ReferenceError: id is not defined
Habe ich eben schon geschrieben: Ändern id --> x oder x --> id.
-
Danke klappt.
Den Edit hatte ich nicht gesehen. -
@paul53
Wo du hier das Skript einmal gesehen hast.
Hab mir das so zurechtgebastelt, dass alle 3 Durchgänge der Zeilenumbruch eingebaut wird.Geht das auch noch was einfacher? Ggf sogar einen Baustein? Ich hab da nichts gefunden.
P. S.:
Komisch,dass nicht bei allen Adaptern der alive Status gepflegt wird. -
@david-g sagte: Geht das auch noch was einfacher?
HTML ist nicht mein Ding. Die Variable
umbruch
wäre verzichtbar: -
Okay.
Dann war der Ansatz mit dem Zählen uns teilbar ja garnicht so daneben.