NEWS
Trigger Zeitplan *GELÖST*
-
Hallo,
ich habe bei meinem Blockly das Problem, dass es bei Neustart doppelt ausgeführt wird.
Obwohl ich sogar das Skript anhalte. Ich muss den Javascript Adapter stoppen und starten.
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="uHjBHTuvzl2])UyuQ@JO">ttext</variable> <variable type="interval" id="Intervall">Intervall</variable> </variables> <block type="variables_set" id="a|YAOO[Ac8plUZ]nT)u~" x="-862" y="-412"> <field name="VAR" id="uHjBHTuvzl2])UyuQ@JO">ttext</field> <value name="VALUE"> <block type="text" id="lO4O[c,/so)oxd5+G0x`"> <field name="TEXT">Connected</field> </block> </value> <next> <block type="schedule" id="u~yj~;BmmcaStV9VG:2l"> <field name="SCHEDULE">*/5 * * * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="olp.@`vM{zKNofLF%!M5"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="KOf~!|k[0YNd%g=aVtrS" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="aG1R$zC:PyzJLM.uY60w" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="+pT7+fgv|GG]:WZN@Pn_"> <field name="ATTR">val</field> <field name="OID">mqtt.0.ESP_GAS.status.LWT</field> </block> </value> <value name="B"> <block type="logic_operation" id="CFMxgQ=3}$1lOx]ID{z]"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="9QKdgya@oLsa`#AW^H_?"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Heizstab.alive</field> </block> </value> <value name="B"> <block type="get_value" id="[`u|CwrswJ+u*QtfKs3}"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Esp_gross.status.LWT</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="s3N_X:N}:Bf}^_ZE#hQZ"> <field name="OP">OR</field> <value name="A"> <block type="variables_get" id="zQDA!{h|qtyT/_n[,;?Q"> <field name="VAR" id="uHjBHTuvzl2])UyuQ@JO">ttext</field> </block> </value> <value name="B"> <block type="logic_boolean" id="e:YkDltJ=dL`LH(3QB_P"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="!?#6^}AUpytcB!%|46fz"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="XVWZTp_~ua([~`t9?UlV"> <field name="TEXT">ok</field> </shadow> </value> </block> </statement> <statement name="ELSE"> <block type="debug" id="r(Ua%|Oii2|CTSS(gais"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="U[vABh8EsRGjzE%f67|#"> <field name="TEXT">nicht ok</field> </shadow> </value> </block> </statement> </block> </statement> </block> </next> </block> <block type="schedule" id="rPU6KcZgU,7oMXU*m}66" disabled="true" x="-12" y="-187"> <field name="SCHEDULE">*/10 * * * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="!W)e`A%JQ%{Redqd{tNl"> <value name="IF0"> <block type="logic_compare" id="bjS|{Ei3.f8$Fv^;giX1"> <field name="OP">GT</field> <value name="A"> <block type="math_arithmetic" id="lzl4?|SK59c827FDu0zC"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="2e#wfz!J-[}v(+5M1{t}"> <field name="NUM">1</field> </shadow> <block type="time_get" id="@48uDys)Iae4.+op;1rx"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">object</field> </block> </value> <value name="B"> <shadow type="math_number" id="~1K!f)oN@:1JriHjYPFR"> <field name="NUM">1</field> </shadow> <block type="get_value" id="qM]Hzy81f;`s115~d31!"> <field name="ATTR">ts</field> <field name="OID">0_userdata.0.Alexa.Neuer_Zustandddd</field> </block> </value> </block> </value> <value name="B"> <block type="math_number" id="1x:]kR#5{9L|e/q8v4VD"> <field name="NUM">20000</field> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="E.i=ZqC+5!w.c35+:}[_"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="2N}w,9QDR;K$k%ax96`r"> <field name="TEXT">test</field> </shadow> <block type="math_arithmetic" id=":y}RiK5z1}qkV9`l6(vO"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="U#0=Q/7{K9jSl7K-1_zh"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="`6|Z:tU]*W.D}.H-pt6e"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="time_get" id="`7US^K.Ux}meNP.}88,V"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">object</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="get_value" id="c}Tp[19(jtvo#ZC1]fK("> <field name="ATTR">ts</field> <field name="OID">0_userdata.0.Alexa.Neuer_Zustandddd</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="t:^unUoaS4l@0ta884U)"> <field name="NUM">1</field> </shadow> <block type="math_number" id="*;K_1urS]`D}|^zL@_ot"> <field name="NUM">1000</field> </block> </value> </block> </value> <next> <block type="debug" id="jM!tWXbwQbL(j(ONs67f"> <field name="Severity">debug</field> <value name="TEXT"> <shadow type="text" id="*??IKd*%bXqwBaQS9?b."> <field name="TEXT">test</field> </shadow> <block type="time_get" id="#*Uj]``MGW~-#:;j!hp3"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">object</field> </block> </value> <next> <block type="debug" id="?K]oiZC(9t_{(e%3{u]M"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="get_value" id="b/_10:I@)*qv~l~Onj{2"> <field name="ATTR">ts</field> <field name="OID">0_userdata.0.Alexa.Neuer_Zustandddd</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> <block type="on_ext" id="qzsp`.%as?5$)ny81sk+" disabled="true" x="-537" y="-112"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="5"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="]1GyCi{L!eXlvqT[V?7|"> <field name="oid">sonoff.0.Heizstab.alive</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="kOtXIzzc4L+t`-jQ)bEM"> <field name="oid">mqtt.0.FB-HEIZ.status.LWT</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="+p?2a9al;jzFNg,uGOWI"> <field name="oid">mqtt.0.ESP_GAS.status.LWT</field> </shadow> </value> <value name="OID3"> <shadow type="field_oid" id="]VS7Lfw`g*HE4OAydTnU"> <field name="oid">0_userdata.0.Alexa.Neuer_Zustandddd</field> </shadow> </value> <value name="OID4"> <shadow type="field_oid" id="kB@rY/cP=tJv_em48V9C"> <field name="oid">mqtt.0.TEMPHEIZ.status.LWT</field> </shadow> </value> <statement name="STATEMENT"> <block type="timeouts_clearinterval" id="|R#+Qn8ak]$+auTY3EYj"> <field name="NAME">Intervall</field> <next> <block type="timeouts_setinterval" id="bh)[b$I.b0~/+F)-jJ2^"> <field name="NAME">Intervall</field> <field name="INTERVAL">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="sendto_custom" id="ehf?F2p9-C/LaR*s;7YL"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="parameter1" with_statement="false"></mutation> <field name="INSTANCE">telegram.0</field> <field name="COMMAND">send</field> <field name="LOG">warn</field> <field name="WITH_STATEMENT">FALSE</field> <value name="ARG0"> <shadow type="text" id="t0(eeRg,vW-~.C922lXW"> <field name="TEXT"></field> </shadow> <block type="text_join" id="ZA:3d?wopUn%+rS)00cL"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="I]eMX|f2gC[$-yYkIZ-]"> <field name="TEXT">AUSFALL</field> </block> </value> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </xml> -
Hallo,
ich habe bei meinem Blockly das Problem, dass es bei Neustart doppelt ausgeführt wird.
Obwohl ich sogar das Skript anhalte. Ich muss den Javascript Adapter stoppen und starten.
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="uHjBHTuvzl2])UyuQ@JO">ttext</variable> <variable type="interval" id="Intervall">Intervall</variable> </variables> <block type="variables_set" id="a|YAOO[Ac8plUZ]nT)u~" x="-862" y="-412"> <field name="VAR" id="uHjBHTuvzl2])UyuQ@JO">ttext</field> <value name="VALUE"> <block type="text" id="lO4O[c,/so)oxd5+G0x`"> <field name="TEXT">Connected</field> </block> </value> <next> <block type="schedule" id="u~yj~;BmmcaStV9VG:2l"> <field name="SCHEDULE">*/5 * * * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="olp.@`vM{zKNofLF%!M5"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="KOf~!|k[0YNd%g=aVtrS" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="aG1R$zC:PyzJLM.uY60w" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="+pT7+fgv|GG]:WZN@Pn_"> <field name="ATTR">val</field> <field name="OID">mqtt.0.ESP_GAS.status.LWT</field> </block> </value> <value name="B"> <block type="logic_operation" id="CFMxgQ=3}$1lOx]ID{z]"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="9QKdgya@oLsa`#AW^H_?"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Heizstab.alive</field> </block> </value> <value name="B"> <block type="get_value" id="[`u|CwrswJ+u*QtfKs3}"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Esp_gross.status.LWT</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="s3N_X:N}:Bf}^_ZE#hQZ"> <field name="OP">OR</field> <value name="A"> <block type="variables_get" id="zQDA!{h|qtyT/_n[,;?Q"> <field name="VAR" id="uHjBHTuvzl2])UyuQ@JO">ttext</field> </block> </value> <value name="B"> <block type="logic_boolean" id="e:YkDltJ=dL`LH(3QB_P"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="!?#6^}AUpytcB!%|46fz"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="XVWZTp_~ua([~`t9?UlV"> <field name="TEXT">ok</field> </shadow> </value> </block> </statement> <statement name="ELSE"> <block type="debug" id="r(Ua%|Oii2|CTSS(gais"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="U[vABh8EsRGjzE%f67|#"> <field name="TEXT">nicht ok</field> </shadow> </value> </block> </statement> </block> </statement> </block> </next> </block> <block type="schedule" id="rPU6KcZgU,7oMXU*m}66" disabled="true" x="-12" y="-187"> <field name="SCHEDULE">*/10 * * * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="!W)e`A%JQ%{Redqd{tNl"> <value name="IF0"> <block type="logic_compare" id="bjS|{Ei3.f8$Fv^;giX1"> <field name="OP">GT</field> <value name="A"> <block type="math_arithmetic" id="lzl4?|SK59c827FDu0zC"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="2e#wfz!J-[}v(+5M1{t}"> <field name="NUM">1</field> </shadow> <block type="time_get" id="@48uDys)Iae4.+op;1rx"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">object</field> </block> </value> <value name="B"> <shadow type="math_number" id="~1K!f)oN@:1JriHjYPFR"> <field name="NUM">1</field> </shadow> <block type="get_value" id="qM]Hzy81f;`s115~d31!"> <field name="ATTR">ts</field> <field name="OID">0_userdata.0.Alexa.Neuer_Zustandddd</field> </block> </value> </block> </value> <value name="B"> <block type="math_number" id="1x:]kR#5{9L|e/q8v4VD"> <field name="NUM">20000</field> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="E.i=ZqC+5!w.c35+:}[_"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="2N}w,9QDR;K$k%ax96`r"> <field name="TEXT">test</field> </shadow> <block type="math_arithmetic" id=":y}RiK5z1}qkV9`l6(vO"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="U#0=Q/7{K9jSl7K-1_zh"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="`6|Z:tU]*W.D}.H-pt6e"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="time_get" id="`7US^K.Ux}meNP.}88,V"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">object</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="get_value" id="c}Tp[19(jtvo#ZC1]fK("> <field name="ATTR">ts</field> <field name="OID">0_userdata.0.Alexa.Neuer_Zustandddd</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="t:^unUoaS4l@0ta884U)"> <field name="NUM">1</field> </shadow> <block type="math_number" id="*;K_1urS]`D}|^zL@_ot"> <field name="NUM">1000</field> </block> </value> </block> </value> <next> <block type="debug" id="jM!tWXbwQbL(j(ONs67f"> <field name="Severity">debug</field> <value name="TEXT"> <shadow type="text" id="*??IKd*%bXqwBaQS9?b."> <field name="TEXT">test</field> </shadow> <block type="time_get" id="#*Uj]``MGW~-#:;j!hp3"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">object</field> </block> </value> <next> <block type="debug" id="?K]oiZC(9t_{(e%3{u]M"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="get_value" id="b/_10:I@)*qv~l~Onj{2"> <field name="ATTR">ts</field> <field name="OID">0_userdata.0.Alexa.Neuer_Zustandddd</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> <block type="on_ext" id="qzsp`.%as?5$)ny81sk+" disabled="true" x="-537" y="-112"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="5"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="]1GyCi{L!eXlvqT[V?7|"> <field name="oid">sonoff.0.Heizstab.alive</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="kOtXIzzc4L+t`-jQ)bEM"> <field name="oid">mqtt.0.FB-HEIZ.status.LWT</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="+p?2a9al;jzFNg,uGOWI"> <field name="oid">mqtt.0.ESP_GAS.status.LWT</field> </shadow> </value> <value name="OID3"> <shadow type="field_oid" id="]VS7Lfw`g*HE4OAydTnU"> <field name="oid">0_userdata.0.Alexa.Neuer_Zustandddd</field> </shadow> </value> <value name="OID4"> <shadow type="field_oid" id="kB@rY/cP=tJv_em48V9C"> <field name="oid">mqtt.0.TEMPHEIZ.status.LWT</field> </shadow> </value> <statement name="STATEMENT"> <block type="timeouts_clearinterval" id="|R#+Qn8ak]$+auTY3EYj"> <field name="NAME">Intervall</field> <next> <block type="timeouts_setinterval" id="bh)[b$I.b0~/+F)-jJ2^"> <field name="NAME">Intervall</field> <field name="INTERVAL">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="sendto_custom" id="ehf?F2p9-C/LaR*s;7YL"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="parameter1" with_statement="false"></mutation> <field name="INSTANCE">telegram.0</field> <field name="COMMAND">send</field> <field name="LOG">warn</field> <field name="WITH_STATEMENT">FALSE</field> <value name="ARG0"> <shadow type="text" id="t0(eeRg,vW-~.C922lXW"> <field name="TEXT"></field> </shadow> <block type="text_join" id="ZA:3d?wopUn%+rS)00cL"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="I]eMX|f2gC[$-yYkIZ-]"> <field name="TEXT">AUSFALL</field> </block> </value> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </xml> -
@nicoloma Abfrage alle 5 Sekunden ?
Ansonsten; https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1 -
@nicoloma "ttext oder wahr" ist ......
eigentlich ist das Blockly sinnfrei !Erklär mal was Du in welchen Abhängigkeiten schalten möchtest... weil mit "= oder und mix" wird das so nix werden...
@djmarc75 Warum der sinnfrei ist. Weil ich mittlerweile alles gelöscht habe weil es meine raspberry jedes mal zerschiesst.
Sinn:
Ich will will alle 10 sekunden prüfen ob alle D1 minis noch aktuelle Daten abrufen.Soweit bin ich jetzt nicht mehr weil ich alles gelöcht habe. Ich hänge nun am Trigger der leider beim Neustart doppelt läuft. Und dann mein Iobroker abstürzen lässt
-
@nicoloma "ttext oder wahr" ist ......
eigentlich ist das Blockly sinnfrei !Erklär mal was Du in welchen Abhängigkeiten schalten möchtest... weil mit "= oder und mix" wird das so nix werden...
@djmarc75
Zukünftig will das alle 10 oder 20 Sekunden geprüft wird ob die letzten Daten nicht älter als 20 Sekunden sind.Wenn ja will ich wissen welcher D1 Mini keine Daten mehr sendet. Danach soll er Alarm melden.
Ich benutze schon ein Skirpt mit einem Heizstab. Ich habe angst das mein Heizstab mit alten Temperaturdaten arbeitet.
-
@nicoloma "ttext oder wahr" ist ......
eigentlich ist das Blockly sinnfrei !Erklär mal was Du in welchen Abhängigkeiten schalten möchtest... weil mit "= oder und mix" wird das so nix werden...
-
@djmarc75 Warum der sinnfrei ist. Weil ich mittlerweile alles gelöscht habe weil es meine raspberry jedes mal zerschiesst.
Sinn:
Ich will will alle 10 sekunden prüfen ob alle D1 minis noch aktuelle Daten abrufen.Soweit bin ich jetzt nicht mehr weil ich alles gelöcht habe. Ich hänge nun am Trigger der leider beim Neustart doppelt läuft. Und dann mein Iobroker abstürzen lässt
@nicoloma sagte in Trigger Zeitplan:
mein Iobroker abstürzen lässt
das liegt nicht an diesem Skript... da hast Du sicher ein anderes in Endlosschleife laufen.
Geh mal bitte Deine Skripte durch und wenn da eins mit "Schleifen" ist deaktiviere diese..
-
@nicoloma sagte in Trigger Zeitplan:
mein Iobroker abstürzen lässt
das liegt nicht an diesem Skript... da hast Du sicher ein anderes in Endlosschleife laufen.
Geh mal bitte Deine Skripte durch und wenn da eins mit "Schleifen" ist deaktiviere diese..
-
@djmarc75 sagte in Trigger Zeitplan:
nd wenn da eins mit "Schleifen" ist deaktiviere diese..
ok, ich suche mal. Danke schonmal. Obwohl ich mit schleife nicht arbeite
-
@djmarc75 Es ist nun weg. Ich glaube du hattest Recht.
Danke nun wird mein Skript tatsächlich nur alle 5 Sekunden ausgeführt.Jetzt fange ich wieder an dran zu bauen. Danke
Ich will nichts schalten. Ich will prüfen ob die D1 Minis ich im Haus habe noch aktuelle Daten senden .. Wenn nicht, schalte ich mein Heizstab Sicherheithalber ab...
Nochmals Danke
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden