Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Osmose Dosierung }}} Problem {{{

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Osmose Dosierung }}} Problem {{{

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

      @paul53
      Finde ich die Log dann ganz normal in den Logs ?
      Ich glaube das läuft nicht mehr seid dem ich den Aktuellen JS-Controller Stable aktualisiert hatte

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

        @aphofis sagte: Finde ich die Log dann ganz normal in den Logs ?

        Ja, und unterhalb des Skripts im Editor.

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

          @paul53
          Weder im Script noch in der System Log wird etwas angezeigt.
          Der schwimmer ist true und es wird nichts dosiert.

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

            @aphofis sagte: Weder im Script noch in der System Log wird etwas angezeigt.

            Dann wird offenbar nicht getriggert und es scheint somit ein grundsätzliches Problem zu sein, das nicht nur das eine Skript betrifft.

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

              @paul53
              nur wo kann das problem liegen?
              Wenn ich den Schwimmer manuell ins false bringe wird dieser auch im sonoff adapter unter dem Gerät als false angezeigt nur die steuerung triggert nicht und aktiviert das Magnetventil

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

                @aphofis
                Dann erstelle mal ein Testskript, das nur feststellt, ob der Schwimmer triggert, wenn er betätigt wird:

                on('sonoff.0.Aqua_Float.POWER1', function(dp) {
                  log('Test Schwimmer: ' + dp.state.val)
                });
                
                Aphofis 1 Reply Last reply Reply Quote 0
                • Aphofis
                  Aphofis @paul53 last edited by

                  @paul53 sagte in Osmose Dosierung }}} Problem {{{:

                  on('sonoff.0.Aqua_Float.POWER1', function(dp) {

                  Der Schwimmer triggert
                  Nur was mir aufgefallen ist laut deines scripts wo soll da der Datenpunkt Osmosefreigabe liegen !?
                  Wenn der schwimmer unten ruht steht er auf true weil wasserstand zu niedrig, wenn ich denn dann ziehe also ins false bringe dosiert das Magnetventil für 0,5-1 sek und stoppt das macht das dann 2 mal beim manuellen betätigen danach ist schluss

                  osmose_schwimmer.png

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

                    @aphofis sagte: wo soll da der Datenpunkt Osmosefreigabe liegen !?

                    var Osmosefreigabe = !getState('sonoff.0.Aqua_Float.POWER4').val;
                    
                    Aphofis 2 Replies Last reply Reply Quote 0
                    • Aphofis
                      Aphofis @paul53 last edited by

                      @paul53
                      OK Filter Niveau Max steht auf false ist unten auch richtig so.
                      Habe die ESPs und Relais Karte manuell getestet mit gebrückten Schwimmer anschlüßen bei allen relevanten Geräten kommen auch 12 Volt an also Relais karte funktioniert und Schaltzustände der ESPs sind auch korrekt.

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

                        @paul53
                        oder ist es ein Problem wie du mal sagtest, das

                        const idRestzeit = '0_userdata.0.Aqua_Control.0.Osmose_System.Osmose.Restzeit';
                        

                        nicht im Javascript ordner liegt !?

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

                          @aphofis sagte: ist es ein Problem wie du mal sagtest, das

                          const idRestzeit = '0_userdata.0.Aqua_Control.0.Osmose_System.Osmose.Restzeit';
                          

                          nicht im Javascript ordner liegt !?

                          Nein.

                          Überwache mal den Magnetventil-Datenpunkt in einem Prüfskript:

                          on({id: 'sonoff.0.Aqua_Control.POWER1'}, function(dp) {
                             log('Magnetventil: ' + dp.state.val + ', Ack: ' + dp.state.ack + ', Quelle: ' + dp.state.from);
                          });
                          
                          Aphofis 1 Reply Last reply Reply Quote 0
                          • Aphofis
                            Aphofis @paul53 last edited by Aphofis

                            @paul53
                            wenn ich den schwimmer ziehe kommt nur das
                            Magnetventil.png
                            oder soll ich das magnetventil manuel per ESP schalten !?

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

                              @aphofis
                              Wenn der Schwimmer nach ca. 1 s wieder auf false zurück geht, wird das Magnetventil nicht aktiviert, da erst die Entprellzeit von 2 s vergehen muss.

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

                                @paul53
                                was heisst das jetzt im klartext!?

                                Ich teste morgen mal das magnetventil ob das einen defekt hat.
                                Bei Meerwasser weiss man nie! Das Magnet Ventil ist zwar in einem Kunststoff gehäuse eingebaut aber Seeluft mit Salz kommt ja in der Technik in jede Ritze.

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

                                  @aphofis
                                  Laut Log pendelt der Schwimmer in ca. 1-Sekunden-Abstand zwischen false und true. Das ist sicherlich nicht das gewünschte Verhalten, da der Schwimmer ja das Magnetventil steuern soll?

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

                                    @paul53
                                    Ich denke das pendeln war ich ich hatte den Schwimmer ja nur mehrmals gezogen
                                    Ich teste morgen das Magnetventil! Ich habe noch ersatz liegen.
                                    Ich sage morgen bescheid was mit dem Ventil los ist wenn das mechanisch funktioniert muss es an etwas anderem liegen.
                                    Aber schon mal toll das ich mit der Steuerung nicht alleine bin und du bei Seite stehst wenn Not am Mann ist!!!

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

                                      @aphofis sagte: ich ich hatte den Schwimmer ja nur mehrmals gezogen

                                      In so kurzem Abstand? Das ist zum Testen der Funktion ungeeignet.

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

                                        @paul53
                                        I'm sorry

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

                                          @aphofis
                                          Damit das Magnetventil schneller auf den Schwimmer reagiert, ändere mal die Entprellung:

                                          var entprell = null;
                                          on({id: 'sonoff.0.Aqua_Float.POWER1', change: "ne"}, function (obj) {
                                            log('Schwimmer: ' + obj.state.val)
                                            if(!entprell) {
                                              entprell = setTimeout(function() {
                                                  entprell = null;
                                              }, 2000); // 2 s  
                                              Schwimmer = obj.state.val;
                                              if(Schwimmer) Magnetventil_Ein();
                                              else setState("sonoff.0.Aqua_Control.POWER1"/*Osmose_Magnetventil*/, false);
                                            }  
                                          });
                                          
                                          Aphofis 1 Reply Last reply Reply Quote 0
                                          • Aphofis
                                            Aphofis @paul53 last edited by

                                            @paul53
                                            Das kam eben ohne mein zutun
                                            Magnetventil.png

                                            hab die entprell zeit jetzt auf 1000 gestellt wenn das richtig ist

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            530
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly javascript
                                            2
                                            28
                                            856
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo