Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] nach 30 Sek. Gerät offline Meldung

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] nach 30 Sek. Gerät offline Meldung

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

      Ich habe ein paar MCUs und würde gerne wissen, wenn ein Gerät länger als 30 sek Offline ist das ich dann eine Meldung bekomme, wie kann ich das am besten machen !?
      Da ab und an ein Gerät über den Ping Adapter ein paar millisekunden Offline ist bekomme ich ständig eine Meldung was nicht nötig ist und auch etwas nervig ist.
      @paul53 vielleicht magst du auch mal drüber gucken, du bist ja immer verdammt schnell in sowas. 😊
      Danke schon mal für jegliche Hilfe

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="on" id="yH8ve-Lanek~dc{Drg8D" x="-862" y="23">
          <field name="OID">ping.0.AquaPi.sonoff_0_Aqua_Control.alive</field>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="controls_if" id="~1B]^Hr|b:d{wCGpPsmX">
              <mutation elseif="1"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="]+0/`G,P!QC;xsw-Z0IR">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="x`vso)AZs=fvl?=5ikHz">
                      <field name="ATTR">val</field>
                      <field name="OID">ping.0.AquaPi.sonoff_0_Aqua_Control.alive</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="3=?f++mcOrh4TLtOy#CA">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="timeouts_settimeout" id="LHGT6BN]#~bhgw+(=ieH">
                  <field name="NAME">timeout</field>
                  <field name="DELAY">30</field>
                  <field name="UNIT">sec</field>
                  <statement name="STATEMENT">
                    <block type="update" id="[2Y]+F9dxllSK]-T:PZW">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">Aqua_Control.0.ESP_Steuerung.ESP_Aqua_Control_Alive_Text</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="text_join" id="8L(MQnwqV]Wa3:Sc~v{e">
                          <mutation items="1"></mutation>
                          <value name="ADD0">
                            <block type="text" id="B=q7t?qJvAs./^m-W$L.">
                              <field name="TEXT">Aqua Control ist Offline</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="Dfb?]y3m_Hv0d@J36M-/">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">alexa2.0.Echo-Devices.G090LV0371040175.Commands.speak</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="text" id="!sH_ua?7KvYFY1FA|2n7">
                              <field name="TEXT">Aqua Control ist Offline</field>
                            </block>
                          </value>
                          <next>
                            <block type="telegram" id="-[o$n9JamJcG!gXu7yzr">
                              <field name="INSTANCE">.1</field>
                              <field name="LOG"></field>
                              <field name="SILENT">FALSE</field>
                              <field name="PARSEMODE">default</field>
                              <value name="MESSAGE">
                                <shadow type="text" id="latQt{RkX8REW;W$=SoK">
                                  <field name="TEXT">Aqua Control ist Offline</field>
                                </shadow>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
              <value name="IF1">
                <block type="logic_compare" id=".!:9pWc^[%JpXuZ`y|[`">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="uq_Amf:mD+v`!{{3K.w^">
                      <field name="ATTR">val</field>
                      <field name="OID">ping.0.AquaPi.sonoff_0_Aqua_Control.alive</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="::T~MQb~+1tUvJUyFZ)K">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO1">
                <block type="update" id="/Li`6Mbs$ipkRmY01prE">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">Aqua_Control.0.ESP_Steuerung.ESP_Aqua_Control_Alive_Text</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="text_join" id="ve3PfLG%x!8Uvfnz_}E/">
                      <mutation items="1"></mutation>
                      <value name="ADD0">
                        <block type="text" id="tkWIH%y]YhKP{~1~*=6i">
                          <field name="TEXT">Aqua Control ist wieder Online</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <next>
                    <block type="control" id=":(hxpR!Arh^)+WoW$(5k">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">alexa2.0.Echo-Devices.G090LV0371040175.Commands.speak</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="text" id="5XON+4Benx(R^yXq0jF9">
                          <field name="TEXT">Aqua Control ist Online</field>
                        </block>
                      </value>
                      <next>
                        <block type="telegram" id="87TP52!`-=9R*`bO[0y9">
                          <field name="INSTANCE">.1</field>
                          <field name="LOG"></field>
                          <field name="SILENT">FALSE</field>
                          <field name="PARSEMODE">default</field>
                          <value name="MESSAGE">
                            <shadow type="text" id=")$fJ$bS.qgHfjn5g!#oC">
                              <field name="TEXT">Aqua Control ist Online</field>
                            </shadow>
                          </value>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
          <next>
            <block type="timeouts_cleartimeout" id="H/HJ$96ElzwaV]/+ppe1">
              <field name="NAME">timeout</field>
            </block>
          </next>
        </block>
      </xml>
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Aphofis last edited by paul53

        <xml xmlns="https://developers.google.com/blockly/xml">
         <variables>
           <variable type="timeout" id="timeout">timeout</variable>
           <variable id="rPx@tK:Dj;EK)l:ZU93R">text</variable>
           <variable id="ddI.AYR3x=$GvkYG5Cgq">offline</variable>
         </variables>
         <block type="procedures_defnoreturn" id="AS-,*]`mq49,;={0K;ig" x="-538" y="-138">
           <field name="NAME">msg</field>
           <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
           <statement name="STACK">
             <block type="update" id="/Li`6Mbs$ipkRmY01prE">
               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
               <field name="OID">Aqua_Control.0.ESP_Steuerung.ESP_Aqua_Control_Alive_Text</field>
               <field name="WITH_DELAY">FALSE</field>
               <value name="VALUE">
                 <block type="variables_get" id="xYX.1yrGM(E_Wc#_fKsN">
                   <field name="VAR" id="rPx@tK:Dj;EK)l:ZU93R">text</field>
                 </block>
               </value>
               <next>
                 <block type="control" id=":(hxpR!Arh^)+WoW$(5k">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                   <field name="OID">alexa2.0.Echo-Devices.G090LV0371040175.Commands.speak</field>
                   <field name="WITH_DELAY">FALSE</field>
                   <value name="VALUE">
                     <block type="variables_get" id="!xCEDsC/)Q~Vt0xaO7O:">
                       <field name="VAR" id="rPx@tK:Dj;EK)l:ZU93R">text</field>
                     </block>
                   </value>
                   <next>
                     <block type="telegram" id="87TP52!`-=9R*`bO[0y9">
                       <field name="INSTANCE"></field>
                       <field name="LOG"></field>
                       <field name="SILENT">FALSE</field>
                       <field name="PARSEMODE">default</field>
                       <value name="MESSAGE">
                         <shadow type="text" id=")$fJ$bS.qgHfjn5g!#oC">
                           <field name="TEXT">Aqua Control ist Online</field>
                         </shadow>
                         <block type="variables_get" id=".`f.K(_8ZomY-)r{b4go">
                           <field name="VAR" id="rPx@tK:Dj;EK)l:ZU93R">text</field>
                         </block>
                       </value>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </statement>
         </block>
         <block type="on" id="yH8ve-Lanek~dc{Drg8D" x="-862" y="23">
           <field name="OID">ping.0.AquaPi.sonoff_0_Aqua_Control.alive</field>
           <field name="CONDITION">ne</field>
           <field name="ACK_CONDITION"></field>
           <statement name="STATEMENT">
             <block type="controls_if" id="~1B]^Hr|b:d{wCGpPsmX">
               <mutation else="1"></mutation>
               <value name="IF0">
                 <block type="logic_negate" id="nQ^XM4r8YM?XB.!^`bw%">
                   <value name="BOOL">
                     <block type="on_source" id="sEq)okH/RORlZL,#-bly">
                       <field name="ATTR">state.val</field>
                     </block>
                   </value>
                 </block>
               </value>
               <statement name="DO0">
                 <block type="timeouts_settimeout" id="LHGT6BN]#~bhgw+(=ieH">
                   <field name="NAME">timeout</field>
                   <field name="DELAY">30</field>
                   <field name="UNIT">sec</field>
                   <statement name="STATEMENT">
                     <block type="variables_set" id="ii{;bcV?%}6[68d-^IH9">
                       <field name="VAR" id="rPx@tK:Dj;EK)l:ZU93R">text</field>
                       <value name="VALUE">
                         <block type="text" id="B=q7t?qJvAs./^m-W$L.">
                           <field name="TEXT">Aqua Control ist Offline</field>
                         </block>
                       </value>
                       <next>
                         <block type="procedures_callnoreturn" id="@Htmcm,s-Mh?skcm}]Nw">
                           <mutation name="msg"></mutation>
                           <next>
                             <block type="variables_set" id="~^nv@M,n/F{PpP1]w1/T">
                               <field name="VAR" id="ddI.AYR3x=$GvkYG5Cgq">offline</field>
                               <value name="VALUE">
                                 <block type="logic_boolean" id="?QD#kExJ-Js%UC2U9:f9">
                                   <field name="BOOL">TRUE</field>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </statement>
               <statement name="ELSE">
                 <block type="timeouts_cleartimeout" id="H/HJ$96ElzwaV]/+ppe1">
                   <field name="NAME">timeout</field>
                   <next>
                     <block type="controls_if" id="kGt5FU)@VU%.lS+v62iz">
                       <value name="IF0">
                         <block type="variables_get" id="tZl6psDl1Q,n@vbHVlJS">
                           <field name="VAR" id="ddI.AYR3x=$GvkYG5Cgq">offline</field>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="variables_set" id="pYc:;ubh=Y0P(4Jly$f5">
                           <field name="VAR" id="rPx@tK:Dj;EK)l:ZU93R">text</field>
                           <value name="VALUE">
                             <block type="text" id="tkWIH%y]YhKP{~1~*=6i">
                               <field name="TEXT">Aqua Control ist wieder Online</field>
                             </block>
                           </value>
                           <next>
                             <block type="procedures_callnoreturn" id="?$O4dJl.~cer`$:1$gIJ">
                               <mutation name="msg"></mutation>
                               <next>
                                 <block type="variables_set" id="/Ir9ZbhR,CTojB-m:uh9">
                                   <field name="VAR" id="ddI.AYR3x=$GvkYG5Cgq">offline</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="n=mf7(yEIFqFQA4v2)g}">
                                       <field name="BOOL">FALSE</field>
                                     </block>
                                   </value>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </statement>
             </block>
           </statement>
         </block>
        </xml>
        

        Aphofis 1 Reply Last reply Reply Quote 1
        • Aphofis
          Aphofis @paul53 last edited by

          @paul53
          Du bist echt Spitze ! Vielen vielen Dank 👍 👍 👍

          paul53 1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @Aphofis last edited by

            @Aphofis
            Habe gerade noch ne Kleinigkeit geändert.

            Aphofis 1 Reply Last reply Reply Quote 0
            • Aphofis
              Aphofis @paul53 last edited by

              @paul53
              Habe die Änderung übernommen!!! Danke

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

              Support us

              ioBroker
              Community Adapters
              Donate

              918
              Online

              32.0k
              Users

              80.4k
              Topics

              1.3m
              Posts

              blockly communication
              2
              5
              266
              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