Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Anwesenheit mit Zeit Puffer

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Anwesenheit mit Zeit Puffer

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      ChrisXY last edited by

      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

      1 Reply Last reply Reply Quote 0
      • C
        ChrisXY last edited by ChrisXY

        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>
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate

        871
        Online

        31.8k
        Users

        80.0k
        Topics

        1.3m
        Posts

        1
        2
        155
        Loading More Posts
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as topic
        Log in to reply
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
        The ioBroker Community 2014-2023
        logo