NEWS
Kombination Timeout und separater Trigger...
-
Ich habe ein kleines Script geschrieben, welches eine Außenleuchte mit single-tap anschalten und nach 3 min automatisch oder mittels dubble-tap abschalten soll. Beide Varianten funktionieren für sich gut, jedoch in Kombination scheint das Timeout vor Ablauf ein Wiedereinschalten zu verhindern.
Das liegt sicher an meiner nachgeordneten Anordnung. Wie mache ich das aber richtig, dass ich die Wahl habe wie ich es ausschalte?<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="on" id="/DxM!mVUY#r`OHm1FC{l" x="113" y="-462"> <field name="OID">zigbee.0.048727fffed22c84.single</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="a=ZDm,@UO}MDjnD_(1`E"> <value name="IF0"> <block type="logic_negate" id="{mv,Dp`2iNb1)-5-oG}I"> <value name="BOOL"> <block type="timeouts_gettimeout" id="+o-Tp:Q{9(m5j@1[=C#K"> <field name="NAME">timeout</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="YE.nJTMVrzK20c9W!6?^"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.5c0272fffe88e69d.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="%d*;f.x-`^3nf:uqIZD|"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="debug" id="Mh,F0T0$P,^^8pS=wXTa"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="mU+5FDhwH(l2Qg$cRrKP"> <field name="TEXT">test_an</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="Ba6fJ3yhq:/;r7d23dN@"> <field name="NAME">timeout</field> <field name="DELAY">3</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id="[`D#4gG_LgL%*TeBDtbC"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.5c0272fffe88e69d.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="(^~m]o~sRpg@%}$GR4ro"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="debug" id="nY~+at61RWPBL9xFEPe}"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="s~x@`raX7pBT^SNHYgLc"> <field name="TEXT">test_aus durch time</field> </shadow> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="on" id="]x}cfW:d-LK[/W1LjZPo"> <field name="OID">zigbee.0.048727fffed22c84.double</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="hGqg|_j}1Iwo~MDwC7!8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.5c0272fffe88e69d.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@y-EAK2)PyPgE|so$0zG"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="debug" id="3?``JT+l3EIDjzfty*!o"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="ctfJN=$z/odv.m%WR6:Y"> <field name="TEXT">test_aus durch doppel</field> </shadow> </value> </block> </next> </block> </statement> </block> </next> </block> </xml> -
Es ist nicht zielführend, den Blockly-Code ohne eine Blockly-Grafik hier einzustellen.
Den werden die wenigsten Helfer in ihr System laden.Besser die Grafik zeigen.
-
Ich habe ein kleines Script geschrieben, welches eine Außenleuchte mit single-tap anschalten und nach 3 min automatisch oder mittels dubble-tap abschalten soll. Beide Varianten funktionieren für sich gut, jedoch in Kombination scheint das Timeout vor Ablauf ein Wiedereinschalten zu verhindern.
Das liegt sicher an meiner nachgeordneten Anordnung. Wie mache ich das aber richtig, dass ich die Wahl habe wie ich es ausschalte?<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="on" id="/DxM!mVUY#r`OHm1FC{l" x="113" y="-462"> <field name="OID">zigbee.0.048727fffed22c84.single</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="a=ZDm,@UO}MDjnD_(1`E"> <value name="IF0"> <block type="logic_negate" id="{mv,Dp`2iNb1)-5-oG}I"> <value name="BOOL"> <block type="timeouts_gettimeout" id="+o-Tp:Q{9(m5j@1[=C#K"> <field name="NAME">timeout</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="YE.nJTMVrzK20c9W!6?^"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.5c0272fffe88e69d.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="%d*;f.x-`^3nf:uqIZD|"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="debug" id="Mh,F0T0$P,^^8pS=wXTa"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="mU+5FDhwH(l2Qg$cRrKP"> <field name="TEXT">test_an</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="Ba6fJ3yhq:/;r7d23dN@"> <field name="NAME">timeout</field> <field name="DELAY">3</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id="[`D#4gG_LgL%*TeBDtbC"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.5c0272fffe88e69d.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="(^~m]o~sRpg@%}$GR4ro"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="debug" id="nY~+at61RWPBL9xFEPe}"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="s~x@`raX7pBT^SNHYgLc"> <field name="TEXT">test_aus durch time</field> </shadow> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="on" id="]x}cfW:d-LK[/W1LjZPo"> <field name="OID">zigbee.0.048727fffed22c84.double</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="hGqg|_j}1Iwo~MDwC7!8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.5c0272fffe88e69d.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@y-EAK2)PyPgE|so$0zG"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="debug" id="3?``JT+l3EIDjzfty*!o"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="ctfJN=$z/odv.m%WR6:Y"> <field name="TEXT">test_aus durch doppel</field> </shadow> </value> </block> </next> </block> </statement> </block> </next> </block> </xml>@WOOD_Byte said: in Kombination scheint das Timeout vor Ablauf ein Wiedereinschalten zu verhindern.
Ergänze "stop timeout" bei "double":

-
Es ist nicht zielführend, den Blockly-Code ohne eine Blockly-Grafik hier einzustellen.
Den werden die wenigsten Helfer in ihr System laden.Besser die Grafik zeigen.
@Meister-Mopper said in Kombination Timeout und separater Trigger...:
Es ist nicht zielführend, den Blockly-Code ohne eine Blockly-Grafik hier einzustellen.
Den werden die wenigsten Helfer in ihr System laden.Besser die Grafik zeigen.
Danke für den Hinweis!
-
@WOOD_Byte said: in Kombination scheint das Timeout vor Ablauf ein Wiedereinschalten zu verhindern.
Ergänze "stop timeout" bei "double":

