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] Blockly schaltet zu oft

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Blockly schaltet zu oft

    This topic has been deleted. Only users with topic management privileges can see it.
    • Codierknecht
      Codierknecht Developer Most Active @Codierknecht last edited by

      @Chris777

      ein Ereignisgesteuertes System, bei dem Prozesse auch noch asynchron ablaufen können.

      Stichwort: https://www.google.com/search?q=nebenläufige+programmierung

      1 Reply Last reply Reply Quote 0
      • C
        Chris777 last edited by

        Könnte es jetzt so funktionieren? Mir ist noch nicht klar, ob ich so SG Aktiv in true und false setzen kann oder ob es sich gegenseitig beeinflusst.

        SG Aktiv.JPG

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

          @chris777 sagte: Könnte es jetzt so funktionieren?

          Keine zwei gleiche Trigger! Mache es besser so:

          Blockly_temp.JPG

          1 Reply Last reply Reply Quote 0
          • C
            Chris777 last edited by

            Und wie schalte ich SG Aktiv wieder auf false?

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

              @chris777 sagte: Und wie schalte ich SG Aktiv wieder auf false?

              Wenn die Variable aktiv auf false wechselt und dann 30 Minuten auf false bleibt, schaltet "SG Aktiv" auf false (Variablenwert).

              Blockly_temp.JPG

              1 Reply Last reply Reply Quote 0
              • C
                Chris777 last edited by

                SG Aktiv.JPG

                Ich versuche es mal kurz in Worte zu fassen:
                Falls sich value ändert setze aktiv 1 auf true, wenn die Bedingungen Hausb.. etc. erfüllt sind. Wenn Aktiv 1 gleich SG Aktiv ist (egal ob true oder false) stoppe timeout3. Sonst, falls timeout3 nicht true ist, führe timeout3 aus und schalte nach 5 Minuten SG Aktiv auf den Wert von aktiv 1 (hier mit true). Das gleiche, wenn Aktiv 1 auf false wechselt.
                Korrekt?

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

                  @chris777 sagte: Wenn Aktiv 1 gleich SG Aktiv ist (egal ob true oder false) stoppe timeout3. Sonst, falls timeout3 nicht true ist, führe timeout3 aus und schalte nach 5 Minuten SG Aktiv auf den Wert von aktiv 1 (hier mit true). Das gleiche, wenn Aktiv 1 auf false wechselt.

                  Korrekt?

                  Fast korrekt: falls timeout3 null oder undefined ist,

                  1 Reply Last reply Reply Quote 0
                  • C
                    Chris777 last edited by

                    @paul53 said in Blockly schaltet zu oft:

                    undefined

                    Danke für eure Geduld und schönen Abend!

                    1 Reply Last reply Reply Quote 0
                    • C
                      Chris777 last edited by

                      Also der Blockly funktioniert nicht. Er schaltet nicht auf aktiv true obwohl die Bedingung erfüllt sind.
                      Aktiv.JPG

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

                        @chris777 sagte: schaltet nicht auf aktiv true obwohl die Bedingung erfüllt sind.

                        Sicher, dass die Bedingungen 5 Minuten lang erfüllt sind? Bau einen Debug-Block ein, um es zu prüfen.

                        1 Reply Last reply Reply Quote 0
                        • C
                          Chris777 last edited by

                          So scheint es erstmal heute funktioniert zu haben. Jeweils nur ein sauberes True oder False für die entsprechende Zeit..

                          Aktiv.JPG

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          457
                          Online

                          32.0k
                          Users

                          80.5k
                          Topics

                          1.3m
                          Posts

                          4
                          34
                          1898
                          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