Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Schleife bis will nicht

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Schleife bis will nicht

    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User @ChrisXY last edited by A Former User

      @chrisxy warum mit Schleife? Trigger doch auf das Hoftor und wenn dieser Wert dann wahr ist prüfe ob Tanja schlafen falsch ist und dann Licht an.

      C 2 Replies Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @ChrisXY last edited by liv-in-sky

        @chrisxy

        nimm lieber das interval blockly - dort kannst du einstellen, in wievielen sekunden das abgefragt werden soll (z.b. alle 5 sekunden) - im interval frägst du dann den dp ab(mit if ) und führst dann deine steuerbefehle aus UND das "stop interval" , wenn das if zutrifft

        1 Reply Last reply Reply Quote 1
        • C
          ChrisXY @Guest last edited by

          @ciddi89 wenn man dann reinkommt geht es aber wieder an..

          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators last edited by

            Diese Schleife schiesst im Millisekundentakt befehle und legt deinen iobroker in kürzester Zeit lahm

            C 1 Reply Last reply Reply Quote 0
            • C
              ChrisXY @Guest last edited by

              @ciddi89 so??block2.PNG

              liv-in-sky 1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @ChrisXY last edited by

                @chrisxy jupp - genauso - evtl brauchst du noch einen counter falls das auch nicht eintritt und das ewig zählen würde

                C 1 Reply Last reply Reply Quote 0
                • C
                  ChrisXY @Homoran last edited by

                  @homoran wie nutzt man die schleifen sonst

                  Homoran 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @ChrisXY last edited by

                    @chrisxy sagte in Schleife bis will nicht:

                    @homoran wie nutzt man die schleifen sonst

                    gar nicht 😁

                    (für so etwas.)

                    1 Reply Last reply Reply Quote 1
                    • C
                      ChrisXY @liv-in-sky last edited by

                      @liv-in-sky also 2, schleife?

                      liv-in-sky 1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @ChrisXY last edited by

                        • überhalb(außerhalb) des triggers setzt du eine variable auf 0
                        • im existierenden interval als erstes" variable plus 1"
                        • dann ein weiteres "if counter >= 20" dann darin variable auf 0 setzen und stop interval - dann (als zweites if) kommt dein existierendes if

                        habe gerade keinen zugrif auf den editor um zu zeigen 😞

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        839
                        Online

                        32.0k
                        Users

                        80.5k
                        Topics

                        1.3m
                        Posts

                        4
                        11
                        382
                        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