NEWS
Anwesenheit mit Zeit Puffer
-
Hallo,
wer kann mir helfen mein script etwas zu erweitern. Es passiert mal das eine Person für 1 Sekunde weg ist und dann wieder da. Dadurch löst aber die Alarmanlage aus.Wie kann ich nun einen 10 Sekunden Puffer einbauen ? Danke
<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="[Kf+~E]`WU^B|jj/b_-+" x="-462" y="-562"> <mutation items="5"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Z9?_mgxHczl;`*w?,cOE"> <field name="oid">EIGENE_OBJEKTE.0.ANWESENHEIT.chris</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="Z.Ksmjm6xGSjLN-FD6mJ"> <field name="oid">EIGENE_OBJEKTE.0.ANWESENHEIT.tanja</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="Il)%j0Ij9-fb0_4*XKCP"> <field name="oid">EIGENE_OBJEKTE.0.ANWESENHEIT.marcel</field> </shadow> </value> <value name="OID3"> <shadow type="field_oid" id="39b7_XhHjDLIGoq5ytJ3"> <field name="oid">EIGENE_OBJEKTE.0.ANWESENHEIT.milena</field> </shadow> </value> <value name="OID4"> <shadow type="field_oid" id="-3*1qo$UUm$etEqID$_C"> <field name="oid">EIGENE_OBJEKTE.0.ANWESENHEIT.gast</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="0.)bcIfB?@i~a`;FHOE1"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="GOY-!e1]#zXUvvk`q]va" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="m[S__0Qq,ejpAVNU?Sjt" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="y!6lR9zP]kftTt`)G$Cl" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="Y*ayI^IMzkFk}r@U`=Z%" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="tA)ge`.hwKg0E-XKs~v5"> <field name="ATTR">val</field> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.chris</field> </block> </value> <value name="B"> <block type="get_value" id="z8G;`UV.pYvI~]wsGK%a"> <field name="ATTR">val</field> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.tanja</field> </block> </value> </block> </value> <value name="B"> <block type="get_value" id="7+WNSriRnZzM,9dIckSH"> <field name="ATTR">val</field> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.gast</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="J67*dVUc$b[4#CJ4y^nS" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="0.n3`q$K|V~ZzI2yi*A|"> <field name="ATTR">val</field> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.marcel</field> </block> </value> <value name="B"> <block type="get_value" id="xQ(+%ts?9qdF_:1t1g%g"> <field name="ATTR">val</field> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.milena</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_boolean" id="FKsX^!Blk}@JlR-wo.bp"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=",%L+mbbI0-6pgQ(s,^~4"> <mutation delay_input="false"></mutation> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.einerda</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="-d-(C@l-5@g`Kw,y^u?x"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="ZT#9(7|YkhYTdiZ{/t?m"> <mutation delay_input="false"></mutation> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.einerda</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="aGFvgp#sgksLT;f^qQ2?"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </xml>
code_text
-
Hab mal mit Timeout versucht sollte doch so klappen?
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="undefined" id="timeout">timeout</variable> </variables> <block type="on_ext" id="[Kf+~E]`WU^B|jj/b_-+" x="-462" y="-562"> <mutation items="5"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Z9?_mgxHczl;`*w?,cOE"> <field name="oid">EIGENE_OBJEKTE.0.ANWESENHEIT.chris</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="Z.Ksmjm6xGSjLN-FD6mJ"> <field name="oid">EIGENE_OBJEKTE.0.ANWESENHEIT.tanja</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="Il)%j0Ij9-fb0_4*XKCP"> <field name="oid">EIGENE_OBJEKTE.0.ANWESENHEIT.marcel</field> </shadow> </value> <value name="OID3"> <shadow type="field_oid" id="39b7_XhHjDLIGoq5ytJ3"> <field name="oid">EIGENE_OBJEKTE.0.ANWESENHEIT.milena</field> </shadow> </value> <value name="OID4"> <shadow type="field_oid" id="-3*1qo$UUm$etEqID$_C"> <field name="oid">EIGENE_OBJEKTE.0.ANWESENHEIT.gast</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="0.)bcIfB?@i~a`;FHOE1"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="GOY-!e1]#zXUvvk`q]va" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="m[S__0Qq,ejpAVNU?Sjt" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="y!6lR9zP]kftTt`)G$Cl" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="Y*ayI^IMzkFk}r@U`=Z%" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="tA)ge`.hwKg0E-XKs~v5"> <field name="ATTR">val</field> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.chris</field> </block> </value> <value name="B"> <block type="get_value" id="z8G;`UV.pYvI~]wsGK%a"> <field name="ATTR">val</field> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.tanja</field> </block> </value> </block> </value> <value name="B"> <block type="get_value" id="7+WNSriRnZzM,9dIckSH"> <field name="ATTR">val</field> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.gast</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="J67*dVUc$b[4#CJ4y^nS" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="0.n3`q$K|V~ZzI2yi*A|"> <field name="ATTR">val</field> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.marcel</field> </block> </value> <value name="B"> <block type="get_value" id="xQ(+%ts?9qdF_:1t1g%g"> <field name="ATTR">val</field> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.milena</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_boolean" id="FKsX^!Blk}@JlR-wo.bp"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id=";rry:kI$#ZQG27n2-$DF"> <field name="NAME">timeout</field> <next> <block type="control" id=",%L+mbbI0-6pgQ(s,^~4"> <mutation delay_input="false"></mutation> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.einerda</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="-d-(C@l-5@g`Kw,y^u?x"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="x_b72sR_jjYt5sOSIjw,"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="]883rCf]ky2;OAr8%HB="> <field name="NAME">timeout</field> <field name="DELAY">15</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="ZT#9(7|YkhYTdiZ{/t?m"> <mutation delay_input="false"></mutation> <field name="OID">EIGENE_OBJEKTE.0.ANWESENHEIT.einerda</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="aGFvgp#sgksLT;f^qQ2?"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </xml>