Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] Schleife so lange ausführen bis Zustand richtig?

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Schleife so lange ausführen bis Zustand richtig?

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

      @peter-c sagte: Geht das nicht einfacher?

      Ja.

      Blockly_temp.JPG

      P 1 Reply Last reply Reply Quote 2
      • T
        TT-Tom @Peter c last edited by

        @peter-c

        Bildschirmfoto 2023-11-27 um 13.10.53.png

        1 Reply Last reply Reply Quote 0
        • P
          Peter c @paul53 last edited by

          @paul53
          Denke ich habs verstanden und das Blockly angepaßt. Aber - Muss da nicht die Bedingung Wert = wahr dazu - oder was soll sonst passieren wenn wert true / fals ist? Und braucht falls Object nicht auch so eine Bedingung?

          Bildschirmfoto 2023-11-27 um 13.34.08.png

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

            @peter-c sagte: Muss da nicht die Bedingung Wert = wahr dazu

            Nein, "falls" prüft auf wahr (für mache).

            P 2 Replies Last reply Reply Quote 1
            • P
              Peter c @paul53 last edited by

              @paul53 Wieder was gelernt - Danke

              Was hälst Du von der Lösung von TT-Tom?

              T paul53 2 Replies Last reply Reply Quote 0
              • T
                TT-Tom @Peter c last edited by

                @peter-c

                Wenn Paul dir eine Lösung vorschlägt, kannst du sie einsetzen. Er ist hier im Forum der mit Abstand der Beste.

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

                  @peter-c sagte: Was hälst Du von der Lösung von TT-Tom?

                  Verzögert schon beim ersten Mal und läuft unendlich, wenn der ESP-Status nie wahr wird. Außerdem muss der Wert innerhalb des Intervalls nicht geprüft werden, da das Intervall bei wahr gestoppt wird.

                  P T 2 Replies Last reply Reply Quote 1
                  • P
                    Peter c @paul53 last edited by Peter c

                    @paul53 Alles klar. Wollte nur eine finale Antwort im Thread falls jemand anderes ein ähnliches Problem lösen muss.

                    Vielen Dank an Euch.

                    1 Reply Last reply Reply Quote 0
                    • T
                      TT-Tom @paul53 last edited by

                      @paul53

                      Danke für die Rückmeldung 👍🏻

                      1 Reply Last reply Reply Quote 0
                      • P
                        Peter c @paul53 last edited by Peter c

                        @paul53 Leider hat das Blockly beim ersten Mal zwar ausgelöst der Effekt hat sich aber nicht eingestellt.

                        Bildschirmfoto 2023-11-27 um 17.14.12.png

                        Bildschirmfoto 2023-11-27 um 17.15.07.png

                        Frage: warum hat es nur 5 mal versucht zu reseten?
                        Gelb ist der Schalter Pink der ESP.

                        Bildschirmfoto 2023-11-27 um 17.20.15.png

                        Könnte es am Ping Adapter liegen der Standardmäßig auf 60000 ms eingestellt ist? Sollte ich den timeout höher stellen 70s?

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

                          @peter-c sagte: Könnte es am Ping Adapter liegen der Standardmäßig auf 60000 ms eingestellt ist? Sollte ich den timeout höher stellen 70s?

                          Ja, es macht keinen Sinn, es alle 10 s zu versuchen, wenn die Reaktionszeit bis zu 60 s beträgt.

                          1 Reply Last reply Reply Quote 0
                          • P
                            Peter c last edited by

                            @paul53 Hab das Skript jetzt einige Tage laufen und es funktioniert perfekt.

                            Danke

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            407
                            Online

                            32.0k
                            Users

                            80.4k
                            Topics

                            1.3m
                            Posts

                            3
                            13
                            415
                            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