Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Nur ein Hinweis pro Tag möglich?

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Nur ein Hinweis pro Tag möglich?

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      myssv last edited by myssv

      Moin zusammen,

      ich habe eine Automatik für meine Markise gebaut. Dazu habe ich neue Datenfelder erstellt und einen logisches Feld, ob die Automatik aktiv ist oder nicht.

      Aktuell sieht das Script so aus:

      613dc2e9-05fa-4327-8f89-a52d4e43d302-grafik.png
      724d66ff-c749-4ea2-b785-61b81bd89363-grafik.png

      Nun würde ich gerne nur einen Hinweis pro Tag bekommen, wenn ich die Automatik deaktiviert habe. Wie kann ich das lösen?

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

        @myssv sagte in Nur ein Hinweis pro Tag möglich?:

        Nun würde ich gerne nur einen Hinweis pro Tag bekommen, wenn ich die Automatik deaktiviert habe.

        auch wenn die Automatik zwischendurch wieder aktiv war?

        M 1 Reply Last reply Reply Quote 0
        • M
          myssv @Homoran last edited by myssv

          @homoran Das ist mir aktuell völlig egal.

          Ich will nur nicht ständig Meldungen bekommen, wenn sich die Temperatur ändert. Wenn es dann jeweils wieder eine gibt, ist es auch ok.

          So häufig deaktiviere ich es auch nicht. Aktuell nur, wenn wir im Urlaub sind.

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

            @myssv

            z.b.

            mach dir einen dp und schreibe das datum rein, wenn du die message gesendet hast - vergleiche bei der if-abfrage ob das datum in diesem dp NICHT heute ist

            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @liv-in-sky last edited by

              @myssv

              @liv-in-sky sagte in Nur ein Hinweis pro Tag möglich?:

              @myssv

              z.b.

              mach dir einen dp und schreibe das datum rein, wenn du die message gesendet hast - vergleiche bei der if-abfrage ob das datum in diesem dp NICHT heute ist

              muss nicht mal das Datum sein.
              einfach eine Sperrvariabke Typ Logikwert beim ersten Senden auf true setzen und dann immer abfragen.
              irgendwann per cron einmal am Tag wieder auf false

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

                @homoran variable wirkt aber bei server neustart oder instanz- script-start nicht mehr - daher dp - wenn mehrere tage dazwischen liegen funktioniert das mit der logic nicht im dp, da braucht man das datum

                M 1 Reply Last reply Reply Quote 1
                • M
                  myssv @liv-in-sky last edited by

                  @liv-in-sky Ich habe es nun so gemacht

                  d34bf998-4212-48ee-893d-623b3e992bd2-grafik.png

                  Vielen Dank für Eure Hilfe!

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

                    @myssv da bin ich mal gespannt
                    der Timestamp enthält Millisekunden

                    M 1 Reply Last reply Reply Quote 1
                    • M
                      myssv @Homoran last edited by myssv

                      @homoran Danke für den Hinweis!

                      8599c635-2f41-4776-a75c-dcab9b3cd73e-grafik.png

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

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      898
                      Online

                      32.0k
                      Users

                      80.5k
                      Topics

                      1.3m
                      Posts

                      3
                      9
                      153
                      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