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] Hilfe bei zeitsteuerung

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.3k

[gelöst] Hilfe bei zeitsteuerung

Geplant Angeheftet Gesperrt Verschoben Blockly
80 Beiträge 4 Kommentatoren 6.5k 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.
  • AphofisA Offline
    AphofisA Offline
    Aphofis
    schrieb am zuletzt editiert von
    #45

    Hab jetzt für jede Fütterung eine eigene Steuerung gemacht da es sonst zu unübersichtlich wird.

    var clock, Dauer, Uhrzeit, schedule, Intervall;
    
    /**
     * Beschreibe diese Funktion …
     */
    function Futter() {
      Dauer = parseFloat(getState("Aqua_Control.0.Futterautomatik.Futterautomatik_Faktor_1").val);
      setState("sonoff.0.Aqua_Dosierer.POWER1"/*Aqua_Dosierer_Pumpe_1*/, true);
      // Intervalldauer = Faktor
      Intervall = setInterval(function () {
        Dauer = (typeof Dauer == 'number' ? Dauer : 0) + -1;
        if (Dauer <= 0) {
          (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
          setState("sonoff.0.Aqua_Dosierer.POWER1"/*Aqua_Dosierer_Pumpe_1*/, false);
        }
      }, 800);
    }
    
    /**
     * Beschreibe diese Funktion …
     */
    function setUhr(clock) {
      Uhrzeit = clock.split(':');
      schedule = schedule((Uhrzeit[1]).trim() + ' ' + (Uhrzeit[0]).trim() + ' ' + '*'.trim() + ' ' + '*'.trim() + ' ' + '*'.trim(), function () {
        Futter();
      });
    }
    
    
    setUhr(getState("Aqua_Control.0.Futterautomatik.Futterautomatik_Uhrzeit_1").val);
    on({id: 'Aqua_Control.0.Futterautomatik.Futterautomatik_Uhrzeit_1', change: "ne"}, function (obj) {
      var value = obj.state.val;
      var oldValue = obj.oldState.val;
      (function () {if (schedule) {clearSchedule(schedule); schedule = null;}})();
      setUhr((obj.state ? obj.state.val : ""));
    });
    
    1 Antwort Letzte Antwort
    0
    • paul53P paul53

      @Aphofis
      In den Funktionen Futter_2(), Futter_3() und Futter_4() wird das falsche Intervall gestoppt.

      AphofisA Offline
      AphofisA Offline
      Aphofis
      schrieb am zuletzt editiert von
      #46

      @paul53
      Ja hatte ich gesehen! Deswegen einzelne Steuerungen dann kommt es innerhalb der Variablen und Funktionen nicht zum irrtum.

      1 Antwort Letzte Antwort
      0
      • AphofisA Offline
        AphofisA Offline
        Aphofis
        schrieb am zuletzt editiert von Aphofis
        #47

        Habe jetzt alle vier steuerungen getestet und es werden alle so dosiert wie der intervall eingestellt ist mit dem Faktor und der angegebenen Uhrzeit!!!
        Das Ergebnis für eine Dosierzeit ist:

        <xml xmlns="http://www.w3.org/1999/xhtml">
          <variables>
            <variable type="" id=".S1.A,IoO_~]*nXiz`S*">clock</variable>
            <variable type="" id="u)9}*R19v/Qs3Rt)$4,W">Dauer</variable>
            <variable type="" id="Q7*Gw)fesXb}OUBj1{`;">Uhrzeit</variable>
            <variable type="undefined" id="schedule">schedule</variable>
            <variable type="undefined" id="Intervall">Intervall</variable>
          </variables>
          <block type="procedures_defnoreturn" id="jE$gVVpa7!Xtx{X@H^Fd" x="-2662" y="-1512">
            <field name="NAME">Futter</field>
            <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
            <statement name="STACK">
              <block type="variables_set" id="9kptcK|P^2:}bKZXyZ8f">
                <field name="VAR" id="u)9}*R19v/Qs3Rt)$4,W" variabletype="">Dauer</field>
                <value name="VALUE">
                  <block type="convert_tonumber" id="Tj/%:}sl8v})GfkG,zO:">
                    <value name="VALUE">
                      <block type="get_value" id=".,XzJi)h(f$9$~(`H$I!">
                        <field name="ATTR">val</field>
                        <field name="OID">Aqua_Control.0.Futterautomatik.Futterautomatik_Faktor_1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="control" id="%}iPzHc5tUi.(P1_MvRo">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">rpi2.0.gpio.25.state</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="SM.e~4#O=p?c/SXA|JX%">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="comment" id="KV;?nPX*TAluqR-qF9f+">
                        <field name="COMMENT">Intervalldauer = Faktor</field>
                        <next>
                          <block type="timeouts_setinterval" id="1+dIQ5^rJM?nkaI[6WN}">
                            <field name="NAME">Intervall</field>
                            <field name="INTERVAL">700</field>
                            <field name="UNIT">ms</field>
                            <statement name="STATEMENT">
                              <block type="math_change" id="!*zN$DgW0K=76_[.1*]X">
                                <field name="VAR" id="u)9}*R19v/Qs3Rt)$4,W" variabletype="">Dauer</field>
                                <value name="DELTA">
                                  <shadow type="math_number" id="e_D7=bSd65:`]Q{qWSZD">
                                    <field name="NUM">-1</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="controls_if" id="=/[;A-M~WF?KXEx~W0z?">
                                    <value name="IF0">
                                      <block type="logic_compare" id=";qY,PC)CB~{1#4iVHaj,">
                                        <field name="OP">LTE</field>
                                        <value name="A">
                                          <block type="variables_get" id="2k;4KgTu$A3wF)@V`ulP">
                                            <field name="VAR" id="u)9}*R19v/Qs3Rt)$4,W" variabletype="">Dauer</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="?bnhw6qVm`$}~NCKlw2P">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="timeouts_clearinterval" id=";dz/hf`o4]4(2pDSH)I3">
                                        <field name="NAME">Intervall</field>
                                        <next>
                                          <block type="control" id="SeaFI}%xNdyzRbLV,6HN">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">rpi2.0.gpio.25.state</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="1_[)-;0}n;LMH}tCmhi:">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
          <block type="procedures_callnoreturn" id="3a)9A+{U=BTerQFdk^7e" x="-2662" y="-1162">
            <mutation name="setUhr">
              <arg name="clock"></arg>
            </mutation>
            <value name="ARG0">
              <block type="get_value" id="Rmv(=Tg+:6/}8B(?~nI#">
                <field name="ATTR">val</field>
                <field name="OID">Aqua_Control.0.Futterautomatik.Futterautomatik_Uhrzeit_1</field>
              </block>
            </value>
            <next>
              <block type="on_ext" id="X}o|@dWx#6!BiHho8e)o">
                <mutation items="1"></mutation>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="dXPC7;GFYg(#~T78}@mB">
                    <field name="oid">Aqua_Control.0.Futterautomatik.Futterautomatik_Uhrzeit_1</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="schedule_clear" id="nt-N]NBg?,fY%.)hYJ4D">
                    <field name="NAME">schedule</field>
                    <next>
                      <block type="procedures_callnoreturn" id="yvhs4uL6uUxnW!c$UF/{">
                        <mutation name="setUhr">
                          <arg name="clock"></arg>
                        </mutation>
                        <value name="ARG0">
                          <block type="on_source" id="SfI,}teG@`dg#_g%Zp#:">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
          <block type="procedures_defnoreturn" id="fK5kmsd)LwZ7|P2xa^9U" x="-2387" y="-1062">
            <mutation>
              <arg name="clock" varid=".S1.A,IoO_~]*nXiz`S*"></arg>
            </mutation>
            <field name="NAME">setUhr</field>
            <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
            <statement name="STACK">
              <block type="variables_set" id="aOx5`vU/=f;#)rmrW[|7">
                <field name="VAR" id="Q7*Gw)fesXb}OUBj1{`;" variabletype="">Uhrzeit</field>
                <value name="VALUE">
                  <block type="lists_split" id="XnqDHu5JM{#WIs8~S,M-">
                    <mutation mode="SPLIT"></mutation>
                    <field name="MODE">SPLIT</field>
                    <value name="INPUT">
                      <block type="variables_get" id="4`T;i0Hg@f?=Gq^,J6.~">
                        <field name="VAR" id=".S1.A,IoO_~]*nXiz`S*" variabletype="">clock</field>
                      </block>
                    </value>
                    <value name="DELIM">
                      <shadow type="text" id="]v!xP8l3r?{D;(m_QyNL">
                        <field name="TEXT">:</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="schedule_create" id="6x%+6G+PaD[w*{FuFm=K">
                    <field name="NAME">schedule</field>
                    <value name="SCHEDULE">
                      <shadow type="field_cron" id="m4F75|F$}NA}2;e/avWa">
                        <field name="CRON">* * * * *</field>
                      </shadow>
                      <block type="cron_builder" id="q6(U2T{7uu}mYF)9QMKr">
                        <mutation seconds="false" as_line="false"></mutation>
                        <field name="LINE">FALSE</field>
                        <field name="WITH_SECONDS">FALSE</field>
                        <value name="DOW">
                          <shadow type="text" id=")8oVcqHY5re?jv#0QsO8">
                            <field name="TEXT">*</field>
                          </shadow>
                        </value>
                        <value name="MONTHS">
                          <shadow type="text" id="GfQ!DoE|TZTliq*)8,@j">
                            <field name="TEXT">*</field>
                          </shadow>
                        </value>
                        <value name="DAYS">
                          <shadow type="text" id="S6hVuxIjcYJMlS^~:zE5">
                            <field name="TEXT">*</field>
                          </shadow>
                        </value>
                        <value name="HOURS">
                          <shadow type="text" id="NP{*G*@dWEP9M9mNlZFF">
                            <field name="TEXT">*</field>
                          </shadow>
                          <block type="lists_getIndex" id="-0gZ}|H=8/}~St}d%rl;">
                            <mutation statement="false" at="true"></mutation>
                            <field name="MODE">GET</field>
                            <field name="WHERE">FROM_START</field>
                            <value name="VALUE">
                              <block type="variables_get" id="8U#M]$`MHq(~A]~(v{2R">
                                <field name="VAR" id="Q7*Gw)fesXb}OUBj1{`;" variabletype="">Uhrzeit</field>
                              </block>
                            </value>
                            <value name="AT">
                              <block type="math_number" id=")zFTxG~Gpp`eZw8r2,8w">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="MINUTES">
                          <shadow type="text" id="I(LCmtz/NJ%:Tvp,*;JL">
                            <field name="TEXT">*</field>
                          </shadow>
                          <block type="lists_getIndex" id="0([.HRKLsVPA.X:jwVI@">
                            <mutation statement="false" at="true"></mutation>
                            <field name="MODE">GET</field>
                            <field name="WHERE">FROM_START</field>
                            <value name="VALUE">
                              <block type="variables_get" id="8#E0pY-UET(BcZH]~qB:">
                                <field name="VAR" id="Q7*Gw)fesXb}OUBj1{`;" variabletype="">Uhrzeit</field>
                              </block>
                            </value>
                            <value name="AT">
                              <block type="math_number" id=";UF-jK:^cV#hui?GDL/V">
                                <field name="NUM">2</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="STATEMENT">
                      <block type="procedures_callnoreturn" id="/6qq{?/)+*vm:UnA$x,0">
                        <mutation name="Futter"></mutation>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </xml>
        
        <xml xmlns="http://www.w3.org/1999/xhtml">
          <variables>
            <variable type="" id=".S1.A,IoO_~]*nXiz`S*">clock</variable>
            <variable type="" id="u)9}*R19v/Qs3Rt)$4,W">Dauer</variable>
            <variable type="" id="Q7*Gw)fesXb}OUBj1{`;">Uhrzeit</variable>
            <variable type="undefined" id="schedule">schedule</variable>
            <variable type="undefined" id="Intervall">Intervall</variable>
          </variables>
          <block type="procedures_defnoreturn" id="jE$gVVpa7!Xtx{X@H^Fd" x="-2662" y="-1512">
            <field name="NAME">Futter</field>
            <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
            <statement name="STACK">
              <block type="variables_set" id="9kptcK|P^2:}bKZXyZ8f">
                <field name="VAR" id="u)9}*R19v/Qs3Rt)$4,W" variabletype="">Dauer</field>
                <value name="VALUE">
                  <block type="convert_tonumber" id="Tj/%:}sl8v})GfkG,zO:">
                    <value name="VALUE">
                      <block type="get_value" id=".,XzJi)h(f$9$~(`H$I!">
                        <field name="ATTR">val</field>
                        <field name="OID">Aqua_Control.0.Futterautomatik.Futterautomatik_Faktor_1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="control" id="%}iPzHc5tUi.(P1_MvRo">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">rpi2.0.gpio.25.state</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="SM.e~4#O=p?c/SXA|JX%">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="comment" id="KV;?nPX*TAluqR-qF9f+">
                        <field name="COMMENT">Intervalldauer = Faktor</field>
                        <next>
                          <block type="timeouts_setinterval" id="1+dIQ5^rJM?nkaI[6WN}">
                            <field name="NAME">Intervall</field>
                            <field name="INTERVAL">700</field>
                            <field name="UNIT">ms</field>
                            <statement name="STATEMENT">
                              <block type="math_change" id="!*zN$DgW0K=76_[.1*]X">
                                <field name="VAR" id="u)9}*R19v/Qs3Rt)$4,W" variabletype="">Dauer</field>
                                <value name="DELTA">
                                  <shadow type="math_number" id="e_D7=bSd65:`]Q{qWSZD">
                                    <field name="NUM">-1</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="controls_if" id="=/[;A-M~WF?KXEx~W0z?">
                                    <value name="IF0">
                                      <block type="logic_compare" id=";qY,PC)CB~{1#4iVHaj,">
                                        <field name="OP">LTE</field>
                                        <value name="A">
                                          <block type="variables_get" id="2k;4KgTu$A3wF)@V`ulP">
                                            <field name="VAR" id="u)9}*R19v/Qs3Rt)$4,W" variabletype="">Dauer</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="?bnhw6qVm`$}~NCKlw2P">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="timeouts_clearinterval" id=";dz/hf`o4]4(2pDSH)I3">
                                        <field name="NAME">Intervall</field>
                                        <next>
                                          <block type="control" id="SeaFI}%xNdyzRbLV,6HN">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">rpi2.0.gpio.25.state</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="1_[)-;0}n;LMH}tCmhi:">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
          <block type="procedures_callnoreturn" id="3a)9A+{U=BTerQFdk^7e" x="-2662" y="-1162">
            <mutation name="setUhr">
              <arg name="clock"></arg>
            </mutation>
            <value name="ARG0">
              <block type="get_value" id="Rmv(=Tg+:6/}8B(?~nI#">
                <field name="ATTR">val</field>
                <field name="OID">Aqua_Control.0.Futterautomatik.Futterautomatik_Uhrzeit_1</field>
              </block>
            </value>
            <next>
              <block type="on_ext" id="X}o|@dWx#6!BiHho8e)o">
                <mutation items="1"></mutation>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="dXPC7;GFYg(#~T78}@mB">
                    <field name="oid">Aqua_Control.0.Futterautomatik.Futterautomatik_Uhrzeit_1</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="schedule_clear" id="nt-N]NBg?,fY%.)hYJ4D">
                    <field name="NAME">schedule</field>
                    <next>
                      <block type="procedures_callnoreturn" id="yvhs4uL6uUxnW!c$UF/{">
                        <mutation name="setUhr">
                          <arg name="clock"></arg>
                        </mutation>
                        <value name="ARG0">
                          <block type="on_source" id="SfI,}teG@`dg#_g%Zp#:">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
          <block type="procedures_defnoreturn" id="fK5kmsd)LwZ7|P2xa^9U" x="-2387" y="-1062">
            <mutation>
              <arg name="clock" varid=".S1.A,IoO_~]*nXiz`S*"></arg>
            </mutation>
            <field name="NAME">setUhr</field>
            <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
            <statement name="STACK">
              <block type="variables_set" id="aOx5`vU/=f;#)rmrW[|7">
                <field name="VAR" id="Q7*Gw)fesXb}OUBj1{`;" variabletype="">Uhrzeit</field>
                <value name="VALUE">
                  <block type="lists_split" id="XnqDHu5JM{#WIs8~S,M-">
                    <mutation mode="SPLIT"></mutation>
                    <field name="MODE">SPLIT</field>
                    <value name="INPUT">
                      <block type="variables_get" id="4`T;i0Hg@f?=Gq^,J6.~">
                        <field name="VAR" id=".S1.A,IoO_~]*nXiz`S*" variabletype="">clock</field>
                      </block>
                    </value>
                    <value name="DELIM">
                      <shadow type="text" id="]v!xP8l3r?{D;(m_QyNL">
                        <field name="TEXT">:</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="schedule_create" id="6x%+6G+PaD[w*{FuFm=K">
                    <field name="NAME">schedule</field>
                    <value name="SCHEDULE">
                      <shadow type="field_cron" id="m4F75|F$}NA}2;e/avWa">
                        <field name="CRON">* * * * *</field>
                      </shadow>
                      <block type="cron_builder" id="q6(U2T{7uu}mYF)9QMKr">
                        <mutation seconds="false" as_line="false"></mutation>
                        <field name="LINE">FALSE</field>
                        <field name="WITH_SECONDS">FALSE</field>
                        <value name="DOW">
                          <shadow type="text" id=")8oVcqHY5re?jv#0QsO8">
                            <field name="TEXT">*</field>
                          </shadow>
                        </value>
                        <value name="MONTHS">
                          <shadow type="text" id="GfQ!DoE|TZTliq*)8,@j">
                            <field name="TEXT">*</field>
                          </shadow>
                        </value>
                        <value name="DAYS">
                          <shadow type="text" id="S6hVuxIjcYJMlS^~:zE5">
                            <field name="TEXT">*</field>
                          </shadow>
                        </value>
                        <value name="HOURS">
                          <shadow type="text" id="NP{*G*@dWEP9M9mNlZFF">
                            <field name="TEXT">*</field>
                          </shadow>
                          <block type="lists_getIndex" id="-0gZ}|H=8/}~St}d%rl;">
                            <mutation statement="false" at="true"></mutation>
                            <field name="MODE">GET</field>
                            <field name="WHERE">FROM_START</field>
                            <value name="VALUE">
                              <block type="variables_get" id="8U#M]$`MHq(~A]~(v{2R">
                                <field name="VAR" id="Q7*Gw)fesXb}OUBj1{`;" variabletype="">Uhrzeit</field>
                              </block>
                            </value>
                            <value name="AT">
                              <block type="math_number" id=")zFTxG~Gpp`eZw8r2,8w">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="MINUTES">
                          <shadow type="text" id="I(LCmtz/NJ%:Tvp,*;JL">
                            <field name="TEXT">*</field>
                          </shadow>
                          <block type="lists_getIndex" id="0([.HRKLsVPA.X:jwVI@">
                            <mutation statement="false" at="true"></mutation>
                            <field name="MODE">GET</field>
                            <field name="WHERE">FROM_START</field>
                            <value name="VALUE">
                              <block type="variables_get" id="8#E0pY-UET(BcZH]~qB:">
                                <field name="VAR" id="Q7*Gw)fesXb}OUBj1{`;" variabletype="">Uhrzeit</field>
                              </block>
                            </value>
                            <value name="AT">
                              <block type="math_number" id=";UF-jK:^cV#hui?GDL/V">
                                <field name="NUM">2</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="STATEMENT">
                      <block type="procedures_callnoreturn" id="/6qq{?/)+*vm:UnA$x,0">
                        <mutation name="Futter"></mutation>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </xml>
        
        var clock, Dauer, Uhrzeit, schedule, Intervall;
        
        /**
         * Beschreibe diese Funktion …
         */
        function Futter() {
          Dauer = parseFloat(getState("Aqua_Control.0.Futterautomatik.Futterautomatik_Faktor_1").val);
          setState("rpi2.0.gpio.25.state"/*Futterautomat_Buchse_4*/, true);
          // Intervalldauer = Faktor
          Intervall = setInterval(function () {
            Dauer = (typeof Dauer == 'number' ? Dauer : 0) + -1;
            if (Dauer <= 0) {
              (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
              setState("rpi2.0.gpio.25.state"/*Futterautomat_Buchse_4*/, false);
            }
          }, 700);
        }
        
        /**
         * Beschreibe diese Funktion …
         */
        function setUhr(clock) {
          Uhrzeit = clock.split(':');
          schedule = schedule((Uhrzeit[1]).trim() + ' ' + (Uhrzeit[0]).trim() + ' ' + '*'.trim() + ' ' + '*'.trim() + ' ' + '*'.trim(), function () {
            Futter();
          });
        }
        
        
        setUhr(getState("Aqua_Control.0.Futterautomatik.Futterautomatik_Uhrzeit_1").val);
        on({id: 'Aqua_Control.0.Futterautomatik.Futterautomatik_Uhrzeit_1', change: "ne"}, function (obj) {
          var value = obj.state.val;
          var oldValue = obj.oldState.val;
          (function () {if (schedule) {clearSchedule(schedule); schedule = null;}})();
          setUhr((obj.state ? obj.state.val : ""));
        });
        

        Datenpunkte:

        Bildschirmfoto 2019-08-18 um 17.40.11.png

        1 Antwort Letzte Antwort
        0
        • AphofisA Offline
          AphofisA Offline
          Aphofis
          schrieb am zuletzt editiert von
          #48

          Es ist echt Spitze!!!!
          Egal welches Problem ich dir auch vor die Füße Werfe, du findest eine Lösung!!!
          Vielen vielen Dank.
          Ich würde ja glatt sagen um meine Strömungspumpen geschichte zum laufen zu bekommen, würde ich dir dafür sogar Geld geben.

          HomoranH 1 Antwort Letzte Antwort
          0
          • AphofisA Aphofis

            Es ist echt Spitze!!!!
            Egal welches Problem ich dir auch vor die Füße Werfe, du findest eine Lösung!!!
            Vielen vielen Dank.
            Ich würde ja glatt sagen um meine Strömungspumpen geschichte zum laufen zu bekommen, würde ich dir dafür sogar Geld geben.

            HomoranH Nicht stören
            HomoranH Nicht stören
            Homoran
            Global Moderator Administrators
            schrieb am zuletzt editiert von
            #49

            @Aphofis
            Und warum gibt es keine positive(n) Bewertung(en)?

            kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

            der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

            AphofisA 1 Antwort Letzte Antwort
            0
            • HomoranH Homoran

              @Aphofis
              Und warum gibt es keine positive(n) Bewertung(en)?

              AphofisA Offline
              AphofisA Offline
              Aphofis
              schrieb am zuletzt editiert von
              #50

              @Homoran
              Wenn du mir verrätst wo!
              ICh suche das schon die ganze Zeit aber finde die option nicht.

              HomoranH 1 Antwort Letzte Antwort
              0
              • AphofisA Offline
                AphofisA Offline
                Aphofis
                schrieb am zuletzt editiert von
                #51

                wo kann ich denn am sinnvollsten eine Telegram Nachricht einbauen das dosiert wurde, ohne das die Meldung alle x sek geschickt wird!? Hatte einen Telegram block in den trigger nach dem stoppen des intervalls eingebaut doch dann kam alle paar sek eine meldung.

                paul53P 1 Antwort Letzte Antwort
                0
                • AphofisA Aphofis

                  wo kann ich denn am sinnvollsten eine Telegram Nachricht einbauen das dosiert wurde, ohne das die Meldung alle x sek geschickt wird!? Hatte einen Telegram block in den trigger nach dem stoppen des intervalls eingebaut doch dann kam alle paar sek eine meldung.

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

                  @Aphofis sagte:

                  wo kann ich denn am sinnvollsten eine Telegram Nachricht einbauen das dosiert wurde

                  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

                  AphofisA 1 Antwort Letzte Antwort
                  1
                  • AphofisA Aphofis

                    @Homoran
                    Wenn du mir verrätst wo!
                    ICh suche das schon die ganze Zeit aber finde die option nicht.

                    HomoranH Nicht stören
                    HomoranH Nicht stören
                    Homoran
                    Global Moderator Administrators
                    schrieb am zuletzt editiert von Homoran
                    #53

                    @Aphofis sagte in [gelöst] Hilfe bei zeitsteuerung:

                    aber finde die option nicht.

                    rechts unter jedem Beitrag gibt es einen Pfeil rauf für postive und einen Pfeil runter für negative Bewertungen des Beitrags

                    Dazwischen steht der Wert der bisherigen Bewertungen

                    kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                    Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                    der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                    AphofisA 1 Antwort Letzte Antwort
                    2
                    • HomoranH Homoran

                      @Aphofis sagte in [gelöst] Hilfe bei zeitsteuerung:

                      aber finde die option nicht.

                      rechts unter jedem Beitrag gibt es einen Pfeil rauf für postive und einen Pfeil runter für negative Bewertungen des Beitrags

                      Dazwischen steht der Wert der bisherigen Bewertungen

                      AphofisA Offline
                      AphofisA Offline
                      Aphofis
                      schrieb am zuletzt editiert von
                      #54

                      @Homoran
                      Danke! Das muss man ja wissen.
                      Habe auch keine Funktionen gefunden wie was im Forum gemacht wird sonst hätte ich selbst was gefunden.
                      Vielen Dank

                      1 Antwort Letzte Antwort
                      0
                      • paul53P paul53

                        @Aphofis sagte:

                        wo kann ich denn am sinnvollsten eine Telegram Nachricht einbauen das dosiert wurde

                        Blockly_temp.JPG

                        AphofisA Offline
                        AphofisA Offline
                        Aphofis
                        schrieb am zuletzt editiert von
                        #55

                        @paul53 sagte in [gelöst] Hilfe bei zeitsteuerung:

                        @Aphofis sagte:

                        wo kann ich denn am sinnvollsten eine Telegram Nachricht einbauen das dosiert wurde

                        Blockly_temp.JPG

                        Danke!!!

                        1 Antwort Letzte Antwort
                        0
                        • AphofisA Offline
                          AphofisA Offline
                          Aphofis
                          schrieb am zuletzt editiert von
                          #56

                          @paul53
                          Das war jetzt eben etwas Spukie!!!
                          Der Dosierpumpenkasten wurden alle vier angeschlossenen Lösungen gleichzeitig aktiviert und auch nur die vier von 8 möglichen Pumpen.
                          Alarm Max Sirene ist angesprungen.
                          Dann habe ich schnell den Dosierpumpen Kasten vom Strom getrennt und die Schläuche von den Kanistern abgenommen.
                          Pump Verteiler in einem Meßbecher gehängt pumpen wieder an den Strom geklemmt und ausgeschaltet.
                          Dazu sagte dann alexa auch noch ich weiß nicht was schief gelaufen ist.
                          Entweder ich habe Geister im Haus oder ich bin bekloppt.
                          Kann man die Steuerung soweit verfeinern das nur das gepumpt werden kann was auch aus dem Datenpunkten Faktoren genommen wird für die jeweilige Pump dosierung.
                          Da ja anscheinend ein kommunikations Fehler bestand.
                          Der Pi oder iobroker sind nihct neu gestartet.
                          In der Log gab es keinen eintrag das irgendwas dosiert wurde.
                          Momentane Steuerung sieht so aus.

                          <xml xmlns="http://www.w3.org/1999/xhtml">
                            <variables>
                              <variable type="" id="snfLpaddd`4/)Uy^kLsW">clock</variable>
                              <variable type="" id=")bAD/?%{s?q44~ZGe7{B">Dauer</variable>
                              <variable type="" id="iQ`n%m6-[L_B242P|7rW">Uhrzeit</variable>
                              <variable type="undefined" id="schedule">schedule</variable>
                              <variable type="undefined" id="Intervall">Intervall</variable>
                            </variables>
                            <block type="procedures_callnoreturn" id="3a)9A+{U=BTerQFdk^7e" x="-3287" y="-1587">
                              <mutation name="setUhr">
                                <arg name="clock"></arg>
                              </mutation>
                              <value name="ARG0">
                                <block type="get_value" id="Rmv(=Tg+:6/}8B(?~nI#">
                                  <field name="ATTR">val</field>
                                  <field name="OID">Aqua_Control.0.Triton.Lösung_1.Uhrzeiten.Lösung_1_Uhrzeit_1</field>
                                </block>
                              </value>
                              <next>
                                <block type="on_ext" id="X}o|@dWx#6!BiHho8e)o">
                                  <mutation items="1"></mutation>
                                  <field name="CONDITION">ne</field>
                                  <field name="ACK_CONDITION"></field>
                                  <value name="OID0">
                                    <shadow type="field_oid" id="dXPC7;GFYg(#~T78}@mB">
                                      <field name="oid">Aqua_Control.0.Triton.Lösung_1.Uhrzeiten.Lösung_1_Uhrzeit_1</field>
                                    </shadow>
                                  </value>
                                  <statement name="STATEMENT">
                                    <block type="schedule_clear" id="nt-N]NBg?,fY%.)hYJ4D">
                                      <field name="NAME">schedule</field>
                                      <next>
                                        <block type="procedures_callnoreturn" id="yvhs4uL6uUxnW!c$UF/{">
                                          <mutation name="setUhr">
                                            <arg name="clock"></arg>
                                          </mutation>
                                          <value name="ARG0">
                                            <block type="on_source" id="SfI,}teG@`dg#_g%Zp#:">
                                              <field name="ATTR">state.val</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                            <block type="procedures_defnoreturn" id="jE$gVVpa7!Xtx{X@H^Fd" x="-3287" y="-1312">
                              <field name="NAME">Lösung_1</field>
                              <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                              <statement name="STACK">
                                <block type="variables_set" id="9kptcK|P^2:}bKZXyZ8f">
                                  <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B" variabletype="">Dauer</field>
                                  <value name="VALUE">
                                    <block type="convert_tonumber" id="Tj/%:}sl8v})GfkG,zO:">
                                      <value name="VALUE">
                                        <block type="get_value" id=".,XzJi)h(f$9$~(`H$I!">
                                          <field name="ATTR">val</field>
                                          <field name="OID">Aqua_Control.0.Triton.Lösung_1.Faktoren.Lösung_1_Faktor_2</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="%}iPzHc5tUi.(P1_MvRo">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">sonoff.0.Aqua_Dosierer.POWER1</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="SM.e~4#O=p?c/SXA|JX%">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="comment" id="KV;?nPX*TAluqR-qF9f+">
                                          <field name="COMMENT">Intervalldauer = Faktor</field>
                                          <next>
                                            <block type="timeouts_setinterval" id="1+dIQ5^rJM?nkaI[6WN}">
                                              <field name="NAME">Intervall</field>
                                              <field name="INTERVAL">806</field>
                                              <field name="UNIT">ms</field>
                                              <statement name="STATEMENT">
                                                <block type="math_change" id="!*zN$DgW0K=76_[.1*]X">
                                                  <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B" variabletype="">Dauer</field>
                                                  <value name="DELTA">
                                                    <shadow type="math_number" id="e_D7=bSd65:`]Q{qWSZD">
                                                      <field name="NUM">-1</field>
                                                    </shadow>
                                                  </value>
                                                  <next>
                                                    <block type="controls_if" id="=/[;A-M~WF?KXEx~W0z?">
                                                      <value name="IF0">
                                                        <block type="logic_compare" id=";qY,PC)CB~{1#4iVHaj,">
                                                          <field name="OP">LTE</field>
                                                          <value name="A">
                                                            <block type="variables_get" id="2k;4KgTu$A3wF)@V`ulP">
                                                              <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B" variabletype="">Dauer</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="?bnhw6qVm`$}~NCKlw2P">
                                                              <field name="NUM">0</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="timeouts_clearinterval" id=";dz/hf`o4]4(2pDSH)I3">
                                                          <field name="NAME">Intervall</field>
                                                          <next>
                                                            <block type="control" id="SeaFI}%xNdyzRbLV,6HN">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">sonoff.0.Aqua_Dosierer.POWER1</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="1_[)-;0}n;LMH}tCmhi:">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="telegram" id="N)tO@5NbhTtUeW(4MtBo">
                                                                  <field name="INSTANCE">.0</field>
                                                                  <field name="LOG"></field>
                                                                  <field name="SILENT">FALSE</field>
                                                                  <field name="PARSEMODE">default</field>
                                                                  <value name="MESSAGE">
                                                                    <shadow type="text" id="R8/w|SSi{cj7,4lDKwe[">
                                                                      <field name="TEXT">text</field>
                                                                    </shadow>
                                                                    <block type="text_join" id="Jm8OpAELrwceT@g35lf{">
                                                                      <mutation items="4"></mutation>
                                                                      <value name="ADD0">
                                                                        <block type="text" id="CM1{{J8!7VItB4D8j3B8">
                                                                          <field name="TEXT">Triton Lösung 1 </field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD1">
                                                                        <block type="text_newline" id="o]Q2(%iBw$/9I:?8IyZw">
                                                                          <field name="Type">\n</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD2">
                                                                        <block type="get_value" id="f]$r3U;[8ohFZ.8I[asH">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">Aqua_Control.0.Triton.Lösung_1.Faktoren.Lösung_1_Faktor_2</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD3">
                                                                        <block type="text" id="Jxd~DTQ,y3LUt8En2!}Y">
                                                                          <field name="TEXT"> ml dosiert</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                            <block type="procedures_defnoreturn" id="fK5kmsd)LwZ7|P2xa^9U" x="-3287" y="-762">
                              <mutation>
                                <arg name="clock" varid="snfLpaddd`4/)Uy^kLsW"></arg>
                              </mutation>
                              <field name="NAME">setUhr</field>
                              <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                              <statement name="STACK">
                                <block type="variables_set" id="aOx5`vU/=f;#)rmrW[|7">
                                  <field name="VAR" id="iQ`n%m6-[L_B242P|7rW" variabletype="">Uhrzeit</field>
                                  <value name="VALUE">
                                    <block type="lists_split" id="XnqDHu5JM{#WIs8~S,M-">
                                      <mutation mode="SPLIT"></mutation>
                                      <field name="MODE">SPLIT</field>
                                      <value name="INPUT">
                                        <block type="variables_get" id="4`T;i0Hg@f?=Gq^,J6.~">
                                          <field name="VAR" id="snfLpaddd`4/)Uy^kLsW" variabletype="">clock</field>
                                        </block>
                                      </value>
                                      <value name="DELIM">
                                        <shadow type="text" id="]v!xP8l3r?{D;(m_QyNL">
                                          <field name="TEXT">:</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="schedule_create" id="6x%+6G+PaD[w*{FuFm=K">
                                      <field name="NAME">schedule</field>
                                      <value name="SCHEDULE">
                                        <shadow type="field_cron" id="m4F75|F$}NA}2;e/avWa">
                                          <field name="CRON">* * * * *</field>
                                        </shadow>
                                        <block type="cron_builder" id="q6(U2T{7uu}mYF)9QMKr">
                                          <mutation seconds="false" as_line="false"></mutation>
                                          <field name="LINE">FALSE</field>
                                          <field name="WITH_SECONDS">FALSE</field>
                                          <value name="DOW">
                                            <shadow type="text" id=")8oVcqHY5re?jv#0QsO8">
                                              <field name="TEXT">*</field>
                                            </shadow>
                                          </value>
                                          <value name="MONTHS">
                                            <shadow type="text" id="GfQ!DoE|TZTliq*)8,@j">
                                              <field name="TEXT">*</field>
                                            </shadow>
                                          </value>
                                          <value name="DAYS">
                                            <shadow type="text" id="S6hVuxIjcYJMlS^~:zE5">
                                              <field name="TEXT">*</field>
                                            </shadow>
                                          </value>
                                          <value name="HOURS">
                                            <shadow type="text" id="NP{*G*@dWEP9M9mNlZFF">
                                              <field name="TEXT">*</field>
                                            </shadow>
                                            <block type="lists_getIndex" id="-0gZ}|H=8/}~St}d%rl;">
                                              <mutation statement="false" at="true"></mutation>
                                              <field name="MODE">GET</field>
                                              <field name="WHERE">FROM_START</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="8U#M]$`MHq(~A]~(v{2R">
                                                  <field name="VAR" id="iQ`n%m6-[L_B242P|7rW" variabletype="">Uhrzeit</field>
                                                </block>
                                              </value>
                                              <value name="AT">
                                                <block type="math_number" id=")zFTxG~Gpp`eZw8r2,8w">
                                                  <field name="NUM">1</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="MINUTES">
                                            <shadow type="text" id="I(LCmtz/NJ%:Tvp,*;JL">
                                              <field name="TEXT">*</field>
                                            </shadow>
                                            <block type="lists_getIndex" id="0([.HRKLsVPA.X:jwVI@">
                                              <mutation statement="false" at="true"></mutation>
                                              <field name="MODE">GET</field>
                                              <field name="WHERE">FROM_START</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="8#E0pY-UET(BcZH]~qB:">
                                                  <field name="VAR" id="iQ`n%m6-[L_B242P|7rW" variabletype="">Uhrzeit</field>
                                                </block>
                                              </value>
                                              <value name="AT">
                                                <block type="math_number" id=";UF-jK:^cV#hui?GDL/V">
                                                  <field name="NUM">2</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="procedures_callnoreturn" id="/6qq{?/)+*vm:UnA$x,0">
                                          <mutation name="Lösung_1"></mutation>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </xml>
                          

                          Bildschirmfoto 2019-10-12 um 13.51.45.png
                          Vielleicht das die verbindung dem Gerät sagt so lange false bis dann der Uhrzeit trigger eine Pumpe auslöst.

                          paul53P 1 Antwort Letzte Antwort
                          0
                          • AphofisA Aphofis

                            @paul53
                            Das war jetzt eben etwas Spukie!!!
                            Der Dosierpumpenkasten wurden alle vier angeschlossenen Lösungen gleichzeitig aktiviert und auch nur die vier von 8 möglichen Pumpen.
                            Alarm Max Sirene ist angesprungen.
                            Dann habe ich schnell den Dosierpumpen Kasten vom Strom getrennt und die Schläuche von den Kanistern abgenommen.
                            Pump Verteiler in einem Meßbecher gehängt pumpen wieder an den Strom geklemmt und ausgeschaltet.
                            Dazu sagte dann alexa auch noch ich weiß nicht was schief gelaufen ist.
                            Entweder ich habe Geister im Haus oder ich bin bekloppt.
                            Kann man die Steuerung soweit verfeinern das nur das gepumpt werden kann was auch aus dem Datenpunkten Faktoren genommen wird für die jeweilige Pump dosierung.
                            Da ja anscheinend ein kommunikations Fehler bestand.
                            Der Pi oder iobroker sind nihct neu gestartet.
                            In der Log gab es keinen eintrag das irgendwas dosiert wurde.
                            Momentane Steuerung sieht so aus.

                            <xml xmlns="http://www.w3.org/1999/xhtml">
                              <variables>
                                <variable type="" id="snfLpaddd`4/)Uy^kLsW">clock</variable>
                                <variable type="" id=")bAD/?%{s?q44~ZGe7{B">Dauer</variable>
                                <variable type="" id="iQ`n%m6-[L_B242P|7rW">Uhrzeit</variable>
                                <variable type="undefined" id="schedule">schedule</variable>
                                <variable type="undefined" id="Intervall">Intervall</variable>
                              </variables>
                              <block type="procedures_callnoreturn" id="3a)9A+{U=BTerQFdk^7e" x="-3287" y="-1587">
                                <mutation name="setUhr">
                                  <arg name="clock"></arg>
                                </mutation>
                                <value name="ARG0">
                                  <block type="get_value" id="Rmv(=Tg+:6/}8B(?~nI#">
                                    <field name="ATTR">val</field>
                                    <field name="OID">Aqua_Control.0.Triton.Lösung_1.Uhrzeiten.Lösung_1_Uhrzeit_1</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="on_ext" id="X}o|@dWx#6!BiHho8e)o">
                                    <mutation items="1"></mutation>
                                    <field name="CONDITION">ne</field>
                                    <field name="ACK_CONDITION"></field>
                                    <value name="OID0">
                                      <shadow type="field_oid" id="dXPC7;GFYg(#~T78}@mB">
                                        <field name="oid">Aqua_Control.0.Triton.Lösung_1.Uhrzeiten.Lösung_1_Uhrzeit_1</field>
                                      </shadow>
                                    </value>
                                    <statement name="STATEMENT">
                                      <block type="schedule_clear" id="nt-N]NBg?,fY%.)hYJ4D">
                                        <field name="NAME">schedule</field>
                                        <next>
                                          <block type="procedures_callnoreturn" id="yvhs4uL6uUxnW!c$UF/{">
                                            <mutation name="setUhr">
                                              <arg name="clock"></arg>
                                            </mutation>
                                            <value name="ARG0">
                                              <block type="on_source" id="SfI,}teG@`dg#_g%Zp#:">
                                                <field name="ATTR">state.val</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                              <block type="procedures_defnoreturn" id="jE$gVVpa7!Xtx{X@H^Fd" x="-3287" y="-1312">
                                <field name="NAME">Lösung_1</field>
                                <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                <statement name="STACK">
                                  <block type="variables_set" id="9kptcK|P^2:}bKZXyZ8f">
                                    <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B" variabletype="">Dauer</field>
                                    <value name="VALUE">
                                      <block type="convert_tonumber" id="Tj/%:}sl8v})GfkG,zO:">
                                        <value name="VALUE">
                                          <block type="get_value" id=".,XzJi)h(f$9$~(`H$I!">
                                            <field name="ATTR">val</field>
                                            <field name="OID">Aqua_Control.0.Triton.Lösung_1.Faktoren.Lösung_1_Faktor_2</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="%}iPzHc5tUi.(P1_MvRo">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">sonoff.0.Aqua_Dosierer.POWER1</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="SM.e~4#O=p?c/SXA|JX%">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="comment" id="KV;?nPX*TAluqR-qF9f+">
                                            <field name="COMMENT">Intervalldauer = Faktor</field>
                                            <next>
                                              <block type="timeouts_setinterval" id="1+dIQ5^rJM?nkaI[6WN}">
                                                <field name="NAME">Intervall</field>
                                                <field name="INTERVAL">806</field>
                                                <field name="UNIT">ms</field>
                                                <statement name="STATEMENT">
                                                  <block type="math_change" id="!*zN$DgW0K=76_[.1*]X">
                                                    <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B" variabletype="">Dauer</field>
                                                    <value name="DELTA">
                                                      <shadow type="math_number" id="e_D7=bSd65:`]Q{qWSZD">
                                                        <field name="NUM">-1</field>
                                                      </shadow>
                                                    </value>
                                                    <next>
                                                      <block type="controls_if" id="=/[;A-M~WF?KXEx~W0z?">
                                                        <value name="IF0">
                                                          <block type="logic_compare" id=";qY,PC)CB~{1#4iVHaj,">
                                                            <field name="OP">LTE</field>
                                                            <value name="A">
                                                              <block type="variables_get" id="2k;4KgTu$A3wF)@V`ulP">
                                                                <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B" variabletype="">Dauer</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id="?bnhw6qVm`$}~NCKlw2P">
                                                                <field name="NUM">0</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="timeouts_clearinterval" id=";dz/hf`o4]4(2pDSH)I3">
                                                            <field name="NAME">Intervall</field>
                                                            <next>
                                                              <block type="control" id="SeaFI}%xNdyzRbLV,6HN">
                                                                <mutation delay_input="false"></mutation>
                                                                <field name="OID">sonoff.0.Aqua_Dosierer.POWER1</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="1_[)-;0}n;LMH}tCmhi:">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="telegram" id="N)tO@5NbhTtUeW(4MtBo">
                                                                    <field name="INSTANCE">.0</field>
                                                                    <field name="LOG"></field>
                                                                    <field name="SILENT">FALSE</field>
                                                                    <field name="PARSEMODE">default</field>
                                                                    <value name="MESSAGE">
                                                                      <shadow type="text" id="R8/w|SSi{cj7,4lDKwe[">
                                                                        <field name="TEXT">text</field>
                                                                      </shadow>
                                                                      <block type="text_join" id="Jm8OpAELrwceT@g35lf{">
                                                                        <mutation items="4"></mutation>
                                                                        <value name="ADD0">
                                                                          <block type="text" id="CM1{{J8!7VItB4D8j3B8">
                                                                            <field name="TEXT">Triton Lösung 1 </field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD1">
                                                                          <block type="text_newline" id="o]Q2(%iBw$/9I:?8IyZw">
                                                                            <field name="Type">\n</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD2">
                                                                          <block type="get_value" id="f]$r3U;[8ohFZ.8I[asH">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">Aqua_Control.0.Triton.Lösung_1.Faktoren.Lösung_1_Faktor_2</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD3">
                                                                          <block type="text" id="Jxd~DTQ,y3LUt8En2!}Y">
                                                                            <field name="TEXT"> ml dosiert</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                              <block type="procedures_defnoreturn" id="fK5kmsd)LwZ7|P2xa^9U" x="-3287" y="-762">
                                <mutation>
                                  <arg name="clock" varid="snfLpaddd`4/)Uy^kLsW"></arg>
                                </mutation>
                                <field name="NAME">setUhr</field>
                                <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                <statement name="STACK">
                                  <block type="variables_set" id="aOx5`vU/=f;#)rmrW[|7">
                                    <field name="VAR" id="iQ`n%m6-[L_B242P|7rW" variabletype="">Uhrzeit</field>
                                    <value name="VALUE">
                                      <block type="lists_split" id="XnqDHu5JM{#WIs8~S,M-">
                                        <mutation mode="SPLIT"></mutation>
                                        <field name="MODE">SPLIT</field>
                                        <value name="INPUT">
                                          <block type="variables_get" id="4`T;i0Hg@f?=Gq^,J6.~">
                                            <field name="VAR" id="snfLpaddd`4/)Uy^kLsW" variabletype="">clock</field>
                                          </block>
                                        </value>
                                        <value name="DELIM">
                                          <shadow type="text" id="]v!xP8l3r?{D;(m_QyNL">
                                            <field name="TEXT">:</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="schedule_create" id="6x%+6G+PaD[w*{FuFm=K">
                                        <field name="NAME">schedule</field>
                                        <value name="SCHEDULE">
                                          <shadow type="field_cron" id="m4F75|F$}NA}2;e/avWa">
                                            <field name="CRON">* * * * *</field>
                                          </shadow>
                                          <block type="cron_builder" id="q6(U2T{7uu}mYF)9QMKr">
                                            <mutation seconds="false" as_line="false"></mutation>
                                            <field name="LINE">FALSE</field>
                                            <field name="WITH_SECONDS">FALSE</field>
                                            <value name="DOW">
                                              <shadow type="text" id=")8oVcqHY5re?jv#0QsO8">
                                                <field name="TEXT">*</field>
                                              </shadow>
                                            </value>
                                            <value name="MONTHS">
                                              <shadow type="text" id="GfQ!DoE|TZTliq*)8,@j">
                                                <field name="TEXT">*</field>
                                              </shadow>
                                            </value>
                                            <value name="DAYS">
                                              <shadow type="text" id="S6hVuxIjcYJMlS^~:zE5">
                                                <field name="TEXT">*</field>
                                              </shadow>
                                            </value>
                                            <value name="HOURS">
                                              <shadow type="text" id="NP{*G*@dWEP9M9mNlZFF">
                                                <field name="TEXT">*</field>
                                              </shadow>
                                              <block type="lists_getIndex" id="-0gZ}|H=8/}~St}d%rl;">
                                                <mutation statement="false" at="true"></mutation>
                                                <field name="MODE">GET</field>
                                                <field name="WHERE">FROM_START</field>
                                                <value name="VALUE">
                                                  <block type="variables_get" id="8U#M]$`MHq(~A]~(v{2R">
                                                    <field name="VAR" id="iQ`n%m6-[L_B242P|7rW" variabletype="">Uhrzeit</field>
                                                  </block>
                                                </value>
                                                <value name="AT">
                                                  <block type="math_number" id=")zFTxG~Gpp`eZw8r2,8w">
                                                    <field name="NUM">1</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="MINUTES">
                                              <shadow type="text" id="I(LCmtz/NJ%:Tvp,*;JL">
                                                <field name="TEXT">*</field>
                                              </shadow>
                                              <block type="lists_getIndex" id="0([.HRKLsVPA.X:jwVI@">
                                                <mutation statement="false" at="true"></mutation>
                                                <field name="MODE">GET</field>
                                                <field name="WHERE">FROM_START</field>
                                                <value name="VALUE">
                                                  <block type="variables_get" id="8#E0pY-UET(BcZH]~qB:">
                                                    <field name="VAR" id="iQ`n%m6-[L_B242P|7rW" variabletype="">Uhrzeit</field>
                                                  </block>
                                                </value>
                                                <value name="AT">
                                                  <block type="math_number" id=";UF-jK:^cV#hui?GDL/V">
                                                    <field name="NUM">2</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="STATEMENT">
                                          <block type="procedures_callnoreturn" id="/6qq{?/)+*vm:UnA$x,0">
                                            <mutation name="Lösung_1"></mutation>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </xml>
                            

                            Bildschirmfoto 2019-10-12 um 13.51.45.png
                            Vielleicht das die verbindung dem Gerät sagt so lange false bis dann der Uhrzeit trigger eine Pumpe auslöst.

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

                            @Aphofis sagte:

                            Momentane Steuerung sieht so aus.

                            Es sieht alles gut aus.

                            @Aphofis sagte in [gelöst] Hilfe bei zeitsteuerung:

                            Da ja anscheinend ein kommunikations Fehler bestand.

                            Ich weiß nicht, wie man den Kommunikationsfehler abfangen kann.

                            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

                            AphofisA 1 Antwort Letzte Antwort
                            0
                            • paul53P paul53

                              @Aphofis sagte:

                              Momentane Steuerung sieht so aus.

                              Es sieht alles gut aus.

                              @Aphofis sagte in [gelöst] Hilfe bei zeitsteuerung:

                              Da ja anscheinend ein kommunikations Fehler bestand.

                              Ich weiß nicht, wie man den Kommunikationsfehler abfangen kann.

                              AphofisA Offline
                              AphofisA Offline
                              Aphofis
                              schrieb am zuletzt editiert von Aphofis
                              #58

                              @paul53

                              Ich bauche mal deine Hilfe! meine Steuerungen funktionieren nicht mehr.
                              was ist das für eine Fehlermeldung !? bzw wo liegt das Problem!?
                              Der Fehler ist sehr dringend, da in meinem Meerwasser Aquarium lebensnotwendige Bestandteile nicht dosiert werden.

                              javascript.0	2021-04-02 22:03:32.904	error	(22006) at Script.runInContext (vm.js:130:18)
                              javascript.0	2021-04-02 22:03:32.904	error	(22006) at script.js.Dosierpumpen.Lösung_3b.Lösung_3b_Dosierung_1:42:3
                              javascript.0	2021-04-02 22:03:32.903	error	(22006) at script.js.Dosierpumpen.Lösung_3b.Lösung_3b_Dosierung_1:33:1
                              javascript.0	2021-04-02 22:03:32.903	error	(22006) at setUhr (script.js.Dosierpumpen.Lösung_3b.Lösung_3b_Dosierung_1:8:14)
                              javascript.0	2021-04-02 22:03:32.902	error	(22006) script.js.Dosierpumpen.Lösung_3b.Lösung_3b_Dosierung_1: TypeError: schedule is not a function
                              

                              Die Steuerung ist diese hier:

                              <xml xmlns="https://developers.google.com/blockly/xml">
                                <variables>
                                  <variable id="snfLpaddd`4/)Uy^kLsW">clock</variable>
                                  <variable id="iQ`n%m6-[L_B242P|7rW">Uhrzeit</variable>
                                  <variable id=")bAD/?%{s?q44~ZGe7{B">Dauer</variable>
                                  <variable type="cron" id="schedule1">schedule1</variable>
                                  <variable type="interval" id="Intervall">Intervall</variable>
                                </variables>
                                <block type="procedures_callnoreturn" id="3a)9A+{U=BTerQFdk^7e" x="-3287" y="-1637">
                                  <mutation name="setUhr">
                                    <arg name="clock"></arg>
                                  </mutation>
                                  <value name="ARG0">
                                    <block type="get_value" id="Rmv(=Tg+:6/}8B(?~nI#">
                                      <field name="ATTR">val</field>
                                      <field name="OID">Aqua_Control.0.Triton.Lösung_3b.Uhrzeiten.Lösung_3b_Uhrzeit_1</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="on_ext" id="X}o|@dWx#6!BiHho8e)o">
                                      <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="dXPC7;GFYg(#~T78}@mB">
                                          <field name="oid">Aqua_Control.0.Triton.Lösung_3b.Uhrzeiten.Lösung_3b_Uhrzeit_1</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="schedule_clear" id="nt-N]NBg?,fY%.)hYJ4D">
                                          <field name="NAME">clock</field>
                                          <next>
                                            <block type="procedures_callnoreturn" id="yvhs4uL6uUxnW!c$UF/{">
                                              <mutation name="setUhr">
                                                <arg name="clock"></arg>
                                              </mutation>
                                              <value name="ARG0">
                                                <block type="on_source" id="SfI,}teG@`dg#_g%Zp#:">
                                                  <field name="ATTR">state.val</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                                <block type="procedures_defnoreturn" id="fK5kmsd)LwZ7|P2xa^9U" x="-2587" y="-1487">
                                  <mutation>
                                    <arg name="clock" varid="snfLpaddd`4/)Uy^kLsW"></arg>
                                  </mutation>
                                  <field name="NAME">setUhr</field>
                                  <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                  <statement name="STACK">
                                    <block type="variables_set" id="aOx5`vU/=f;#)rmrW[|7">
                                      <field name="VAR" id="iQ`n%m6-[L_B242P|7rW">Uhrzeit</field>
                                      <value name="VALUE">
                                        <block type="lists_split" id="XnqDHu5JM{#WIs8~S,M-">
                                          <mutation mode="SPLIT"></mutation>
                                          <field name="MODE">SPLIT</field>
                                          <value name="INPUT">
                                            <block type="variables_get" id="4`T;i0Hg@f?=Gq^,J6.~">
                                              <field name="VAR" id="snfLpaddd`4/)Uy^kLsW">clock</field>
                                            </block>
                                          </value>
                                          <value name="DELIM">
                                            <shadow type="text" id="]v!xP8l3r?{D;(m_QyNL">
                                              <field name="TEXT">:</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="schedule_create" id="6x%+6G+PaD[w*{FuFm=K">
                                          <field name="NAME">schedule1</field>
                                          <value name="SCHEDULE">
                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_cron" id="m4F75|F$}NA}2;e/avWa">
                                              <field name="CRON">* * * * *</field>
                                            </shadow>
                                            <block type="cron_builder" id="q6(U2T{7uu}mYF)9QMKr">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
                                              <field name="LINE">FALSE</field>
                                              <field name="WITH_SECONDS">FALSE</field>
                                              <value name="DOW">
                                                <shadow type="text" id=")8oVcqHY5re?jv#0QsO8">
                                                  <field name="TEXT">*</field>
                                                </shadow>
                                              </value>
                                              <value name="MONTHS">
                                                <shadow type="text" id="GfQ!DoE|TZTliq*)8,@j">
                                                  <field name="TEXT">*</field>
                                                </shadow>
                                              </value>
                                              <value name="DAYS">
                                                <shadow type="text" id="S6hVuxIjcYJMlS^~:zE5">
                                                  <field name="TEXT">*</field>
                                                </shadow>
                                              </value>
                                              <value name="HOURS">
                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="NP{*G*@dWEP9M9mNlZFF">
                                                  <field name="TEXT">*</field>
                                                </shadow>
                                                <block type="lists_getIndex" id="-0gZ}|H=8/}~St}d%rl;">
                                                  <mutation statement="false" at="true"></mutation>
                                                  <field name="MODE">GET</field>
                                                  <field name="WHERE">FROM_START</field>
                                                  <value name="VALUE">
                                                    <block type="variables_get" id="8U#M]$`MHq(~A]~(v{2R">
                                                      <field name="VAR" id="iQ`n%m6-[L_B242P|7rW">Uhrzeit</field>
                                                    </block>
                                                  </value>
                                                  <value name="AT">
                                                    <block type="math_number" id=")zFTxG~Gpp`eZw8r2,8w">
                                                      <field name="NUM">1</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="MINUTES">
                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="I(LCmtz/NJ%:Tvp,*;JL">
                                                  <field name="TEXT">*</field>
                                                </shadow>
                                                <block type="lists_getIndex" id="0([.HRKLsVPA.X:jwVI@">
                                                  <mutation statement="false" at="true"></mutation>
                                                  <field name="MODE">GET</field>
                                                  <field name="WHERE">FROM_START</field>
                                                  <value name="VALUE">
                                                    <block type="variables_get" id="8#E0pY-UET(BcZH]~qB:">
                                                      <field name="VAR" id="iQ`n%m6-[L_B242P|7rW">Uhrzeit</field>
                                                    </block>
                                                  </value>
                                                  <value name="AT">
                                                    <block type="math_number" id=";UF-jK:^cV#hui?GDL/V">
                                                      <field name="NUM">2</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="STATEMENT">
                                            <block type="procedures_callnoreturn" id="/6qq{?/)+*vm:UnA$x,0">
                                              <mutation name="Lösung_3b"></mutation>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                                <block type="procedures_defnoreturn" id="jE$gVVpa7!Xtx{X@H^Fd" x="-3287" y="-1412">
                                  <field name="NAME">Lösung_3b</field>
                                  <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                  <statement name="STACK">
                                    <block type="variables_set" id="9kptcK|P^2:}bKZXyZ8f">
                                      <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B">Dauer</field>
                                      <value name="VALUE">
                                        <block type="convert_tonumber" id="Tj/%:}sl8v})GfkG,zO:">
                                          <value name="VALUE">
                                            <block type="get_value" id=".,XzJi)h(f$9$~(`H$I!">
                                              <field name="ATTR">val</field>
                                              <field name="OID">Aqua_Control.0.Triton.Lösung_3b.Faktoren.Lösung_3b_Faktor_1</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="%}iPzHc5tUi.(P1_MvRo">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">sonoff.0.Aqua_Dosierer.POWER4</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="SM.e~4#O=p?c/SXA|JX%">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="comment" id="KV;?nPX*TAluqR-qF9f+">
                                              <field name="COMMENT">Intervalldauer = Faktor</field>
                                              <next>
                                                <block type="timeouts_setinterval" id="1+dIQ5^rJM?nkaI[6WN}">
                                                  <field name="NAME">Intervall</field>
                                                  <field name="INTERVAL">932</field>
                                                  <field name="UNIT">ms</field>
                                                  <statement name="STATEMENT">
                                                    <block type="math_change" id="!*zN$DgW0K=76_[.1*]X">
                                                      <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B">Dauer</field>
                                                      <value name="DELTA">
                                                        <shadow type="math_number" id="e_D7=bSd65:`]Q{qWSZD">
                                                          <field name="NUM">-1</field>
                                                        </shadow>
                                                      </value>
                                                      <next>
                                                        <block type="controls_if" id="=/[;A-M~WF?KXEx~W0z?">
                                                          <value name="IF0">
                                                            <block type="logic_compare" id=";qY,PC)CB~{1#4iVHaj,">
                                                              <field name="OP">LTE</field>
                                                              <value name="A">
                                                                <block type="variables_get" id="2k;4KgTu$A3wF)@V`ulP">
                                                                  <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B">Dauer</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="math_number" id="?bnhw6qVm`$}~NCKlw2P">
                                                                  <field name="NUM">0</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO0">
                                                            <block type="timeouts_clearinterval" id=";dz/hf`o4]4(2pDSH)I3">
                                                              <field name="NAME">Intervall</field>
                                                              <next>
                                                                <block type="control" id="SeaFI}%xNdyzRbLV,6HN">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">sonoff.0.Aqua_Dosierer.POWER4</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="1_[)-;0}n;LMH}tCmhi:">
                                                                      <field name="BOOL">FALSE</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="telegram" id="N)tO@5NbhTtUeW(4MtBo">
                                                                      <field name="INSTANCE">.0</field>
                                                                      <field name="LOG"></field>
                                                                      <field name="SILENT">FALSE</field>
                                                                      <field name="PARSEMODE">default</field>
                                                                      <value name="MESSAGE">
                                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="R8/w|SSi{cj7,4lDKwe[">
                                                                          <field name="TEXT">text</field>
                                                                        </shadow>
                                                                        <block type="text_join" id="Jm8OpAELrwceT@g35lf{">
                                                                          <mutation items="4"></mutation>
                                                                          <value name="ADD0">
                                                                            <block type="text" id="CM1{{J8!7VItB4D8j3B8">
                                                                              <field name="TEXT">*** Triton Lösung 3b </field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD1">
                                                                            <block type="text_newline" id="o]Q2(%iBw$/9I:?8IyZw">
                                                                              <field name="Type">\n</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD2">
                                                                            <block type="get_value" id="f]$r3U;[8ohFZ.8I[asH">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">Aqua_Control.0.Triton.Lösung_3b.Faktoren.Lösung_3b_Faktor_1</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD3">
                                                                            <block type="text" id="Jxd~DTQ,y3LUt8En2!}Y">
                                                                              <field name="TEXT"> ml dosiert</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </xml>
                              

                              Unbenannt.png

                              paul53P 1 Antwort Letzte Antwort
                              0
                              • AphofisA Aphofis

                                @paul53

                                Ich bauche mal deine Hilfe! meine Steuerungen funktionieren nicht mehr.
                                was ist das für eine Fehlermeldung !? bzw wo liegt das Problem!?
                                Der Fehler ist sehr dringend, da in meinem Meerwasser Aquarium lebensnotwendige Bestandteile nicht dosiert werden.

                                javascript.0	2021-04-02 22:03:32.904	error	(22006) at Script.runInContext (vm.js:130:18)
                                javascript.0	2021-04-02 22:03:32.904	error	(22006) at script.js.Dosierpumpen.Lösung_3b.Lösung_3b_Dosierung_1:42:3
                                javascript.0	2021-04-02 22:03:32.903	error	(22006) at script.js.Dosierpumpen.Lösung_3b.Lösung_3b_Dosierung_1:33:1
                                javascript.0	2021-04-02 22:03:32.903	error	(22006) at setUhr (script.js.Dosierpumpen.Lösung_3b.Lösung_3b_Dosierung_1:8:14)
                                javascript.0	2021-04-02 22:03:32.902	error	(22006) script.js.Dosierpumpen.Lösung_3b.Lösung_3b_Dosierung_1: TypeError: schedule is not a function
                                

                                Die Steuerung ist diese hier:

                                <xml xmlns="https://developers.google.com/blockly/xml">
                                  <variables>
                                    <variable id="snfLpaddd`4/)Uy^kLsW">clock</variable>
                                    <variable id="iQ`n%m6-[L_B242P|7rW">Uhrzeit</variable>
                                    <variable id=")bAD/?%{s?q44~ZGe7{B">Dauer</variable>
                                    <variable type="cron" id="schedule1">schedule1</variable>
                                    <variable type="interval" id="Intervall">Intervall</variable>
                                  </variables>
                                  <block type="procedures_callnoreturn" id="3a)9A+{U=BTerQFdk^7e" x="-3287" y="-1637">
                                    <mutation name="setUhr">
                                      <arg name="clock"></arg>
                                    </mutation>
                                    <value name="ARG0">
                                      <block type="get_value" id="Rmv(=Tg+:6/}8B(?~nI#">
                                        <field name="ATTR">val</field>
                                        <field name="OID">Aqua_Control.0.Triton.Lösung_3b.Uhrzeiten.Lösung_3b_Uhrzeit_1</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="on_ext" id="X}o|@dWx#6!BiHho8e)o">
                                        <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="dXPC7;GFYg(#~T78}@mB">
                                            <field name="oid">Aqua_Control.0.Triton.Lösung_3b.Uhrzeiten.Lösung_3b_Uhrzeit_1</field>
                                          </shadow>
                                        </value>
                                        <statement name="STATEMENT">
                                          <block type="schedule_clear" id="nt-N]NBg?,fY%.)hYJ4D">
                                            <field name="NAME">clock</field>
                                            <next>
                                              <block type="procedures_callnoreturn" id="yvhs4uL6uUxnW!c$UF/{">
                                                <mutation name="setUhr">
                                                  <arg name="clock"></arg>
                                                </mutation>
                                                <value name="ARG0">
                                                  <block type="on_source" id="SfI,}teG@`dg#_g%Zp#:">
                                                    <field name="ATTR">state.val</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                  <block type="procedures_defnoreturn" id="fK5kmsd)LwZ7|P2xa^9U" x="-2587" y="-1487">
                                    <mutation>
                                      <arg name="clock" varid="snfLpaddd`4/)Uy^kLsW"></arg>
                                    </mutation>
                                    <field name="NAME">setUhr</field>
                                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                    <statement name="STACK">
                                      <block type="variables_set" id="aOx5`vU/=f;#)rmrW[|7">
                                        <field name="VAR" id="iQ`n%m6-[L_B242P|7rW">Uhrzeit</field>
                                        <value name="VALUE">
                                          <block type="lists_split" id="XnqDHu5JM{#WIs8~S,M-">
                                            <mutation mode="SPLIT"></mutation>
                                            <field name="MODE">SPLIT</field>
                                            <value name="INPUT">
                                              <block type="variables_get" id="4`T;i0Hg@f?=Gq^,J6.~">
                                                <field name="VAR" id="snfLpaddd`4/)Uy^kLsW">clock</field>
                                              </block>
                                            </value>
                                            <value name="DELIM">
                                              <shadow type="text" id="]v!xP8l3r?{D;(m_QyNL">
                                                <field name="TEXT">:</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="schedule_create" id="6x%+6G+PaD[w*{FuFm=K">
                                            <field name="NAME">schedule1</field>
                                            <value name="SCHEDULE">
                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_cron" id="m4F75|F$}NA}2;e/avWa">
                                                <field name="CRON">* * * * *</field>
                                              </shadow>
                                              <block type="cron_builder" id="q6(U2T{7uu}mYF)9QMKr">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
                                                <field name="LINE">FALSE</field>
                                                <field name="WITH_SECONDS">FALSE</field>
                                                <value name="DOW">
                                                  <shadow type="text" id=")8oVcqHY5re?jv#0QsO8">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                </value>
                                                <value name="MONTHS">
                                                  <shadow type="text" id="GfQ!DoE|TZTliq*)8,@j">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                </value>
                                                <value name="DAYS">
                                                  <shadow type="text" id="S6hVuxIjcYJMlS^~:zE5">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                </value>
                                                <value name="HOURS">
                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="NP{*G*@dWEP9M9mNlZFF">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                  <block type="lists_getIndex" id="-0gZ}|H=8/}~St}d%rl;">
                                                    <mutation statement="false" at="true"></mutation>
                                                    <field name="MODE">GET</field>
                                                    <field name="WHERE">FROM_START</field>
                                                    <value name="VALUE">
                                                      <block type="variables_get" id="8U#M]$`MHq(~A]~(v{2R">
                                                        <field name="VAR" id="iQ`n%m6-[L_B242P|7rW">Uhrzeit</field>
                                                      </block>
                                                    </value>
                                                    <value name="AT">
                                                      <block type="math_number" id=")zFTxG~Gpp`eZw8r2,8w">
                                                        <field name="NUM">1</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="MINUTES">
                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="I(LCmtz/NJ%:Tvp,*;JL">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                  <block type="lists_getIndex" id="0([.HRKLsVPA.X:jwVI@">
                                                    <mutation statement="false" at="true"></mutation>
                                                    <field name="MODE">GET</field>
                                                    <field name="WHERE">FROM_START</field>
                                                    <value name="VALUE">
                                                      <block type="variables_get" id="8#E0pY-UET(BcZH]~qB:">
                                                        <field name="VAR" id="iQ`n%m6-[L_B242P|7rW">Uhrzeit</field>
                                                      </block>
                                                    </value>
                                                    <value name="AT">
                                                      <block type="math_number" id=";UF-jK:^cV#hui?GDL/V">
                                                        <field name="NUM">2</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="procedures_callnoreturn" id="/6qq{?/)+*vm:UnA$x,0">
                                                <mutation name="Lösung_3b"></mutation>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                  <block type="procedures_defnoreturn" id="jE$gVVpa7!Xtx{X@H^Fd" x="-3287" y="-1412">
                                    <field name="NAME">Lösung_3b</field>
                                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                    <statement name="STACK">
                                      <block type="variables_set" id="9kptcK|P^2:}bKZXyZ8f">
                                        <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B">Dauer</field>
                                        <value name="VALUE">
                                          <block type="convert_tonumber" id="Tj/%:}sl8v})GfkG,zO:">
                                            <value name="VALUE">
                                              <block type="get_value" id=".,XzJi)h(f$9$~(`H$I!">
                                                <field name="ATTR">val</field>
                                                <field name="OID">Aqua_Control.0.Triton.Lösung_3b.Faktoren.Lösung_3b_Faktor_1</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="%}iPzHc5tUi.(P1_MvRo">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">sonoff.0.Aqua_Dosierer.POWER4</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="SM.e~4#O=p?c/SXA|JX%">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="comment" id="KV;?nPX*TAluqR-qF9f+">
                                                <field name="COMMENT">Intervalldauer = Faktor</field>
                                                <next>
                                                  <block type="timeouts_setinterval" id="1+dIQ5^rJM?nkaI[6WN}">
                                                    <field name="NAME">Intervall</field>
                                                    <field name="INTERVAL">932</field>
                                                    <field name="UNIT">ms</field>
                                                    <statement name="STATEMENT">
                                                      <block type="math_change" id="!*zN$DgW0K=76_[.1*]X">
                                                        <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B">Dauer</field>
                                                        <value name="DELTA">
                                                          <shadow type="math_number" id="e_D7=bSd65:`]Q{qWSZD">
                                                            <field name="NUM">-1</field>
                                                          </shadow>
                                                        </value>
                                                        <next>
                                                          <block type="controls_if" id="=/[;A-M~WF?KXEx~W0z?">
                                                            <value name="IF0">
                                                              <block type="logic_compare" id=";qY,PC)CB~{1#4iVHaj,">
                                                                <field name="OP">LTE</field>
                                                                <value name="A">
                                                                  <block type="variables_get" id="2k;4KgTu$A3wF)@V`ulP">
                                                                    <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B">Dauer</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="math_number" id="?bnhw6qVm`$}~NCKlw2P">
                                                                    <field name="NUM">0</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="timeouts_clearinterval" id=";dz/hf`o4]4(2pDSH)I3">
                                                                <field name="NAME">Intervall</field>
                                                                <next>
                                                                  <block type="control" id="SeaFI}%xNdyzRbLV,6HN">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">sonoff.0.Aqua_Dosierer.POWER4</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="1_[)-;0}n;LMH}tCmhi:">
                                                                        <field name="BOOL">FALSE</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="telegram" id="N)tO@5NbhTtUeW(4MtBo">
                                                                        <field name="INSTANCE">.0</field>
                                                                        <field name="LOG"></field>
                                                                        <field name="SILENT">FALSE</field>
                                                                        <field name="PARSEMODE">default</field>
                                                                        <value name="MESSAGE">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="R8/w|SSi{cj7,4lDKwe[">
                                                                            <field name="TEXT">text</field>
                                                                          </shadow>
                                                                          <block type="text_join" id="Jm8OpAELrwceT@g35lf{">
                                                                            <mutation items="4"></mutation>
                                                                            <value name="ADD0">
                                                                              <block type="text" id="CM1{{J8!7VItB4D8j3B8">
                                                                                <field name="TEXT">*** Triton Lösung 3b </field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD1">
                                                                              <block type="text_newline" id="o]Q2(%iBw$/9I:?8IyZw">
                                                                                <field name="Type">\n</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD2">
                                                                              <block type="get_value" id="f]$r3U;[8ohFZ.8I[asH">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">Aqua_Control.0.Triton.Lösung_3b.Faktoren.Lösung_3b_Faktor_1</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD3">
                                                                              <block type="text" id="Jxd~DTQ,y3LUt8En2!}Y">
                                                                                <field name="TEXT"> ml dosiert</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </xml>
                                

                                Unbenannt.png

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

                                @aphofis
                                Im Skript ist kein Fehler zu erkennen.
                                Die Zeilennummern in den Fehlermeldungen passen nicht. Ist ein Skript unter der Gruppe "global" aktiv?

                                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

                                AphofisA 1 Antwort Letzte Antwort
                                0
                                • paul53P paul53

                                  @aphofis
                                  Im Skript ist kein Fehler zu erkennen.
                                  Die Zeilennummern in den Fehlermeldungen passen nicht. Ist ein Skript unter der Gruppe "global" aktiv?

                                  AphofisA Offline
                                  AphofisA Offline
                                  Aphofis
                                  schrieb am zuletzt editiert von
                                  #60

                                  @paul53
                                  Wo soll Global sein !?
                                  Im Javascript Adapter habe ich nur common und meine estellten Ordner. common ist leer.

                                  paul53P 1 Antwort Letzte Antwort
                                  0
                                  • AphofisA Aphofis

                                    @paul53
                                    Wo soll Global sein !?
                                    Im Javascript Adapter habe ich nur common und meine estellten Ordner. common ist leer.

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

                                    @aphofis sagte: nur common und meine estellten Ordner. common ist leer.

                                    "global" sieht man nur im Experten-Modus.

                                    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

                                    AphofisA 1 Antwort Letzte Antwort
                                    0
                                    • paul53P paul53

                                      @aphofis sagte: nur common und meine estellten Ordner. common ist leer.

                                      "global" sieht man nur im Experten-Modus.

                                      AphofisA Offline
                                      AphofisA Offline
                                      Aphofis
                                      schrieb am zuletzt editiert von
                                      #62

                                      @paul53
                                      Unbenannt2.png

                                      paul53P 1 Antwort Letzte Antwort
                                      0
                                      • AphofisA Aphofis

                                        @paul53
                                        Unbenannt2.png

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

                                        @aphofis
                                        Experten-Modus aktiviert? Drei Punkte links oben.

                                        Bild_2021-04-02_234411.png JS_Expert.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

                                        AphofisA 1 Antwort Letzte Antwort
                                        0
                                        • paul53P paul53

                                          @aphofis
                                          Experten-Modus aktiviert? Drei Punkte links oben.

                                          Bild_2021-04-02_234411.png JS_Expert.JPG

                                          AphofisA Offline
                                          AphofisA Offline
                                          Aphofis
                                          schrieb am zuletzt editiert von
                                          #64

                                          @paul53
                                          global ist auch leer!
                                          Unbenannt3.png

                                          AphofisA 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

                                          591

                                          Online

                                          32.6k

                                          Benutzer

                                          82.3k

                                          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