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. [gelöst] Zeitverzögerung und Timer

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

[gelöst] Zeitverzögerung und Timer

Geplant Angeheftet Gesperrt Verschoben Blockly
blockly
34 Beiträge 3 Kommentatoren 1.6k Aufrufe 2 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.
  • AsgothianA Asgothian

    @Humidor

    Versuch mal so.

    Screen Shot 2020-08-29 at 09.42.52 .png
    Da ich die entsprechenden Datenpunkte nicht habe hab ich die nicht ausgewählt.

    Funktionsweise:

    ein Trigger auf den Türkontakt überwacht diesen. Bei Tür auf werden die Timeouts zum abschalten der Pumpe angehalten - nicht aber das Intervall das die 5 min. Wiederholung durchführt. Dieses wird automatisch beim überschreiten der Grenze deaktiviert.

    Der Trigger auf den Feuchtewert reagiert auf Wertänderungen.
    Ist der Wert unter dem Schwellwert werden sowohl die 30 s Verzögerung für die Pumpe als auch das 5 min. Intervall gelöscht.
    Ist der Wert über dem Schwellwert, dann wird zunächst geschaut ob der vorherige wert darunter war (dann läuft aktuell nichts). Wenn ja, dann wird der Pumpenablauf gestartet.

    A.

    (hinterm spoiler auch als XML zum import)

    <xml xmlns="https://developers.google.com/blockly/xml">
     <variables>
       <variable id="HPVqm;m1aBy]X**C0Qt8">DoorIsOpen</variable>
       <variable type="timeout" id="PumpDelayTimeout">PumpDelayTimeout</variable>
       <variable type="timeout" id="PumpTimeout">PumpTimeout</variable>
       <variable type="interval" id="PumpRepeatInterval">PumpRepeatInterval</variable>
       <variable type="timeout" id="Pump30sTimeout">Pump30sTimeout</variable>
     </variables>
     <block type="comment" id="Ko^e~FN}a+xO(`[{^7o," x="-312" y="-587">
       <field name="COMMENT">Trigger auf den Türsensor</field>
       <next>
         <block type="on_ext" id="Zyl}_F(Sxzl`5}R{0Y$0">
           <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="pIc_x7,7$},{0wTmk[+2">
               <field name="oid">default</field>
             </shadow>
           </value>
           <statement name="STATEMENT">
             <block type="variables_set" id="2#b;CJ:X,mmKEK32G6`]">
               <field name="VAR" id="HPVqm;m1aBy]X**C0Qt8">DoorIsOpen</field>
               <value name="VALUE">
                 <block type="on_source" id="FYycmLIeuSUmIPNHw~n-">
                   <field name="ATTR">state.val</field>
                 </block>
               </value>
               <next>
                 <block type="controls_if" id="sm^990@3LTnxGOhG8t5G">
                   <mutation else="1"></mutation>
                   <value name="IF0">
                     <block type="variables_get" id="+RZ4X6XDF:w:=(.ya%W|">
                       <field name="VAR" id="HPVqm;m1aBy]X**C0Qt8">DoorIsOpen</field>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="timeouts_cleartimeout" id="l]G3LJF%^EXv^%ff17XI">
                       <field name="NAME">PumpTimeout</field>
                       <next>
                         <block type="timeouts_cleartimeout" id="ZNz]iz%9Q7_Q0Lx{uPgk">
                           <field name="NAME">Pump30sTimeout</field>
                           <next>
                             <block type="comment" id="Do2n]q$j!u5+`{/Ky}#(">
                               <field name="COMMENT">Ansteuern der Pumpe (aus)</field>
                               <next>
                                 <block type="control" id="O0G4ExRG5)MD/*|@`f2?">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">Object ID</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="YWDf#MkESyrYGRzEAi)I">
                                       <field name="BOOL">FALSE</field>
                                     </block>
                                   </value>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <statement name="ELSE">
                     <block type="comment" id="d}|uur2L)WYw(E`D/DhS">
                       <field name="COMMENT">Ansteuern der Pumpe (an)</field>
                       <next>
                         <block type="control" id="1y7%pAx2IW:F2_OpF=eb">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">Object ID</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="r%1T:g;{6.nq4Lf/-sVe">
                               <field name="BOOL">TRUE</field>
                             </block>
                           </value>
                           <next>
                             <block type="timeouts_cleartimeout" id="FnURJ_U:BpO{/|~U5x%l">
                               <field name="NAME">PumpTimeout</field>
                               <next>
                                 <block type="timeouts_settimeout" id="ia0{-[!yisdr~x`_f*/g">
                                   <field name="NAME">PumpTimeout</field>
                                   <field name="DELAY">10</field>
                                   <field name="UNIT">sec</field>
                                   <statement name="STATEMENT">
                                     <block type="comment" id="l@A?g%hiN/JIB7yQ=y^~">
                                       <field name="COMMENT">Ansteuern der Pumpe (aus)</field>
                                       <next>
                                         <block type="control" id=":E#2,$O6+?lU4pX4$8mh">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">Object ID</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id=":!/7rb|Y-H`}#M9,ZNe[">
                                               <field name="BOOL">FALSE</field>
                                             </block>
                                           </value>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </next>
             </block>
           </statement>
           <next>
             <block type="comment" id="B}Vb1uQ+OXIW_FWiIpsA">
               <field name="COMMENT">Trigger auf den Türsensor</field>
               <next>
                 <block type="on_ext" id="GIC=gGhoLwF{SHX0dlHx">
                   <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="H`cHpQAo0$M;t1^:=6;W">
                       <field name="oid">default</field>
                     </shadow>
                   </value>
                   <statement name="STATEMENT">
                     <block type="controls_if" id="oF`|/E3tCsdFn,T~BlYL">
                       <mutation else="1"></mutation>
                       <value name="IF0">
                         <block type="logic_compare" id=":?2;^QycLRPxRL{qNd!J">
                           <field name="OP">GT</field>
                           <value name="A">
                             <block type="on_source" id="v;Dbr#`yYszA|e~=[Px6">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="NiRYT%{.:n7!|IG4eNnN">
                               <field name="NUM">68</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="controls_if" id="*0V=QR8dP^a+FOHN]V3Z">
                           <value name="IF0">
                             <block type="logic_compare" id="NH,Iac`_ySW%F=xYI~~u">
                               <field name="OP">LTE</field>
                               <value name="A">
                                 <block type="on_source" id="`/!O.BTx=nkAn*x,G|X)">
                                   <field name="ATTR">oldState.val</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="math_number" id="EL($kj^a[o2T}(:2t6^V">
                                   <field name="NUM">68</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="timeouts_settimeout" id="-.22R/829Gb!1Ea6.X(q">
                               <field name="NAME">PumpDelayTimeout</field>
                               <field name="DELAY">30</field>
                               <field name="UNIT">sec</field>
                               <statement name="STATEMENT">
                                 <block type="timeouts_setinterval" id="eW9wGh1D0!kYgYo7]FFI">
                                   <field name="NAME">PumpRepeatInterval</field>
                                   <field name="INTERVAL">5</field>
                                   <field name="UNIT">min</field>
                                   <statement name="STATEMENT">
                                     <block type="controls_if" id=";[oFe?K3kz[*^I?cRDuq">
                                       <value name="IF0">
                                         <block type="logic_negate" id="`9/qdjB{8b6|AcjcXNX5">
                                           <value name="BOOL">
                                             <block type="variables_get" id="Hr[JkQM(+iTa%rdv:Ik:">
                                               <field name="VAR" id="HPVqm;m1aBy]X**C0Qt8">DoorIsOpen</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <statement name="DO0">
                                         <block type="comment" id=";K1tp=$3ArN#*bk^qiac">
                                           <field name="COMMENT">Ansteuern der Pumpe (an)</field>
                                           <next>
                                             <block type="control" id="mBi?24%JF`jf(#wrf;`F">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">Object ID</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="logic_boolean" id="s]_{6j~Lxp~6vYATY9i}">
                                                   <field name="BOOL">TRUE</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="timeouts_settimeout" id="AF@qO2LCv@!dZA4.PNQ5">
                                                   <field name="NAME">Pump30sTimeout</field>
                                                   <field name="DELAY">30</field>
                                                   <field name="UNIT">sec</field>
                                                   <statement name="STATEMENT">
                                                     <block type="comment" id=".CR/E=o+]1/w;V;#j5yE">
                                                       <field name="COMMENT">Ansteuern der Pumpe (aus)</field>
                                                       <next>
                                                         <block type="control" id="sp:5c`.p#IofmcPODLh{">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">Object ID</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="logic_boolean" id="_PEZ6cRX.P)C#tz+jgq~">
                                                               <field name="BOOL">FALSE</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                         </block>
                       </statement>
                       <statement name="ELSE">
                         <block type="timeouts_cleartimeout" id="AjGIOti^D=Fb[uq_@z./">
                           <field name="NAME">PumpDelayTimeout</field>
                           <next>
                             <block type="timeouts_clearinterval" id="Y#n|WgHuyq*i2SoFb$xj">
                               <field name="NAME">PumpRepeatInterval</field>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </statement>
                 </block>
               </next>
             </block>
           </next>
         </block>
       </next>
     </block>
    </xml>
    

    HumidorH Offline
    HumidorH Offline
    Humidor
    schrieb am zuletzt editiert von Humidor
    #6

    @Asgothian
    Danke!!
    schön langsam verstehe ich dein Blocky, beim unteren Kommentar hat mich der Text verwirrt (copy-paste)

    BG

    HumidorH 1 Antwort Letzte Antwort
    0
    • HumidorH Humidor

      @Asgothian
      Danke!!
      schön langsam verstehe ich dein Blocky, beim unteren Kommentar hat mich der Text verwirrt (copy-paste)

      HumidorH Offline
      HumidorH Offline
      Humidor
      schrieb am zuletzt editiert von Humidor
      #7

      (bei mir is Deutsch), stimmt das für die Feuchtigkeit?

      Bild Text

      BG

      paul53P 1 Antwort Letzte Antwort
      0
      • HumidorH Humidor

        (bei mir is Deutsch), stimmt das für die Feuchtigkeit?

        Bild Text

        paul53P Offline
        paul53P Offline
        paul53
        schrieb am zuletzt editiert von
        #8

        @Humidor sagte:

        stimmt das für die Feuchtigkeit?

        Nein, so ist die Bedingung für Befeuchten nie erfüllt. Außerdem darf man timeAktiv nicht stoppen, weil dann das Ausschalten verhindert wird. Die erste Verzögerung beträgt 6 Minuten (1 + 5 Minuten).
        Versuche es mal so:

        Blockly_temp.JPG

        <xml xmlns="https://developers.google.com/blockly/xml">
         <variables>
           <variable type="timeout" id="timeout">timeout</variable>
           <variable id="vi`~*b?jfI6T5u5eYjh/">Tuer_offen</variable>
           <variable type="interval" id="Intervall">Intervall</variable>
         </variables>
         <block type="on_ext" id="WJz~?8!GV4cmJVI_*ANE" x="62" y="12">
           <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="-k:HD_d{[8F0a%f/M4h{">
               <field name="oid">default</field>
             </shadow>
           </value>
           <statement name="STATEMENT">
             <block type="controls_if" id="8*lv4A4N~*(y@kGYO]NK">
               <mutation elseif="1"></mutation>
               <value name="IF0">
                 <block type="logic_compare" id="{=@l=W]Iu-.B2s[9*gut">
                   <field name="OP">GT</field>
                   <value name="A">
                     <block type="on_source" id="*wm(1XbT:{j}suy(!G?!">
                       <field name="ATTR">state.val</field>
                     </block>
                   </value>
                   <value name="B">
                     <block type="math_number" id="T9@L(h%[j1`~%BE%Lxo#">
                       <field name="NUM">68</field>
                     </block>
                   </value>
                 </block>
               </value>
               <statement name="DO0">
                 <block type="timeouts_cleartimeout" id="[ZvNrnB.Ie98JVPr/5yN">
                   <field name="NAME">timeout</field>
                   <next>
                     <block type="timeouts_clearinterval" id=")S5e27$7R1438t!#$.yk">
                       <field name="NAME">Intervall</field>
                     </block>
                   </next>
                 </block>
               </statement>
               <value name="IF1">
                 <block type="logic_operation" id="w}izu#p!s~,v`I0s3KJU">
                   <field name="OP">AND</field>
                   <value name="A">
                     <block type="logic_negate" id="6b=h3C]=e(,Bgm}:$G=~">
                       <value name="BOOL">
                         <block type="variables_get" id="_%!6BI0~fzXn3q(DEpX~">
                           <field name="VAR" id="vi`~*b?jfI6T5u5eYjh/">Tuer_offen</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <value name="B">
                     <block type="logic_negate" id="v@*j-JARjPFC,;=}gEpT">
                       <value name="BOOL">
                         <block type="variables_get" id="n#n(Dq.~fo*Q|F$%C$%P">
                           <field name="VAR" id="timeout" variabletype="timeout">timeout</field>
                         </block>
                       </value>
                     </block>
                   </value>
                 </block>
               </value>
               <statement name="DO1">
                 <block type="timeouts_settimeout" id="mlu=pP)DBv~Xm4vP:oO`">
                   <field name="NAME">timeout</field>
                   <field name="DELAY">1</field>
                   <field name="UNIT">min</field>
                   <statement name="STATEMENT">
                     <block type="control" id="23_I~jA*:BDa;!dz!((y">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                       <field name="OID">Object ID</field>
                       <field name="WITH_DELAY">FALSE</field>
                       <value name="VALUE">
                         <block type="logic_boolean" id="ctr55tYpLKci4?1{;,zF">
                           <field name="BOOL">TRUE</field>
                         </block>
                       </value>
                       <next>
                         <block type="control" id="lrD0]og^Y}e~eVR[z*+3">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                           <field name="OID">Object ID</field>
                           <field name="WITH_DELAY">TRUE</field>
                           <field name="DELAY_MS">30</field>
                           <field name="UNIT">sec</field>
                           <field name="CLEAR_RUNNING">TRUE</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="Jtl7J1bQV%wl9$t~=Hj?">
                               <field name="BOOL">FALSE</field>
                             </block>
                           </value>
                           <next>
                             <block type="timeouts_setinterval" id="EbjytT5-{Y_)r{CK7?#R">
                               <field name="NAME">Intervall</field>
                               <field name="INTERVAL">5</field>
                               <field name="UNIT">min</field>
                               <statement name="STATEMENT">
                                 <block type="control" id=",J;b:5-OCTYeK/+T_rdw">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">Object ID</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="w?;ejb5pP.JP*2XvXhsI">
                                       <field name="BOOL">TRUE</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="control" id="_hO`,wLTI4Pm;Kj$0Hes">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                       <field name="OID">Object ID</field>
                                       <field name="WITH_DELAY">TRUE</field>
                                       <field name="DELAY_MS">30</field>
                                       <field name="UNIT">sec</field>
                                       <field name="CLEAR_RUNNING">TRUE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="2U%:K;F(VHb/#$gwtDuF">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </statement>
             </block>
           </statement>
           <next>
             <block type="on_ext" id="573=NVS=9[G/oapopVWo">
               <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="[g3X3#[Oq4l}or*kG^U#">
                   <field name="oid">default</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="variables_set" id="B[S2!OmW5q+Rk%ZXxHQ,">
                   <field name="VAR" id="vi`~*b?jfI6T5u5eYjh/">Tuer_offen</field>
                   <value name="VALUE">
                     <block type="on_source" id="zOduV;CBlT2bb`|h),v0">
                       <field name="ATTR">state.val</field>
                     </block>
                   </value>
                   <next>
                     <block type="controls_if" id="}dV?O[=?3HOw=|49o!PD">
                       <value name="IF0">
                         <block type="variables_get" id="O1?Qb;o=wdG[RE)80cKG">
                           <field name="VAR" id="vi`~*b?jfI6T5u5eYjh/">Tuer_offen</field>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="timeouts_cleartimeout" id="0V5b85xUat3*3z=*{l!I">
                           <field name="NAME">timeout</field>
                           <next>
                             <block type="timeouts_clearinterval" id=",I(/V7/FaPpN*60(mWxZ">
                               <field name="NAME">Intervall</field>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </statement>
             </block>
           </next>
         </block>
        </xml>
        

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

        HumidorH 1 Antwort Letzte Antwort
        1
        • paul53P paul53

          @Humidor sagte:

          stimmt das für die Feuchtigkeit?

          Nein, so ist die Bedingung für Befeuchten nie erfüllt. Außerdem darf man timeAktiv nicht stoppen, weil dann das Ausschalten verhindert wird. Die erste Verzögerung beträgt 6 Minuten (1 + 5 Minuten).
          Versuche es mal so:

          Blockly_temp.JPG

          <xml xmlns="https://developers.google.com/blockly/xml">
           <variables>
             <variable type="timeout" id="timeout">timeout</variable>
             <variable id="vi`~*b?jfI6T5u5eYjh/">Tuer_offen</variable>
             <variable type="interval" id="Intervall">Intervall</variable>
           </variables>
           <block type="on_ext" id="WJz~?8!GV4cmJVI_*ANE" x="62" y="12">
             <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="-k:HD_d{[8F0a%f/M4h{">
                 <field name="oid">default</field>
               </shadow>
             </value>
             <statement name="STATEMENT">
               <block type="controls_if" id="8*lv4A4N~*(y@kGYO]NK">
                 <mutation elseif="1"></mutation>
                 <value name="IF0">
                   <block type="logic_compare" id="{=@l=W]Iu-.B2s[9*gut">
                     <field name="OP">GT</field>
                     <value name="A">
                       <block type="on_source" id="*wm(1XbT:{j}suy(!G?!">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="T9@L(h%[j1`~%BE%Lxo#">
                         <field name="NUM">68</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="timeouts_cleartimeout" id="[ZvNrnB.Ie98JVPr/5yN">
                     <field name="NAME">timeout</field>
                     <next>
                       <block type="timeouts_clearinterval" id=")S5e27$7R1438t!#$.yk">
                         <field name="NAME">Intervall</field>
                       </block>
                     </next>
                   </block>
                 </statement>
                 <value name="IF1">
                   <block type="logic_operation" id="w}izu#p!s~,v`I0s3KJU">
                     <field name="OP">AND</field>
                     <value name="A">
                       <block type="logic_negate" id="6b=h3C]=e(,Bgm}:$G=~">
                         <value name="BOOL">
                           <block type="variables_get" id="_%!6BI0~fzXn3q(DEpX~">
                             <field name="VAR" id="vi`~*b?jfI6T5u5eYjh/">Tuer_offen</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="B">
                       <block type="logic_negate" id="v@*j-JARjPFC,;=}gEpT">
                         <value name="BOOL">
                           <block type="variables_get" id="n#n(Dq.~fo*Q|F$%C$%P">
                             <field name="VAR" id="timeout" variabletype="timeout">timeout</field>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO1">
                   <block type="timeouts_settimeout" id="mlu=pP)DBv~Xm4vP:oO`">
                     <field name="NAME">timeout</field>
                     <field name="DELAY">1</field>
                     <field name="UNIT">min</field>
                     <statement name="STATEMENT">
                       <block type="control" id="23_I~jA*:BDa;!dz!((y">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                         <field name="OID">Object ID</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="logic_boolean" id="ctr55tYpLKci4?1{;,zF">
                             <field name="BOOL">TRUE</field>
                           </block>
                         </value>
                         <next>
                           <block type="control" id="lrD0]og^Y}e~eVR[z*+3">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                             <field name="OID">Object ID</field>
                             <field name="WITH_DELAY">TRUE</field>
                             <field name="DELAY_MS">30</field>
                             <field name="UNIT">sec</field>
                             <field name="CLEAR_RUNNING">TRUE</field>
                             <value name="VALUE">
                               <block type="logic_boolean" id="Jtl7J1bQV%wl9$t~=Hj?">
                                 <field name="BOOL">FALSE</field>
                               </block>
                             </value>
                             <next>
                               <block type="timeouts_setinterval" id="EbjytT5-{Y_)r{CK7?#R">
                                 <field name="NAME">Intervall</field>
                                 <field name="INTERVAL">5</field>
                                 <field name="UNIT">min</field>
                                 <statement name="STATEMENT">
                                   <block type="control" id=",J;b:5-OCTYeK/+T_rdw">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">Object ID</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="w?;ejb5pP.JP*2XvXhsI">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="control" id="_hO`,wLTI4Pm;Kj$0Hes">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                         <field name="OID">Object ID</field>
                                         <field name="WITH_DELAY">TRUE</field>
                                         <field name="DELAY_MS">30</field>
                                         <field name="UNIT">sec</field>
                                         <field name="CLEAR_RUNNING">TRUE</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="2U%:K;F(VHb/#$gwtDuF">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </statement>
                   </block>
                 </statement>
               </block>
             </statement>
             <next>
               <block type="on_ext" id="573=NVS=9[G/oapopVWo">
                 <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="[g3X3#[Oq4l}or*kG^U#">
                     <field name="oid">default</field>
                   </shadow>
                 </value>
                 <statement name="STATEMENT">
                   <block type="variables_set" id="B[S2!OmW5q+Rk%ZXxHQ,">
                     <field name="VAR" id="vi`~*b?jfI6T5u5eYjh/">Tuer_offen</field>
                     <value name="VALUE">
                       <block type="on_source" id="zOduV;CBlT2bb`|h),v0">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <next>
                       <block type="controls_if" id="}dV?O[=?3HOw=|49o!PD">
                         <value name="IF0">
                           <block type="variables_get" id="O1?Qb;o=wdG[RE)80cKG">
                             <field name="VAR" id="vi`~*b?jfI6T5u5eYjh/">Tuer_offen</field>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="timeouts_cleartimeout" id="0V5b85xUat3*3z=*{l!I">
                             <field name="NAME">timeout</field>
                             <next>
                               <block type="timeouts_clearinterval" id=",I(/V7/FaPpN*60(mWxZ">
                                 <field name="NAME">Intervall</field>
                               </block>
                             </next>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
             </next>
           </block>
          </xml>
          

          HumidorH Offline
          HumidorH Offline
          Humidor
          schrieb am zuletzt editiert von Humidor
          #9

          @paul53
          Danke!

          wie kann ich den Export hier runterladen?
          was ich nciht verstehe ist, wie ich im Blocky den "Wert" (rot), "Tür_offen" (rot) und "timeout" (rot) so auswählen kann ??
          und was bewirkt "timeout" im sonst falls Zweig?

          BG

          paul53P 1 Antwort Letzte Antwort
          0
          • HumidorH Humidor

            @paul53
            Danke!

            wie kann ich den Export hier runterladen?
            was ich nciht verstehe ist, wie ich im Blocky den "Wert" (rot), "Tür_offen" (rot) und "timeout" (rot) so auswählen kann ??
            und was bewirkt "timeout" im sonst falls Zweig?

            paul53P Offline
            paul53P Offline
            paul53
            schrieb am zuletzt editiert von paul53
            #10

            @Humidor sagte:

            "Wert" (rot), "Tür_offen" (rot) und "timeout" (rot)

            Wert findet man unter "Trigger"
            Tuer_offen ist eine selbst erstellte Variable
            timeout ist eine Variable, die mit "Ausführen timeout" erstellt wird.

            @Humidor sagte in Zeitverzögerung und Timer:

            was bewirkt "timeout" im sonst falls Zweig?

            Es verhindert, dass weitere Timer gestartet werden, wenn bei Wertänderungen unter 68 erneut getriggert wird.

            @Humidor sagte in Zeitverzögerung und Timer:

            wie kann ich den Export hier runterladen?

            Copy (^C) aus dem Forum & Paste (^V) in den Blockly-Import.

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

            HumidorH 1 Antwort Letzte Antwort
            1
            • paul53P paul53

              @Humidor sagte:

              "Wert" (rot), "Tür_offen" (rot) und "timeout" (rot)

              Wert findet man unter "Trigger"
              Tuer_offen ist eine selbst erstellte Variable
              timeout ist eine Variable, die mit "Ausführen timeout" erstellt wird.

              @Humidor sagte in Zeitverzögerung und Timer:

              was bewirkt "timeout" im sonst falls Zweig?

              Es verhindert, dass weitere Timer gestartet werden, wenn bei Wertänderungen unter 68 erneut getriggert wird.

              @Humidor sagte in Zeitverzögerung und Timer:

              wie kann ich den Export hier runterladen?

              Copy (^C) aus dem Forum & Paste (^V) in den Blockly-Import.

              HumidorH Offline
              HumidorH Offline
              Humidor
              schrieb am zuletzt editiert von
              #11

              @paul53 sagte in Zeitverzögerung und Timer:

              @Humidor sagte:

              "Wert" (rot), "Tür_offen" (rot) und "timeout" (rot)

              Wert findet man unter "Trigger"
              Tuer_offen ist eine selbst erstellte Variable
              timeout ist eine Variable, die mit "Ausführen timeout" erstellt wird.

              @Humidor sagte in Zeitverzögerung und Timer:

              was bewirkt "timeout" im sonst falls Zweig?

              Es verhindert, dass weitere Timer gestartet werden, wenn bei Wertänderungen unter 68 erneut getriggert wird.

              @Humidor sagte in Zeitverzögerung und Timer:

              wie kann ich den Export hier runterladen?

              Copy (^C) aus dem Forum & Paste (^V) in den Blockly-Import.

              gefunden!

              ist im falls wenn der Timeout bei 0 erfüllt oder bei einem Wert?

              Bild Text

              BG

              paul53P 1 Antwort Letzte Antwort
              0
              • HumidorH Humidor

                @paul53 sagte in Zeitverzögerung und Timer:

                @Humidor sagte:

                "Wert" (rot), "Tür_offen" (rot) und "timeout" (rot)

                Wert findet man unter "Trigger"
                Tuer_offen ist eine selbst erstellte Variable
                timeout ist eine Variable, die mit "Ausführen timeout" erstellt wird.

                @Humidor sagte in Zeitverzögerung und Timer:

                was bewirkt "timeout" im sonst falls Zweig?

                Es verhindert, dass weitere Timer gestartet werden, wenn bei Wertänderungen unter 68 erneut getriggert wird.

                @Humidor sagte in Zeitverzögerung und Timer:

                wie kann ich den Export hier runterladen?

                Copy (^C) aus dem Forum & Paste (^V) in den Blockly-Import.

                gefunden!

                ist im falls wenn der Timeout bei 0 erfüllt oder bei einem Wert?

                Bild Text

                paul53P Offline
                paul53P Offline
                paul53
                schrieb am zuletzt editiert von paul53
                #12

                @Humidor sagte:

                gefunden!

                Der untere Trigger-Datenpunkt ist falsch: Es muss die Tür sein.

                @Humidor sagte in Zeitverzögerung und Timer:

                wenn der Timeout bei 0 erfüllt oder bei einem Wert?

                nicht timeout ist erfüllt, wenn timeout den Wert null (wird bei stop timeout gesetzt) oder den Wert undefined (wird bei Scriptstart gesetzt) enthält. Wenn der Timer gestartet ist, enthält die Variable timeout ein Timer-Objekt.

                Anmerkung: Anstelle von nicht timeout könnte man auch auf vorheriger Wert > 68 prüfen, so wie es @Asgothian vorgesehen hatte.

                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                HumidorH 1 Antwort Letzte Antwort
                0
                • paul53P paul53

                  @Humidor sagte:

                  gefunden!

                  Der untere Trigger-Datenpunkt ist falsch: Es muss die Tür sein.

                  @Humidor sagte in Zeitverzögerung und Timer:

                  wenn der Timeout bei 0 erfüllt oder bei einem Wert?

                  nicht timeout ist erfüllt, wenn timeout den Wert null (wird bei stop timeout gesetzt) oder den Wert undefined (wird bei Scriptstart gesetzt) enthält. Wenn der Timer gestartet ist, enthält die Variable timeout ein Timer-Objekt.

                  Anmerkung: Anstelle von nicht timeout könnte man auch auf vorheriger Wert > 68 prüfen, so wie es @Asgothian vorgesehen hatte.

                  HumidorH Offline
                  HumidorH Offline
                  Humidor
                  schrieb am zuletzt editiert von
                  #13

                  @paul53

                  so richtig ?
                  Bild Text

                  BG

                  paul53P 1 Antwort Letzte Antwort
                  0
                  • HumidorH Humidor

                    @paul53

                    so richtig ?
                    Bild Text

                    paul53P Offline
                    paul53P Offline
                    paul53
                    schrieb am zuletzt editiert von paul53
                    #14

                    @Humidor sagte:

                    so richtig ?

                    Der Trigger ja, die Abfrage nicht: vorheriger Wert > 68 (vorheriger Wert unter "Trigger").
                    Die Bedingung Wert <= 68 ist bereits im sonst enthalten.

                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                    HumidorH 1 Antwort Letzte Antwort
                    0
                    • paul53P paul53

                      @Humidor sagte:

                      so richtig ?

                      Der Trigger ja, die Abfrage nicht: vorheriger Wert > 68 (vorheriger Wert unter "Trigger").
                      Die Bedingung Wert <= 68 ist bereits im sonst enthalten.

                      HumidorH Offline
                      HumidorH Offline
                      Humidor
                      schrieb am zuletzt editiert von
                      #15

                      @paul53
                      das mit dem "vorherigen Wert" verstehe ich nicht, soll das eine Zwischenvariable sein?

                      BG

                      paul53P 1 Antwort Letzte Antwort
                      0
                      • HumidorH Humidor

                        @paul53
                        das mit dem "vorherigen Wert" verstehe ich nicht, soll das eine Zwischenvariable sein?

                        paul53P Offline
                        paul53P Offline
                        paul53
                        schrieb am zuletzt editiert von
                        #16

                        @Humidor sagte:

                        das mit dem "vorherigen Wert" verstehe ich nicht, soll das eine Zwischenvariable sein?

                        Nein, das ist eine Eigenschaft des Trigger-Datenpunktes (deshalb unter Blöcke "Trigger")

                        Blockly_temp.JPG

                        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                        HumidorH 1 Antwort Letzte Antwort
                        0
                        • paul53P paul53

                          @Humidor sagte:

                          das mit dem "vorherigen Wert" verstehe ich nicht, soll das eine Zwischenvariable sein?

                          Nein, das ist eine Eigenschaft des Trigger-Datenpunktes (deshalb unter Blöcke "Trigger")

                          Blockly_temp.JPG

                          HumidorH Offline
                          HumidorH Offline
                          Humidor
                          schrieb am zuletzt editiert von
                          #17

                          @paul53
                          das hab ich nicht ?
                          Bild Text

                          BG

                          paul53P 1 Antwort Letzte Antwort
                          0
                          • HumidorH Humidor

                            @paul53
                            das hab ich nicht ?
                            Bild Text

                            paul53P Offline
                            paul53P Offline
                            paul53
                            schrieb am zuletzt editiert von
                            #18

                            @Humidor sagte:

                            das hab ich nicht ?

                            Runter scrollen.

                            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                            HumidorH 1 Antwort Letzte Antwort
                            0
                            • paul53P paul53

                              @Humidor sagte:

                              das hab ich nicht ?

                              Runter scrollen.

                              HumidorH Offline
                              HumidorH Offline
                              Humidor
                              schrieb am zuletzt editiert von
                              #19

                              @paul53
                              gefunden, danke!

                              aber kapier ich nicht was der vorherige Wert mit der Abfrage zu tun hat?

                              BG

                              HumidorH paul53P 2 Antworten Letzte Antwort
                              0
                              • HumidorH Humidor

                                @paul53
                                gefunden, danke!

                                aber kapier ich nicht was der vorherige Wert mit der Abfrage zu tun hat?

                                HumidorH Offline
                                HumidorH Offline
                                Humidor
                                schrieb am zuletzt editiert von
                                #20

                                @Humidor
                                Bild Text

                                BG

                                1 Antwort Letzte Antwort
                                0
                                • HumidorH Humidor

                                  @paul53
                                  gefunden, danke!

                                  aber kapier ich nicht was der vorherige Wert mit der Abfrage zu tun hat?

                                  paul53P Offline
                                  paul53P Offline
                                  paul53
                                  schrieb am zuletzt editiert von paul53
                                  #21

                                  @Humidor sagte:

                                  aber kapier ich nicht was der vorherige Wert mit der Abfrage zu tun hat?

                                  Es soll die Verzögerung nur gestartet werden, wenn

                                  • der Wert <= 68 ist (sonst)
                                  • der vorherige Wert > 68 ist
                                  • die Tür geschlossen ist

                                  Die Prüfung auf vorheriger Wert > 68 verhindert, dass ein weiterer Timer gestartet wird, wenn sich der Wert z.B. von 68 auf 67 ändert.

                                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                  HumidorH 1 Antwort Letzte Antwort
                                  0
                                  • paul53P paul53

                                    @Humidor sagte:

                                    aber kapier ich nicht was der vorherige Wert mit der Abfrage zu tun hat?

                                    Es soll die Verzögerung nur gestartet werden, wenn

                                    • der Wert <= 68 ist (sonst)
                                    • der vorherige Wert > 68 ist
                                    • die Tür geschlossen ist

                                    Die Prüfung auf vorheriger Wert > 68 verhindert, dass ein weiterer Timer gestartet wird, wenn sich der Wert z.B. von 68 auf 67 ändert.

                                    HumidorH Offline
                                    HumidorH Offline
                                    Humidor
                                    schrieb am zuletzt editiert von
                                    #22

                                    @paul53 sagte in Zeitverzögerung und Timer:

                                    @Humidor sagte:

                                    aber kapier ich nicht was der vorherige Wert mit der Abfrage zu tun hat?

                                    Es soll die Verzögerung nur gestartet werden, wenn

                                    • der Wert <= 68 ist (sonst)
                                    • der vorherige Wert > 68 ist
                                    • die Tür geschlossen ist

                                    Die Prüfung auf vorheriger Wert > 68 verhindert, dass ein weiterer Timer gestartet wird, wenn sich der Wert z.B. von 68 auf 67 ändert.

                                    d.h. dass er den "mach" Zweig nur 1x beschreitet, darin aber die Timer laufen bis die Feuchte >68 wird ?

                                    BG

                                    paul53P 1 Antwort Letzte Antwort
                                    0
                                    • HumidorH Humidor

                                      @paul53 sagte in Zeitverzögerung und Timer:

                                      @Humidor sagte:

                                      aber kapier ich nicht was der vorherige Wert mit der Abfrage zu tun hat?

                                      Es soll die Verzögerung nur gestartet werden, wenn

                                      • der Wert <= 68 ist (sonst)
                                      • der vorherige Wert > 68 ist
                                      • die Tür geschlossen ist

                                      Die Prüfung auf vorheriger Wert > 68 verhindert, dass ein weiterer Timer gestartet wird, wenn sich der Wert z.B. von 68 auf 67 ändert.

                                      d.h. dass er den "mach" Zweig nur 1x beschreitet, darin aber die Timer laufen bis die Feuchte >68 wird ?

                                      paul53P Offline
                                      paul53P Offline
                                      paul53
                                      schrieb am zuletzt editiert von paul53
                                      #23

                                      @Humidor
                                      Im oberen mache-Zweig werden die Timer gelöscht, wenn die Feuchte > 68 ist.
                                      Der sonst-Zweig wird ausgeführt, wenn die Feuchte <= 68 ist. falls bei sonst falls prüft weitere Bedingungen.

                                      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                      HumidorH 1 Antwort Letzte Antwort
                                      0
                                      • paul53P paul53

                                        @Humidor
                                        Im oberen mache-Zweig werden die Timer gelöscht, wenn die Feuchte > 68 ist.
                                        Der sonst-Zweig wird ausgeführt, wenn die Feuchte <= 68 ist. falls bei sonst falls prüft weitere Bedingungen.

                                        HumidorH Offline
                                        HumidorH Offline
                                        Humidor
                                        schrieb am zuletzt editiert von
                                        #24

                                        @paul53 sagte in Zeitverzögerung und Timer:

                                        @Humidor
                                        Im mache-Zweig werden die Timer gelöscht, wenn die Feuchte > 68 ist.
                                        Der sonst-falls-Zweig wird ausgeführt, wenn die Feuchte <= 68 ist.

                                        ja richtig im sonst falls, dort muss die Tür zu sein und der vorige Wert <=68

                                        ich kapiers nicht, warum voriger Wert <= 68 ?

                                        BG

                                        paul53P 1 Antwort Letzte Antwort
                                        0
                                        • HumidorH Humidor

                                          @paul53 sagte in Zeitverzögerung und Timer:

                                          @Humidor
                                          Im mache-Zweig werden die Timer gelöscht, wenn die Feuchte > 68 ist.
                                          Der sonst-falls-Zweig wird ausgeführt, wenn die Feuchte <= 68 ist.

                                          ja richtig im sonst falls, dort muss die Tür zu sein und der vorige Wert <=68

                                          ich kapiers nicht, warum voriger Wert <= 68 ?

                                          paul53P Offline
                                          paul53P Offline
                                          paul53
                                          schrieb am zuletzt editiert von paul53
                                          #25

                                          @Humidor sagte:

                                          ich kapiers nicht, warum voriger Wert <= 68 ?

                                          Das würde ich auch nicht kapieren, denn die richtige Bedingung ist vorheriger Wert > 68, wie schon mehrmals geschrieben.

                                          Blockly_temp.JPG

                                          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                          HumidorH 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

                                          459

                                          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