Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Bitte um Hilfe: Push wenn was länger als Zeit x offline ist

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Bitte um Hilfe: Push wenn was länger als Zeit x offline ist

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

      Hi Leute!
      Ich hab im Keller eine wemos.
      Ich möchte gerne falls der länger als 1 Stunde offline ist eine Push alle 15 Minuten bekommen.

      Aktuell glaub ich kommt die Nachricht wenn wer kurz offline ist dann nach 1 stunde.

      es geht mir darum eien Info zu bekommen wenn der wirklich für längere Zeit offline ist.

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="interval" id="Intervall">Intervall</variable>
        </variables>
        <block type="on_ext" id="6=m2OGAHG*oml0Xu##IP" x="-220" y="-225">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="R6aI=!j;pG6Luf#id_)*">
              <field name="oid">sonoff.0.Wasseralarm-Heizung.alive</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="@lU/Mzy$?8@7cI_1|;AM">
              <mutation else="1"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="w{j/h@}El*#sAAmR$.0@">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="uW2!f7yyBy2_8%I.3C5/">
                      <field name="ATTR">val</field>
                      <field name="OID">sonoff.0.Wasseralarm-Heizung.alive</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id=")`6aw}@GZGqyolr!yy4[">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="timeouts_setinterval" id="R!,^Uy^%jfMZ6Tmaso?Q">
                  <field name="NAME">Intervall</field>
                  <field name="INTERVAL">45</field>
                  <field name="UNIT">min</field>
                  <statement name="STATEMENT">
                    <block type="pushover" id="v%=0@1y~EU?*b3BoaQ44">
                      <field name="INSTANCE"></field>
                      <field name="SOUND"></field>
                      <field name="PRIORITY">0</field>
                      <field name="LOG"></field>
                      <value name="MESSAGE">
                        <shadow type="text" id="s=E=5[um8=a2ss$mL$8J">
                          <field name="TEXT">Wassersensor der Heizung ist offline</field>
                        </shadow>
                      </value>
                    </block>
                  </statement>
                </block>
              </statement>
              <statement name="ELSE">
                <block type="timeouts_clearinterval" id="!3xY69o2:ttqbE05S-J^">
                  <field name="NAME">Intervall</field>
                </block>
              </statement>
            </block>
          </statement>
        </block>
        <block type="logic_compare" id="%EC.g(^=!JB;ZF7D!j9t" x="-60" y="-108">
          <field name="OP">EQ</field>
        </block>
      </xml>
      

      Bildschirmfoto 2020-11-07 um 07.52.30.png

      sda ich nur so ein kleiner Pfuscher bin wäre super wenn es mir wer richtig zusammenstellen könnte, dann kann ich mir das als Vorlage für andere nehmen

      danke für eure Hilfe

      tom

      Asgothian 1 Reply Last reply Reply Quote 0
      • Asgothian
        Asgothian Developer @freaktech last edited by Asgothian

        @freaktech was du möchtest:

        • trigger auf den datenpunkt, wurde geändert
        • stop Intervall
        • set Variable blanket =0
        • Abfrage ob der DP wahr ist. Wenn nein:
          — start Intervall 15 Minuten, Darin: erhöhe blanket um 1, wenn blanket > 3 Meldung.

        Das war’s dann auch.

        A.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate

        426
        Online

        32.0k
        Users

        80.4k
        Topics

        1.3m
        Posts

        2
        2
        277
        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