NEWS
[Gelöst] Brauche Hilfe bei Script zwecks Abbruch
-
In jedem Timeout das vorherige Timeout nochmals stoppen?
Also in TimeOut2 TimeOut stoppen?
Und in TimeOut3 Timeout2 stoppen?So?

@superdad
Ich vermute, @Asgothian meint hier den "Sonst"-Teil.
Hier zuerst die timeouts beenden und dann die states setzen.
Also einfach die Reihenfolge ändern.Die anderen Stopps dürften aber auch nicht schaden.
-
@superdad
Ich vermute, @Asgothian meint hier den "Sonst"-Teil.
Hier zuerst die timeouts beenden und dann die states setzen.
Also einfach die Reihenfolge ändern.Die anderen Stopps dürften aber auch nicht schaden.
@codierknecht
OK!
Vielen Dank für eure Hilfe! -
In jedem Timeout das vorherige Timeout nochmals stoppen?
Also in TimeOut2 TimeOut stoppen?
Und in TimeOut3 Timeout2 stoppen?So?

-
@codierknecht
Ich habe es jetzt so gelöst:<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout">timeout</variable> <variable type="timeout" id="timeout2">timeout2</variable> <variable type="timeout" id="timeout3">timeout3</variable> </variables> <block type="on" id="WZ_(od6E#y-!g+dGW^q-" x="-763" y="-763"> <field name="OID">javascript.0.Beregnung_Automatik.0.Trigger</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <comment pinned="false" h="80" w="160">https://forum.iobroker.net/topic/75874/brauche-hilfe-bei-script-zwecks-abbruch</comment> <statement name="STATEMENT"> <block type="controls_if" id="/+`C^0DH-iCEFhzp7zpU"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="{hXB(@7R8SELbA:,}j:y"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="comment" id="s6Tjlk2XfA~;oyi6Ho#K"> <field name="COMMENT">Kreis 1 beregnen</field> <next> <block type="comment" id="**ZOkO|t(nloQjPh5^4a"> <field name="COMMENT">Ventil Kreis3 einschalten</field> <next> <block type="control" id="u[dc7@uy6UG}!{8y.;f5"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.NEQ1316670.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="uLG)sOBZQ*]rd8-GG,iN"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="(:.ur#%1w-GyiTwyo*N6"> <field name="COMMENT">Pumpe einschalten</field> <next> <block type="control" id="KTX}qiXddSGRk$N_AgKN"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff_Pumpe_Sprenger.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="O;:?;ndY1bwZ+ZwSdzN,"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="2lZbt0zwk!V3%dMZ~5iA"> <field name="COMMENT">Zigbee Ventil Gewächshaus einschalten</field> <next> <block type="control" id="-_0k`$U5c2$8Vs8QED5c"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.9035eafffef8fd3e.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="?.kba4^[.frs%pzhEHd="> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="timeouts_settimeout" id="m|R)[SpmaQKub1yu:7D?"> <field name="NAME">timeout</field> <field name="DELAY">20</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="U{cOMC]#Zea}u[hyayFY"> <field name="COMMENT">Umschalten auf Kreis1</field> <next> <block type="comment" id="S*=r-gwj+r7.%5d#kGyT"> <field name="COMMENT">Ventil Kreis3 und Zigbee Ventil Gewächshaus schließen</field> <next> <block type="control" id="BWQ79/.X)U17qH`W@ncD"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.NEQ1316670.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="W_D,,p@u8GbT4W]^=s-|"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="}Y{XoE)*kMlnWuKtc72G"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.9035eafffef8fd3e.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="6K(_u*v),8b+pK{qn:p="> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="33w54dn?Q/XX=yW00Yjc"> <field name="COMMENT">Ventil Kreis1 Zigbee Ventil Hochbeete einschalten</field> <next> <block type="control" id="Z6-BzVop=S$7lr;78C6L"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.NEQ1316670.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="E4?J1t[JpJa0IRYpuUpU"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="xUmBG9q.A;fNSpj7a}RD"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.9035eafffef8fae6.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="ylx{dRs0-1q{=-MyXBeB"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="timeouts_settimeout" id="[Ia2J?K:4=?`)z#G%z`l"> <field name="NAME">timeout2</field> <field name="DELAY">30</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="4:LQzzc9|QPNRmPB%z;o"> <field name="COMMENT">Umschalten auf Kreis 2</field> <next> <block type="comment" id=",FxE_3wpEJH0}xP+e/$c"> <field name="COMMENT">Ventil Kreis1 + Zigbee Ventil Hochbeete ausschalten</field> <next> <block type="control" id="VOz{2*IyM=$Og/)wBU|}"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.NEQ1316670.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Iy(2b,F-;PjZJw@v`a.Z"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="ly:?si!CmD*70a}+#V.+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.9035eafffef8fae6.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="G75uRii.r+!0-YeY*}Tf"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="/$3v$0cIQLn-Z)Opq/HF"> <field name="COMMENT">Ventil Kreis2 + Zigbee Ventil Zaun einschalten</field> <next> <block type="control" id="He`m|x%P^o+`Gc[,kvPB"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.NEQ1316670.2.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="M`9CndBG2zDiagMe2z8F"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id=")Bp`F+{!my5o|Dm%#:sQ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.28dba7fffeaff176.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="mky_jGMsQyk)0g$YuzQC"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="timeouts_settimeout" id="+uzziVMW:A$D91q4MyJd"> <field name="NAME">timeout3</field> <field name="DELAY">20</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="^;eoCQ#OJV3i:y]I,@f}"> <field name="COMMENT">Pumpe ausschalten</field> <next> <block type="control" id=":U#BVl3rS7)7dod!,}^@"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff_Pumpe_Sprenger.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="9)2SRQ;Y-jPB(]2R4=i8"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="41O0ArIxwKj#SC:p!9L?"> <field name="COMMENT">Ventil Kreis2 + Zigbee Ventil Zaun ausschalten</field> <next> <block type="control" id="~^Ruxg,}VajPeICwL%}w"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.NEQ1316670.2.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="hm*2I43v7Vc5d/5-RJk."> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="x)zuVwkpz{C*;FI30Z*p"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.28dba7fffeaff176.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Twg%LH@L~Ci*2YVFPewG"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="=+[yk8P^UseTrzr7[jvp"> <field name="COMMENT">Trigger auf false</field> <next> <block type="control" id="%N-Lsb5UMymK//4.U!9C"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Beregnung_Automatik.0.Trigger</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="TI$?BnQ.XL/==)sZ*}mW"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="comment" id="k|O#9^V@imu(ArsoCx9F"> <field name="COMMENT">Pumpe ausschalten</field> <next> <block type="control" id="$wCL%H?OD{u4?9I0W4,#"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff_Pumpe_Sprenger.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_I)n?2nf:Zpx^,Eq,Vo/"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="|wH9d($;iYEg%Awg^x1T"> <field name="COMMENT">Ventile 1-3 schließen</field> <next> <block type="control" id="e,dRIdJ0pauN:ddef)Q{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.NEQ1316670.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Bot5x4gf8:Im{+.b!B`|"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="-IrY|-7~nUOy0?(fny%P"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.NEQ1316670.2.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="__6WM(n}UQaV_x/QWMbB"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="7L`Rq)$kfeeCbS?fEcX,"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.NEQ1316670.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Dz(LW$Hf,9[u1vW:Fl%-"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="6Ww1LcrL(uR/S]%tlApW"> <field name="COMMENT">Zigbee Ventile 1-3 schließen</field> <next> <block type="control" id="3@w25G,t|!t}rndKuVm9"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.28dba7fffeaff176.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="{V)FjV?5Ns5`w?~zW=kN"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="Ei(3viA[C=5Kz)XE#=c+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.9035eafffef8fae6.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="PMxKt)J6Py1,/fU.^J0/"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="Jj)_~pS%D1Cf6w6i?Sr."> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.9035eafffef8fd3e.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="aKWLc:j`g~oJA!PgM}h;"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="timeouts_cleartimeout" id="7|fOliT8c=O:e6EL42+)"> <field name="NAME">timeout</field> <next> <block type="timeouts_cleartimeout" id="GKT1(cN8_4~S`rCMOOf{"> <field name="NAME">timeout2</field> <next> <block type="timeouts_cleartimeout" id="8PC*b3$_%]Z+QKdiQbj5"> <field name="NAME">timeout3</field> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </xml>

Hoffe, dass es ohne Fehler ist.
-
@superdad sagte: Ich habe es jetzt so gelöst:
Ich würde ein Minuten-Intervall mit einer Zählvariablen verwenden.

EDIT: Zusätzlich mit Ansagen (wie im ersten Beitrag):

@paul53 sagte in Brauche Hilfe bei Script zwecks Abbruch:
@superdad sagte: Ich habe es jetzt so gelöst:
Ich würde ein Minuten-Intervall mit einer Zählvariablen verwenden.

Warum einen 1-Minütigen Heartbeat wenn die 3 verschachtelten Timeouts sauber laufen ? Das erschliesst sich mir nicht.
@codierknecht sagte in Brauche Hilfe bei Script zwecks Abbruch:
Ich vermute, @Asgothian meint hier den "Sonst"-Teil.
Korrekt. Das nur im Sonst-Teil\
A.
-
@paul53 sagte in Brauche Hilfe bei Script zwecks Abbruch:
@superdad sagte: Ich habe es jetzt so gelöst:
Ich würde ein Minuten-Intervall mit einer Zählvariablen verwenden.

Warum einen 1-Minütigen Heartbeat wenn die 3 verschachtelten Timeouts sauber laufen ? Das erschliesst sich mir nicht.
@codierknecht sagte in Brauche Hilfe bei Script zwecks Abbruch:
Ich vermute, @Asgothian meint hier den "Sonst"-Teil.
Korrekt. Das nur im Sonst-Teil\
A.
@asgothian sagte: Warum einen 1-Minütigen Heartbeat wenn die 3 verschachtelten Timeouts sauber laufen ?
Ich finde es übersichtlicher.
-
@asgothian sagte: Warum einen 1-Minütigen Heartbeat wenn die 3 verschachtelten Timeouts sauber laufen ?
Ich finde es übersichtlicher.
@paul53 sagte in Brauche Hilfe bei Script zwecks Abbruch:
Ich finde es übersichtlicher.
Ich nicht ;-)
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