Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Anwesenheit mit Zeit Puffer

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    3.5k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

Anwesenheit mit Zeit Puffer

Geplant Angeheftet Gesperrt Verschoben Blockly
2 Beiträge 1 Kommentatoren 178 Aufrufe 1 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • C Offline
    C Offline
    ChrisXY
    schrieb am zuletzt editiert von
    #1

    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 Antwort Letzte Antwort
    0
    • C Offline
      C Offline
      ChrisXY
      schrieb am zuletzt editiert von ChrisXY
      #2

      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 Antwort Letzte Antwort
      0
      Antworten
      • In einem neuen Thema antworten
      Anmelden zum Antworten
      • Älteste zuerst
      • Neuste zuerst
      • Meiste Stimmen


      Support us

      ioBroker
      Community Adapters
      Donate

      595

      Online

      32.7k

      Benutzer

      82.4k

      Themen

      1.3m

      Beiträge
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
      ioBroker Community 2014-2025
      logo
      • Anmelden

      • Du hast noch kein Konto? Registrieren

      • Anmelden oder registrieren, um zu suchen
      • Erster Beitrag
        Letzter Beitrag
      0
      • Home
      • Aktuell
      • Tags
      • Ungelesen 0
      • Kategorien
      • Unreplied
      • Beliebt
      • GitHub
      • Docu
      • Hilfe