NEWS
[gelöst] Blockly Sendto in CRON funktioniert nicht
-
Hallo zusammen,
Ich habe mir vor über einem Jahr ein Blockly geschrieben mit welchem ich ich alle 20min über einen Temperaturstand benachrichtigen lasse.
Nun wollte ich das Blockly etwas abändern (veränderter Datenpunkt) und erhalte immer den Fehler "Dieser Block ist mit anderen nicht richtig verbunden."Der CRON Block welcher mir alle 20min eine Benachrichtigung über pushover schickt scheint nicht mehr richtig verbunden zu sein. Dabei habe ich hier nichts verändert.
Hat jemand eine Idee an was es hier scheitern könnte?
Node.js: v16.18.0
js-controller: 4.0.24
JavaSkript Adapter: v6.1.4
Pushover: v3.0.3<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="cron" id="Zeitplan">Zeitplan</variable> <variable id="9^9)]MDDFHa[hoZ1VIo)">Zeitplan</variable> <variable type="cron" id="Zeitplan1">Zeitplan1</variable> <variable id="YRlmu@j5_O9h,5*%eVzO">Zeitplan1</variable> </variables> <block type="on_ext" id="+T#%[k:_?rrie84!JiM*" x="-3037" y="-2334"> <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="mBk_NlN`BG?iLv*~/L;4"> <field name="oid">mqtt.0.Temp_Keller.RL_Holz.temperature</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="a;oi/J`V8m/31%u2[JXB"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="iJd79xb`)K_*dEQ/OT3~" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="~:C*L+At%1ie9UNSS0(I" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="C7:8R:fEZ@!s.G/I(3+o"> <field name="OP">AND</field> <value name="A"> <block type="time_compare_ex" id="Jh5o[pg.8FWH9mF`KPy7"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id="~!mFk1ePkdNdrC.MiJ:4"> <field name="TEXT">08:00</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="gV6et4PrlXnSgmI3w-(~"> <field name="TEXT">23:00</field> </shadow> </value> </block> </value> <value name="B"> <block type="logic_compare" id="r,RR{qr@_RuWEcB}#yJA"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="RL$YZx;wmrTx|:A}vSaF"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Temp_Keller.RL_Holz.temperature</field> </block> </value> <value name="B"> <block type="math_number" id=".Jxt`~U!yNR6uhT=!.F/"> <field name="NUM">55</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Z|jpYH9-VSg/FT=bY,09"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="qLs}?`,{:vOc8(:WEs}:"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Handys.iPhone_Martin</field> </block> </value> <value name="B"> <block type="logic_boolean" id="0_}xADaSGn:)WCsG0MM,"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="U:qhsd1]Czq-)tam[nGC"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="!4h@ua-CQpa:PMVcnA6~"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.VIS.20min_Message</field> </block> </value> <value name="B"> <block type="logic_boolean" id="qlglp6BP)qooCBq/st`c"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="(eQ1KH]ECVGS}abnA?-{"> <value name="IF0"> <block type="logic_negate" id="-BBO}UlgalmS0kc=9.)-"> <value name="BOOL"> <block type="variables_get" id="]{rBfs(adBV0=Y{hJ5ih"> <field name="VAR" id="9^9)]MDDFHa[hoZ1VIo)">Zeitplan</field> </block> </value> </block> </value> <statement name="DO0"> <block type="schedule_create" id="$l77~QtH]/xymGu[(|tg"> <field name="NAME">Zeitplan</field> <value name="SCHEDULE"> <shadow type="field_cron" id="TuA{Fbgh|DowZ5J.([zx"> <field name="CRON">*/20 * * * *</field> </shadow> </value> <statement name="STATEMENT"> <block type="pushover" id="s7n^_jzih##(?`MQni_l"> <field name="INSTANCE">.1</field> <field name="SOUND">intermission</field> <field name="PRIORITY">-1</field> <field name="LOG">log</field> <value name="MESSAGE"> <shadow type="text"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="ZlZrp@m2NSqRky@`+Bf+"> <mutation items="7"></mutation> <value name="ADD0"> <block type="text" id="e++Oa.I;N)H@J?PVvFZ/"> <field name="TEXT">Die Aktuelle Temperatur von Holzheizung beträgt </field> </block> </value> <value name="ADD1"> <block type="get_value" id="=WbL^BbufhP#N2und%#/"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Temp_Keller.RL_Holz.temperature</field> </block> </value> <value name="ADD2"> <block type="text" id="9H78~vu?o~{Q-%h}o3b-"> <field name="TEXT"> °C.</field> </block> </value> <value name="ADD3"> <block type="text_newline" id="`g9zWq:C}fe]F_m9=0fq"> <field name="Type">\n</field> </block> </value> <value name="ADD4"> <block type="text" id="CmvEhnLL|!MLd49(#)3%"> <field name="TEXT">Die Aktuelle Vorlauftemperatur beträgt </field> </block> </value> <value name="ADD5"> <block type="get_value" id="t*F/#!_N(g@TgQCB;t2V"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Temp_Keller.VL_Heizung.temperature</field> </block> </value> <value name="ADD6"> <block type="text" id="gIt.Zfu7Fe.L-?5L45!t"> <field name="TEXT"> °C.</field> </block> </value> </block> </value> <value name="TITLE"> <block type="text" id="_h0SyRd`aI~)f:E`fU-%"> <field name="TEXT">Temperatur Holzheizung</field> </block> </value> <value name="URL"> <block type="text" id="kacCyA%}v)_-{.5[^Soz"> <field name="TEXT">http://192.168.0.110:8082/vis/index.html#02_Heizung</field> </block> </value> <value name="URL_TITLE"> <block type="text" id="%/@5,U;U=$iap8lwAi)d"> <field name="TEXT">Heizungsüberwachung</field> </block> </value> <value name="DEVICE"> <block type="get_value" id="GBW|W4h~QDW_eAh?q_,j"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Temp_Keller.RL_Holz.temperature</field> </block> </value> </block> </statement> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="schedule_clear" id="lD]xivSEpr%BIe:AOaeS"> <field name="NAME">Zeitplan</field> </block> </statement> <next> <block type="controls_if" id="x(VFw2:HV3s_TaaVHo-%"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="jD[k)h)Y7[TDBE9J_HW/" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="A+ydO|{$sipPXol(zKer" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="W)F/j)$?y*AGa7}SxxLZ"> <field name="OP">AND</field> <value name="A"> <block type="time_compare_ex" id="ab9q8%t{6DT~tJCL,gZ]"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id="{[^7SY.V.y5;M=VoID@D"> <field name="TEXT">08:00</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="d?AsO2q@w|.M,QC8A4*4"> <field name="TEXT">23:00</field> </shadow> </value> </block> </value> <value name="B"> <block type="logic_compare" id="yTA!$a[Qd^Y}JkmfD.3z"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="Xvhs[{D4Yl}A],5|rw=0"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Temp_Keller.RL_Holz.temperature</field> </block> </value> <value name="B"> <block type="math_number" id="?+}jIyskWZ(BRqw(i%%Y"> <field name="NUM">55</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="j*Q(t:f[O+J#m/!7LgKm"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="svw%Ce~Ld]m^2UW9q_(O"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Handys.iPhone_Elena</field> </block> </value> <value name="B"> <block type="logic_boolean" id="@r{k?h=O+Xw@)d4k*h7T"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="^j%dkisNiB3?p{KvK({*"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="!Y)31p$1O@mA)vd}jd2I"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.VIS.20min_Message</field> </block> </value> <value name="B"> <block type="logic_boolean" id="EMf|r{!KfT,37l#]Tz2q"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="#x2xdU,$FM_t5zkAjB}/"> <value name="IF0"> <block type="logic_negate" id="UD!XpWOui1ije}U;o3{N"> <value name="BOOL"> <block type="variables_get" id="eM7hwI7yAH[=TvmAo.B{"> <field name="VAR" id="YRlmu@j5_O9h,5*%eVzO">Zeitplan1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="schedule_create" id="XjKRS!_OyB(:TLfN36lc"> <field name="NAME">Zeitplan1</field> <value name="SCHEDULE"> <shadow type="field_cron" id="`NkcNj?J6lmFWm:9YYI,"> <field name="CRON">*/20 * * * *</field> </shadow> </value> <statement name="STATEMENT"> <block type="pushover" id="+5TKr`wo6|ZELt5Rh.;!"> <field name="INSTANCE">.1</field> <field name="SOUND">intermission</field> <field name="PRIORITY">-1</field> <field name="LOG">log</field> <value name="MESSAGE"> <shadow type="text"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="O5VFM+sD4~?v@RWW7%hN"> <mutation items="7"></mutation> <value name="ADD0"> <block type="text" id="L$vmHB$6?=DhRh_Z#d5n"> <field name="TEXT">Die Aktuelle Temperatur von Holzheizung beträgt </field> </block> </value> <value name="ADD1"> <block type="get_value" id="u7yR2RuU51*zW@sZT%2T"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Temp_Keller.RL_Holz.temperature</field> </block> </value> <value name="ADD2"> <block type="text" id="7H0i;6L#tmguWdb*dkOq"> <field name="TEXT"> °C.</field> </block> </value> <value name="ADD3"> <block type="text_newline" id="C=i,Sh7SzxWf85$_agC-"> <field name="Type">\n</field> </block> </value> <value name="ADD4"> <block type="text" id="E*~|*w[|~gdN:Qf)S8o5"> <field name="TEXT">Die Aktuelle Vorlauftemperatur beträgt </field> </block> </value> <value name="ADD5"> <block type="get_value" id="tlG0}nDY`|eRI^nQ2|M/"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Temp_Keller.VL_Heizung.temperature</field> </block> </value> <value name="ADD6"> <block type="text" id="PL/z)%4-B{~aH/`%9GM;"> <field name="TEXT"> °C.</field> </block> </value> </block> </value> <value name="TITLE"> <block type="text" id="%^^5t[k)W]efxlda6Csr"> <field name="TEXT">Temperatur Holzheizung</field> </block> </value> <value name="URL"> <block type="text" id="T#H}rJhEauMkO,JcD!=d"> <field name="TEXT">http://192.168.0.110:8082/vis/index.html#02_Heizung</field> </block> </value> <value name="URL_TITLE"> <block type="text" id="M$[aTs(Xk{QB3)h}#MZf"> <field name="TEXT">Heizungsüberwachung</field> </block> </value> <value name="DEVICE"> <block type="get_value" id="1$c?+6q(e}$#iqDaKa*l"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Temp_Keller.RL_Holz.temperature</field> </block> </value> </block> </statement> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="schedule_clear" id="_^-aM|lE~`b9jkon8[Xg"> <field name="NAME">Zeitplan1</field> </block> </statement> </block> </next> </block> </statement> </block> </xml>
-
@bloop sagte in Blockly Sendto in CRON funktioniert nicht:
Der CRON Block welcher mir alle 20min eine Benachrichtigung über pushover schickt scheint nicht mehr richtig verbunden zu sein. Dabei habe ich hier nichts verändert.
Hin und her geschoben hast Du vermutlich schon?
-
@codierknecht Ja hab ich bereits, es liegt auch nirgends ein loser Block rum.
Ebenfalls hab ich bereits versucht lediglich den CRON Block alleine laufen zu lassen. - Selber Fehler.
Wenn ich jedoch ein neues Skript erstelle und dort CRON als Auslöser für Pushover verwende funktioniert es.Ich habe mir jetzt das Blockly in Skript umgewandelt und versuche es so laufen zu lassen. eventuell funktioniert es ja dann...
-
@bloop sagte in Blockly Sendto in CRON funktioniert nicht:
Ich habe mir jetzt das Blockly in Skript umgewandelt und versuche es so laufen zu lassen. eventuell funktioniert es ja dann...
Mache ich mittlerweile nur noch.
Das lässt sich besser optimieren -
@codierknecht ja funktioniert
Sehe es jetzt aber nicht unbedingt als eigentliche Lösung des Problems. -
@bloop sagte in Blockly Sendto in CRON funktioniert nicht:
Sehe es jetzt aber nicht unbedingt als eigentliche Lösung des Problems.
Javascript-Instanz oder gar ioBroker mal neu gestartet?
Javascript "verstrubbelt" sich schon mal ganz gerne, wenn man da zu viel rumspielt.
Insbesondere, wenn da noch globale Scripte im Spiel sind (hast Du welche?) -
@bloop
Der ganze pushover-Block kam bei einem Adapterupdate (admin/javascript?) mal neu.
Zieh Dir einen neuen pushover-Block in dein vorhandenes Blockly und du siehst den Unterschied.
Da gibt es eine zusätzlichen Anschluss. Einfach Deine Text- und Wertezeilen auf den neuen pushover-Block rüberziehen, mit dem Alten austauschen und wieder einhängen.
Dann sollte auch die Prüfung reibungslos gehen. -
@rscsb
Perfekt!
Herzlichen Dank! Hat funktioniert!