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]Last Change eines Datenpunktes

    NEWS

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    [gelöst]Last Change eines Datenpunktes

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

      @dominik-f
      Das folgende Blockly zeigt an, wie lange der angezeigte Zustand besteht.

      Bild_2022-02-27_103215.png

      Für die Bearbeitung mehrerer Datenpunkte sollte man eine Funktion verwenden.

      Bild_2022-02-27_104033.png

      liv-in-sky Dominik F. 2 Replies Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @paul53 last edited by

        @paul53

        wenn der datenpunkt öfters mit false aktuallisiert wird, bevor er wieder auf true geht, stimmen doch die werte nicht mehr - oder übersehe ich bei dir was ?

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

          @liv-in-sky sagte: übersehe ich bei dir was ?

          Es wird nicht der Zeitstempel, sondern die letzte Änderung ausgewertet. Es wird also angezeigt wie lange der Datenpunkt schon true bzw. false ist.

          1 Reply Last reply Reply Quote 1
          • Dominik F.
            Dominik F. @paul53 last edited by

            @paul53

            Ich bin gerade am Übertragen und habe eine Frage dazu.

            Sind die Bedingungen in der Funktion dauer nicht immer erfüllt?
            Also wenn die es jetzt sagen wir mal um 30 Sek geht. Die 30 Sekunden sind doch in jedem der Blöcke < als 60, 3600 etc?

            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @Dominik F. last edited by

              @dominik-f sagte: Die 30 Sekunden sind doch in jedem der Blöcke < als 60, 3600 etc?

              "sonst (falls)" wird nur ausgeführt, wenn die vorherige "(sonst) falls" Bedingung nicht erfüllt ist.

              Dominik F. 2 Replies Last reply Reply Quote 0
              • Dominik F.
                Dominik F. @paul53 last edited by

                @paul53

                Ah okay, danke für deine Erklärung und für deine Mühe. Ich war da komplett in der falschen Richtung unterwegs mit meinen Versuchen^^

                1 Reply Last reply Reply Quote 0
                • Dominik F.
                  Dominik F. @paul53 last edited by

                  @paul53

                  Das Blockly funktioniert super. Wie müsste man das Blockly verändern, damit nur die Zeitspanne angezeigt wird, wann der Datenpunkt true war?

                  paul53 1 Reply Last reply Reply Quote 0
                  • paul53
                    paul53 @Dominik F. last edited by paul53

                    @dominik-f sagte: nur die Zeitspanne angezeigt wird, wann der Datenpunkt true war?

                    Die Zeitspanne während true oder die Zeitspanne danach?
                    Für die Zeitspanne danach (während false) :

                    Bild_2022-02-27_132651.png

                    Dominik F. 2 Replies Last reply Reply Quote 1
                    • Dominik F.
                      Dominik F. @paul53 last edited by

                      @paul53

                      Genau, die Zeitspanne nach true meinte ich.

                      1 Reply Last reply Reply Quote 0
                      • Dominik F.
                        Dominik F. @paul53 last edited by

                        @paul53

                        Vielen Dank für deine ganze Hilfe und deine Mühe. Ich hoffe, dass ich es irgendwann mal schaffe, sowas selber zu machen.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        701
                        Online

                        32.1k
                        Users

                        80.6k
                        Topics

                        1.3m
                        Posts

                        blockly
                        3
                        13
                        437
                        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