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. Schwimmer träge machen???

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.0k

Schwimmer träge machen???

Geplant Angeheftet Gesperrt Verschoben Blockly
60 Beiträge 3 Kommentatoren 3.8k Aufrufe 3 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 Aphofis
    #30

    falsche Abteilung

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

      @paul53
      ist es möglich den Vliesmotor 1-2 sek später zu schalten !? da das Vlies noch zu sauber ist.?

      var schwimmer, restzeit, timeout, Intervall, Intervall;
      
      /**
       * Beschreibe diese Funktion …
       */
      function Vliesmotor() {
        if (schwimmer) {
          if (!Intervall && restzeit > 0) {
            setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true);
            Intervall = setInterval(function () {
              if (restzeit > 0 && schwimmer) {
                restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1;
              } else {
                setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
              }
            }, 2000);
          }
        } else if (getState("sonoff.0.Aqua_Control.POWER2").val) {
          setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
        }
      }
      
      
      schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val;
      restzeit = 25;
      on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) {
        var value = obj.state.val;
        var oldValue = obj.oldState.val;
        (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
        timeout = setTimeout(function () {
          schwimmer = (obj.state ? obj.state.val : "");
          Vliesmotor();
        }, 2000);
      });
      schedule("0 0 * * *", function () {
        restzeit = 25;
        Vliesmotor();
      });
      Vliesmotor();
      
      paul53P 1 Antwort Letzte Antwort
      0
      • AphofisA Aphofis

        @paul53
        ist es möglich den Vliesmotor 1-2 sek später zu schalten !? da das Vlies noch zu sauber ist.?

        var schwimmer, restzeit, timeout, Intervall, Intervall;
        
        /**
         * Beschreibe diese Funktion …
         */
        function Vliesmotor() {
          if (schwimmer) {
            if (!Intervall && restzeit > 0) {
              setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true);
              Intervall = setInterval(function () {
                if (restzeit > 0 && schwimmer) {
                  restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1;
                } else {
                  setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                  (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
                }
              }, 2000);
            }
          } else if (getState("sonoff.0.Aqua_Control.POWER2").val) {
            setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
          }
        }
        
        
        schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val;
        restzeit = 25;
        on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) {
          var value = obj.state.val;
          var oldValue = obj.oldState.val;
          (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
          timeout = setTimeout(function () {
            schwimmer = (obj.state ? obj.state.val : "");
            Vliesmotor();
          }, 2000);
        });
        schedule("0 0 * * *", function () {
          restzeit = 25;
          Vliesmotor();
        });
        Vliesmotor();
        
        paul53P Offline
        paul53P Offline
        paul53
        schrieb am zuletzt editiert von
        #32

        @Aphofis sagte:

        Vliesmotor 1-2 sek später zu schalten !? da das Vlies noch zu sauber ist.?

        ?? Es schaltet schon 2 s verzögert, oder meinst Du um Mitternacht ?

        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:

          Vliesmotor 1-2 sek später zu schalten !? da das Vlies noch zu sauber ist.?

          ?? Es schaltet schon 2 s verzögert, oder meinst Du um Mitternacht ?

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

          @paul53
          ja das weiß ich nur ist das vlies noch zu sauber also muss der motor noch später schalten oder früher abschalten.
          Den Bypass habe ich schon komplett offen da geht nichts mehr. ich kann höchstens den Überlauf weiter hoch setzten nur dann ist die Distanz zwischen dem normalen schwimmer und dem Vlies Schwimmer Max zu niedrig.
          Der Vlies Max Schwimmer ist leider auch noch nicht mit eingebunden.
          warum der Vliesverbrauch 180 cm am Tag zählt weiss ich auch nicht.
          normal braucht der Motor für 1 cm 990 ms und die Verbrauchssteuerung rechnet 1ms => 0,0010101 cm x gelaufene zeit in ms. und errechnet daraus den Tages und den Gesamtverbrauch.
          Doch sollte laut der Steuerung für den Motor nach 50 cm Schluß sein.

          paul53P 1 Antwort Letzte Antwort
          0
          • AphofisA Aphofis

            @paul53
            ja das weiß ich nur ist das vlies noch zu sauber also muss der motor noch später schalten oder früher abschalten.
            Den Bypass habe ich schon komplett offen da geht nichts mehr. ich kann höchstens den Überlauf weiter hoch setzten nur dann ist die Distanz zwischen dem normalen schwimmer und dem Vlies Schwimmer Max zu niedrig.
            Der Vlies Max Schwimmer ist leider auch noch nicht mit eingebunden.
            warum der Vliesverbrauch 180 cm am Tag zählt weiss ich auch nicht.
            normal braucht der Motor für 1 cm 990 ms und die Verbrauchssteuerung rechnet 1ms => 0,0010101 cm x gelaufene zeit in ms. und errechnet daraus den Tages und den Gesamtverbrauch.
            Doch sollte laut der Steuerung für den Motor nach 50 cm Schluß sein.

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

            @Aphofis sagte:

            Der Vlies Max Schwimmer ist leider auch noch nicht mit eingebunden.

            Was soll er bewirken (Aufgabenstellung) ?

            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:

              Der Vlies Max Schwimmer ist leider auch noch nicht mit eingebunden.

              Was soll er bewirken (Aufgabenstellung) ?

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

              @paul53
              Vlies Max soll einfach verhindern, das dass Vlies immer weiter dreht im falle das die normale Steuerung versagt oder der normal schwimmer in true verklemmt ist dann soll der vlies max schwimmer den motor so lange stoppen bis beide schwimmer false sind

              paul53P 1 Antwort Letzte Antwort
              0
              • AphofisA Aphofis

                @paul53
                Vlies Max soll einfach verhindern, das dass Vlies immer weiter dreht im falle das die normale Steuerung versagt oder der normal schwimmer in true verklemmt ist dann soll der vlies max schwimmer den motor so lange stoppen bis beide schwimmer false sind

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

                @Aphofis
                Dann setze einen weiteren Trigger und ergänze die Abfrage in der Funktion:

                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
                • paul53P paul53

                  @Aphofis
                  Dann setze einen weiteren Trigger und ergänze die Abfrage in der Funktion:

                  Blockly_temp.JPG

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

                  @paul53
                  ist es so korrekt?

                  var schwimmer, restzeit, Intervall, maxSchwimmer, timeout;
                  
                  /**
                   * Beschreibe diese Funktion …
                   */
                  function Vliesmotor() {
                    if (schwimmer && !maxSchwimmer) {
                      if (!Intervall && restzeit > 0) {
                        setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true);
                        Intervall = setInterval(function () {
                          if (restzeit > 0 && schwimmer) {
                            restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1;
                          } else {
                            setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                            (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
                          }
                        }, 2000);
                      }
                    } else if (getState("sonoff.0.Aqua_Control.POWER2").val) {
                      setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                    }
                  }
                  
                  
                  // Vlies Schwimmer normal
                  schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val;
                  restzeit = 25;
                  on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) {
                    var value = obj.state.val;
                    var oldValue = obj.oldState.val;
                    (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
                    timeout = setTimeout(function () {
                      schwimmer = (obj.state ? obj.state.val : "");
                      Vliesmotor();
                    }, 2000);
                  });
                  schedule("0 0 * * *", function () {
                    restzeit = 25;
                    Vliesmotor();
                  });
                  Vliesmotor();
                  // Vlies Schwimmer max
                  maxSchwimmer = getState("sonoff.0.Aqua_Float.POWER5").val;
                  on({id: 'sonoff.0.Aqua_Float.POWER5', change: "ne"}, function (obj) {
                    var value = obj.state.val;
                    var oldValue = obj.oldState.val;
                    maxSchwimmer = (obj.state ? obj.state.val : "");
                    if (maxSchwimmer) {
                      setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                    }
                  });
                  
                  paul53P 1 Antwort Letzte Antwort
                  0
                  • AphofisA Aphofis

                    @paul53
                    ist es so korrekt?

                    var schwimmer, restzeit, Intervall, maxSchwimmer, timeout;
                    
                    /**
                     * Beschreibe diese Funktion …
                     */
                    function Vliesmotor() {
                      if (schwimmer && !maxSchwimmer) {
                        if (!Intervall && restzeit > 0) {
                          setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true);
                          Intervall = setInterval(function () {
                            if (restzeit > 0 && schwimmer) {
                              restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1;
                            } else {
                              setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                              (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
                            }
                          }, 2000);
                        }
                      } else if (getState("sonoff.0.Aqua_Control.POWER2").val) {
                        setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                      }
                    }
                    
                    
                    // Vlies Schwimmer normal
                    schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val;
                    restzeit = 25;
                    on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) {
                      var value = obj.state.val;
                      var oldValue = obj.oldState.val;
                      (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
                      timeout = setTimeout(function () {
                        schwimmer = (obj.state ? obj.state.val : "");
                        Vliesmotor();
                      }, 2000);
                    });
                    schedule("0 0 * * *", function () {
                      restzeit = 25;
                      Vliesmotor();
                    });
                    Vliesmotor();
                    // Vlies Schwimmer max
                    maxSchwimmer = getState("sonoff.0.Aqua_Float.POWER5").val;
                    on({id: 'sonoff.0.Aqua_Float.POWER5', change: "ne"}, function (obj) {
                      var value = obj.state.val;
                      var oldValue = obj.oldState.val;
                      maxSchwimmer = (obj.state ? obj.state.val : "");
                      if (maxSchwimmer) {
                        setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                      }
                    });
                    
                    paul53P Offline
                    paul53P Offline
                    paul53
                    schrieb am zuletzt editiert von paul53
                    #38

                    @Aphofis sagte:

                    ist es so korrekt?

                    Nicht ganz: Zeilen 41 und 43 müssen getauscht werden, damit beim Skriptstart die Variable maxSchwimmer den korrekten Wert für die Auswertung in der Funktion Vliesmotor() hat.

                    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:

                      ist es so korrekt?

                      Nicht ganz: Zeilen 41 und 43 müssen getauscht werden, damit beim Skriptstart die Variable maxSchwimmer den korrekten Wert für die Auswertung in der Funktion Vliesmotor() hat.

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

                      @paul53
                      Verstehe ich nicht ganz wie meinst du mit tauschen !?

                      var schwimmer, maxSchwimmer, restzeit, Intervall, timeout;
                      
                      /**
                       * Beschreibe diese Funktion …
                       */
                      function Vliesmotor() {
                        if (schwimmer && !maxSchwimmer) {
                          if (!Intervall && restzeit > 0) {
                            setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true);
                            Intervall = setInterval(function () {
                              if (restzeit > 0 && schwimmer) {
                                restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1;
                              } else {
                                setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                                (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
                              }
                            }, 2000);
                          }
                        } else if (getState("sonoff.0.Aqua_Control.POWER2").val) {
                          setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                        }
                      }
                      
                      
                      // Vlies Schwimmer normal
                      schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val;
                      restzeit = 25;
                      on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) {
                        var value = obj.state.val;
                        var oldValue = obj.oldState.val;
                        (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
                        timeout = setTimeout(function () {
                          schwimmer = (obj.state ? obj.state.val : "");
                          Vliesmotor();
                        }, 2000);
                      });
                      schedule("0 0 * * *", function () {
                        restzeit = 25;
                        Vliesmotor();
                      });
                      Vliesmotor();
                      
                      // Vlies Schwimmer max
                      maxSchwimmer = getState("sonoff.0.Aqua_Float.POWER5").val;
                      on({id: 'sonoff.0.Aqua_Float.POWER5', change: "ne"}, function (obj) {
                        var value = obj.state.val;
                        var oldValue = obj.oldState.val;
                        maxSchwimmer = (obj.state ? obj.state.val : "");
                        if (maxSchwimmer) {
                          setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                        }
                      });
                      
                      AphofisA paul53P 2 Antworten Letzte Antwort
                      0
                      • AphofisA Aphofis

                        @paul53
                        Verstehe ich nicht ganz wie meinst du mit tauschen !?

                        var schwimmer, maxSchwimmer, restzeit, Intervall, timeout;
                        
                        /**
                         * Beschreibe diese Funktion …
                         */
                        function Vliesmotor() {
                          if (schwimmer && !maxSchwimmer) {
                            if (!Intervall && restzeit > 0) {
                              setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true);
                              Intervall = setInterval(function () {
                                if (restzeit > 0 && schwimmer) {
                                  restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1;
                                } else {
                                  setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                                  (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
                                }
                              }, 2000);
                            }
                          } else if (getState("sonoff.0.Aqua_Control.POWER2").val) {
                            setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                          }
                        }
                        
                        
                        // Vlies Schwimmer normal
                        schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val;
                        restzeit = 25;
                        on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) {
                          var value = obj.state.val;
                          var oldValue = obj.oldState.val;
                          (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
                          timeout = setTimeout(function () {
                            schwimmer = (obj.state ? obj.state.val : "");
                            Vliesmotor();
                          }, 2000);
                        });
                        schedule("0 0 * * *", function () {
                          restzeit = 25;
                          Vliesmotor();
                        });
                        Vliesmotor();
                        
                        // Vlies Schwimmer max
                        maxSchwimmer = getState("sonoff.0.Aqua_Float.POWER5").val;
                        on({id: 'sonoff.0.Aqua_Float.POWER5', change: "ne"}, function (obj) {
                          var value = obj.state.val;
                          var oldValue = obj.oldState.val;
                          maxSchwimmer = (obj.state ? obj.state.val : "");
                          if (maxSchwimmer) {
                            setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                          }
                        });
                        
                        AphofisA Offline
                        AphofisA Offline
                        Aphofis
                        schrieb am zuletzt editiert von
                        #40

                        @paul53
                        meinst du so ?

                        var schwimmer, restzeit, maxSchwimmer, Intervall, timeout;
                        
                        /**
                         * Beschreibe diese Funktion …
                         */
                        function Vliesmotor() {
                          if (schwimmer && !maxSchwimmer) {
                            if (!Intervall && restzeit > 0) {
                              setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true);
                              Intervall = setInterval(function () {
                                if (restzeit > 0 && schwimmer) {
                                  restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1;
                                } else {
                                  setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                                  (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
                                }
                              }, 2000);
                            }
                          } else if (getState("sonoff.0.Aqua_Control.POWER2").val) {
                            setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                          }
                        }
                        
                        
                        // Vlies Schwimmer normal
                        schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val;
                        restzeit = 25;
                        on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) {
                          var value = obj.state.val;
                          var oldValue = obj.oldState.val;
                          (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
                          timeout = setTimeout(function () {
                            schwimmer = (obj.state ? obj.state.val : "");
                            Vliesmotor();
                          }, 2000);
                        });
                        schedule("0 0 * * *", function () {
                          restzeit = 25;
                          Vliesmotor();
                        });
                        maxSchwimmer = getState("sonoff.0.Aqua_Float.POWER5").val;
                        
                        // Vlies Schwimmer max
                        Vliesmotor();
                        on({id: 'sonoff.0.Aqua_Float.POWER5', change: "ne"}, function (obj) {
                          var value = obj.state.val;
                          var oldValue = obj.oldState.val;
                          maxSchwimmer = (obj.state ? obj.state.val : "");
                          if (maxSchwimmer) {
                            setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                          }
                        });
                        
                        paul53P 1 Antwort Letzte Antwort
                        0
                        • AphofisA Aphofis

                          @paul53
                          Verstehe ich nicht ganz wie meinst du mit tauschen !?

                          var schwimmer, maxSchwimmer, restzeit, Intervall, timeout;
                          
                          /**
                           * Beschreibe diese Funktion …
                           */
                          function Vliesmotor() {
                            if (schwimmer && !maxSchwimmer) {
                              if (!Intervall && restzeit > 0) {
                                setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true);
                                Intervall = setInterval(function () {
                                  if (restzeit > 0 && schwimmer) {
                                    restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1;
                                  } else {
                                    setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                                    (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
                                  }
                                }, 2000);
                              }
                            } else if (getState("sonoff.0.Aqua_Control.POWER2").val) {
                              setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                            }
                          }
                          
                          
                          // Vlies Schwimmer normal
                          schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val;
                          restzeit = 25;
                          on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) {
                            var value = obj.state.val;
                            var oldValue = obj.oldState.val;
                            (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
                            timeout = setTimeout(function () {
                              schwimmer = (obj.state ? obj.state.val : "");
                              Vliesmotor();
                            }, 2000);
                          });
                          schedule("0 0 * * *", function () {
                            restzeit = 25;
                            Vliesmotor();
                          });
                          Vliesmotor();
                          
                          // Vlies Schwimmer max
                          maxSchwimmer = getState("sonoff.0.Aqua_Float.POWER5").val;
                          on({id: 'sonoff.0.Aqua_Float.POWER5', change: "ne"}, function (obj) {
                            var value = obj.state.val;
                            var oldValue = obj.oldState.val;
                            maxSchwimmer = (obj.state ? obj.state.val : "");
                            if (maxSchwimmer) {
                              setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                            }
                          });
                          
                          paul53P Offline
                          paul53P Offline
                          paul53
                          schrieb am zuletzt editiert von
                          #41

                          @Aphofis sagte:

                          Verstehe ich nicht ganz wie meinst du mit tauschen !?

                          Packe den Aufruf der Funktion Vliesmotor() wieder ganz nach unten, so dass der Aufruf beim Skriptstart das letzte Kommando ist.

                          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

                          1 Antwort Letzte Antwort
                          0
                          • AphofisA Aphofis

                            @paul53
                            meinst du so ?

                            var schwimmer, restzeit, maxSchwimmer, Intervall, timeout;
                            
                            /**
                             * Beschreibe diese Funktion …
                             */
                            function Vliesmotor() {
                              if (schwimmer && !maxSchwimmer) {
                                if (!Intervall && restzeit > 0) {
                                  setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true);
                                  Intervall = setInterval(function () {
                                    if (restzeit > 0 && schwimmer) {
                                      restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1;
                                    } else {
                                      setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                                      (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
                                    }
                                  }, 2000);
                                }
                              } else if (getState("sonoff.0.Aqua_Control.POWER2").val) {
                                setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                              }
                            }
                            
                            
                            // Vlies Schwimmer normal
                            schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val;
                            restzeit = 25;
                            on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) {
                              var value = obj.state.val;
                              var oldValue = obj.oldState.val;
                              (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
                              timeout = setTimeout(function () {
                                schwimmer = (obj.state ? obj.state.val : "");
                                Vliesmotor();
                              }, 2000);
                            });
                            schedule("0 0 * * *", function () {
                              restzeit = 25;
                              Vliesmotor();
                            });
                            maxSchwimmer = getState("sonoff.0.Aqua_Float.POWER5").val;
                            
                            // Vlies Schwimmer max
                            Vliesmotor();
                            on({id: 'sonoff.0.Aqua_Float.POWER5', change: "ne"}, function (obj) {
                              var value = obj.state.val;
                              var oldValue = obj.oldState.val;
                              maxSchwimmer = (obj.state ? obj.state.val : "");
                              if (maxSchwimmer) {
                                setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                              }
                            });
                            
                            paul53P Offline
                            paul53P Offline
                            paul53
                            schrieb am zuletzt editiert von
                            #42

                            @Aphofis sagte:

                            meinst du so ?

                            Ja.

                            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:

                              meinst du so ?

                              Ja.

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

                              @paul53
                              oder so !?

                              var schwimmer, restzeit, maxSchwimmer, Intervall, timeout;
                              
                              /**
                               * Beschreibe diese Funktion …
                               */
                              function Vliesmotor() {
                                if (schwimmer && !maxSchwimmer) {
                                  if (!Intervall && restzeit > 0) {
                                    setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true);
                                    Intervall = setInterval(function () {
                                      if (restzeit > 0 && schwimmer) {
                                        restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1;
                                      } else {
                                        setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                                        (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
                                      }
                                    }, 2000);
                                  }
                                } else if (getState("sonoff.0.Aqua_Control.POWER2").val) {
                                  setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                                }
                              }
                              
                              
                              // Vlies Schwimmer normal
                              schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val;
                              restzeit = 25;
                              on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) {
                                var value = obj.state.val;
                                var oldValue = obj.oldState.val;
                                (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
                                timeout = setTimeout(function () {
                                  schwimmer = (obj.state ? obj.state.val : "");
                                  Vliesmotor();
                                }, 2000);
                              });
                              schedule("0 0 * * *", function () {
                                restzeit = 25;
                                Vliesmotor();
                              });
                              maxSchwimmer = getState("sonoff.0.Aqua_Float.POWER5").val;
                              // Vlies Schwimmer max
                              on({id: 'sonoff.0.Aqua_Float.POWER5', change: "ne"}, function (obj) {
                                var value = obj.state.val;
                                var oldValue = obj.oldState.val;
                                maxSchwimmer = (obj.state ? obj.state.val : "");
                                if (maxSchwimmer) {
                                  setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                                }
                              });
                              Vliesmotor();
                              
                              paul53P 1 Antwort Letzte Antwort
                              0
                              • AphofisA Aphofis

                                @paul53
                                oder so !?

                                var schwimmer, restzeit, maxSchwimmer, Intervall, timeout;
                                
                                /**
                                 * Beschreibe diese Funktion …
                                 */
                                function Vliesmotor() {
                                  if (schwimmer && !maxSchwimmer) {
                                    if (!Intervall && restzeit > 0) {
                                      setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true);
                                      Intervall = setInterval(function () {
                                        if (restzeit > 0 && schwimmer) {
                                          restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1;
                                        } else {
                                          setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                                          (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})();
                                        }
                                      }, 2000);
                                    }
                                  } else if (getState("sonoff.0.Aqua_Control.POWER2").val) {
                                    setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                                  }
                                }
                                
                                
                                // Vlies Schwimmer normal
                                schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val;
                                restzeit = 25;
                                on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) {
                                  var value = obj.state.val;
                                  var oldValue = obj.oldState.val;
                                  (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
                                  timeout = setTimeout(function () {
                                    schwimmer = (obj.state ? obj.state.val : "");
                                    Vliesmotor();
                                  }, 2000);
                                });
                                schedule("0 0 * * *", function () {
                                  restzeit = 25;
                                  Vliesmotor();
                                });
                                maxSchwimmer = getState("sonoff.0.Aqua_Float.POWER5").val;
                                // Vlies Schwimmer max
                                on({id: 'sonoff.0.Aqua_Float.POWER5', change: "ne"}, function (obj) {
                                  var value = obj.state.val;
                                  var oldValue = obj.oldState.val;
                                  maxSchwimmer = (obj.state ? obj.state.val : "");
                                  if (maxSchwimmer) {
                                    setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false);
                                  }
                                });
                                Vliesmotor();
                                
                                paul53P Offline
                                paul53P Offline
                                paul53
                                schrieb am zuletzt editiert von
                                #44

                                @Aphofis sagte:

                                oder so !?

                                Ist beides gut.

                                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
                                • paul53P paul53

                                  @Aphofis sagte:

                                  oder so !?

                                  Ist beides gut.

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

                                  @paul53
                                  ok

                                  AphofisA 1 Antwort Letzte Antwort
                                  0
                                  • AphofisA Aphofis

                                    @paul53
                                    ok

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

                                    @paul53
                                    Dann beobachte ich mal ob es klappt

                                    AphofisA 1 Antwort Letzte Antwort
                                    0
                                    • AphofisA Aphofis

                                      @paul53
                                      Dann beobachte ich mal ob es klappt

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

                                      @Aphofis
                                      Wenn ich die Situation simoliere, sprich erst vlies schwimmer normal in true bringen dann vlies schwimmer max ins true bringe stoppt der motor. also es scheint zu laufen :+1: :+1: :+1:

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

                                        @paul53
                                        Sag mal die Osmose Steuerung hattest du ja auf false getriggert !?
                                        Ist es auch möglich die Steuerung auf true zu triggern!? Da immer noch Osmose zu viel dosiert wird.
                                        Es sind am Tag immer so 2-3 Liter.
                                        Hat zu folge, das Filter Max Schwimmer ausgelöst wird durch den leicht erhöhten Wasserstand und die Steuerung Filter Niveau Max schaltet dann den Skimmer aus und Die Osmose Steuerung.
                                        Kann man das irgendwie besser steuern, das keine Ahnung alle 5 Sek geprüft wird ob false oder true und wirklich nur bei true dosiert wird und bei false nix kommt.
                                        Es ist wenn ich zu Hause bin und oder Urlaub habe ja OK aber es soll ja nicht so sein, das ich 2-3 liter am Tag ständig raus holen muss.
                                        Wäre Prima wenn du da noch mal drüber gucken kannst.

                                        var Restzeit, Magnetventil_Kontrolle;
                                        
                                        /**
                                         * Beschreibe diese Funktion …
                                         */
                                        function Magnetventil_Ein() {
                                          if (!Magnetventil_Kontrolle && Restzeit > 0) {
                                            Magnetventil_Kontrolle = setInterval(function () {
                                              if (Restzeit > 0 && getState("sonoff.0.Aqua_Float.POWER1").val) {
                                                Restzeit = (typeof Restzeit == 'number' ? Restzeit : 0) + -1;
                                              } else {
                                                setState("sonoff.0.Aqua_Control.POWER1"/*Osmose_Magnetventil*/, false);
                                                (function () {if (Magnetventil_Kontrolle) {clearInterval(Magnetventil_Kontrolle); Magnetventil_Kontrolle = null;}})();
                                              }
                                            }, 2000);
                                            setState("sonoff.0.Aqua_Control.POWER1"/*Osmose_Magnetventil*/, true);
                                          }
                                        }
                                        
                                        
                                        Restzeit = 150;
                                        Magnetventil_Kontrolle = null;
                                        
                                        on({id: 'sonoff.0.Aqua_Float.POWER1', change: "gt"}, function (obj) {
                                          var value = obj.state.val;
                                          var oldValue = obj.oldState.val;
                                          Magnetventil_Ein();
                                        });
                                        schedule("0 0 * * *", function () {
                                          Restzeit = 150;
                                          if (getState("sonoff.0.Aqua_Float.POWER1").val) {
                                            Magnetventil_Ein();
                                          }
                                        });
                                        
                                        paul53P 1 Antwort Letzte Antwort
                                        0
                                        • AphofisA Aphofis

                                          @paul53
                                          Sag mal die Osmose Steuerung hattest du ja auf false getriggert !?
                                          Ist es auch möglich die Steuerung auf true zu triggern!? Da immer noch Osmose zu viel dosiert wird.
                                          Es sind am Tag immer so 2-3 Liter.
                                          Hat zu folge, das Filter Max Schwimmer ausgelöst wird durch den leicht erhöhten Wasserstand und die Steuerung Filter Niveau Max schaltet dann den Skimmer aus und Die Osmose Steuerung.
                                          Kann man das irgendwie besser steuern, das keine Ahnung alle 5 Sek geprüft wird ob false oder true und wirklich nur bei true dosiert wird und bei false nix kommt.
                                          Es ist wenn ich zu Hause bin und oder Urlaub habe ja OK aber es soll ja nicht so sein, das ich 2-3 liter am Tag ständig raus holen muss.
                                          Wäre Prima wenn du da noch mal drüber gucken kannst.

                                          var Restzeit, Magnetventil_Kontrolle;
                                          
                                          /**
                                           * Beschreibe diese Funktion …
                                           */
                                          function Magnetventil_Ein() {
                                            if (!Magnetventil_Kontrolle && Restzeit > 0) {
                                              Magnetventil_Kontrolle = setInterval(function () {
                                                if (Restzeit > 0 && getState("sonoff.0.Aqua_Float.POWER1").val) {
                                                  Restzeit = (typeof Restzeit == 'number' ? Restzeit : 0) + -1;
                                                } else {
                                                  setState("sonoff.0.Aqua_Control.POWER1"/*Osmose_Magnetventil*/, false);
                                                  (function () {if (Magnetventil_Kontrolle) {clearInterval(Magnetventil_Kontrolle); Magnetventil_Kontrolle = null;}})();
                                                }
                                              }, 2000);
                                              setState("sonoff.0.Aqua_Control.POWER1"/*Osmose_Magnetventil*/, true);
                                            }
                                          }
                                          
                                          
                                          Restzeit = 150;
                                          Magnetventil_Kontrolle = null;
                                          
                                          on({id: 'sonoff.0.Aqua_Float.POWER1', change: "gt"}, function (obj) {
                                            var value = obj.state.val;
                                            var oldValue = obj.oldState.val;
                                            Magnetventil_Ein();
                                          });
                                          schedule("0 0 * * *", function () {
                                            Restzeit = 150;
                                            if (getState("sonoff.0.Aqua_Float.POWER1").val) {
                                              Magnetventil_Ein();
                                            }
                                          });
                                          
                                          paul53P Offline
                                          paul53P Offline
                                          paul53
                                          schrieb am zuletzt editiert von
                                          #49

                                          @Aphofis sagte:

                                          die Osmose Steuerung hattest du ja auf false getriggert !?

                                          Nein, auf Änderung von false auf true (change: "gt").

                                          @Aphofis sagte in Schwimmer träge machen???:

                                          alle 5 Sek geprüft wird ob false oder true und wirklich nur bei true dosiert wird und bei false nix kommt.

                                          Wenn das Magnetventil offen ist, wird alle 2 s geprüft, ob der Schwimmer true ist und noch Restzeit vorhanden ist, andernfalls wird das Magnetventil geschlossen und das Intervall beendet. Die Restzeit wird um MItternacht auf 300 s (150 * 2 s) gesetzt.

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


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          766

                                          Online

                                          32.6k

                                          Benutzer

                                          82.0k

                                          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