Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [gelöst]Zufälliges schalten nach Sonnenuntegang

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst]Zufälliges schalten nach Sonnenuntegang

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

      Zufällig innerhalb x Minuten, warum denn per Astro ist die Zeit wirklich bereits jeden Tag anders sonst müsste man ein Zufallsschnäppchen programmieren.

      Ansonsten fällt mir nur script der Anwesenheit Simulation als Basis ein

      Sent from my iPhone using Tapatalk

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

        @etproject:

        zufällig, innerhalb von 60 Minuten einschalten. `
        Prinzip in Blockly:

        Zufallswert (in Minuten): ganzzahlige Zufallszahl zwischen 0 und 60 (Mathematik-Block)

        Diesen Wert per Ausführen Intervall alle 1 Minute runterzählen bis 0.

        Etwa so.
        filename="Blockly_SU_plus_Zufallsverzögerung.JPG" index="0">~~

        EDIT: Korrektur etwas –> countDown

        1 Reply Last reply Reply Quote 0
        • E
          etproject last edited by

          Danke für die schnelle Antwort! Werde das Programm morgen mal ausprobieren .

          1 Reply Last reply Reply Quote 0
          • E
            etproject last edited by

            Leider funktioniert das Programm nicht.Folgendes wird im LOG angezeigt:

            javascript.0 2018-10-02 17:04:02.707 info script.js.common.SonuZufall: registered 0 subscriptions and 1 schedule

            javascript.0 2018-10-02 17:04:02.702 info Start javascript script.js.common.SonuZufall

            1 Reply Last reply Reply Quote 0
            • Dutchman
              Dutchman Developer Most Active Administrators last edited by

              Zeig dein Script Mal nur mit dem Log können wir dir nicht helfen

              Sent from my iPhone using Tapatalk

              1 Reply Last reply Reply Quote 0
              • E
                etproject last edited by

                Habe das Blockly Scipt von paul53 benutzt.
                6443_blockly_su_plus_zufallsverz_gerung.jpg

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

                  Sorry, mein Fehler: Falsche Variable. Bitte ändern etwas –> countDown

                  erhöhe countDown um -1

                  1 Reply Last reply Reply Quote 0
                  • E
                    etproject last edited by

                    Habe countDown > -1 eingegeben . Sonoff schaltet jetzt ein und aus, aber nicht zufällig. Eigentlich immer zur vollen Minute.

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

                      @etproject:

                      Habe countDown > -1 eingegeben `
                      :?: :?:

                      So, wie im https://forum.iobroker.net/viewtopic.php?f=21&t=17344#p181708 ?

                      1 Reply Last reply Reply Quote 0
                      • E
                        etproject last edited by

                        So wie im Bild. Oder habe ich es an der falschen Stelle geändert.
                        6443_1.jpg

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

                          @etproject:

                          Oder habe ich es an der falschen Stelle geändert. `
                          Ja. Sieh das korrigierte Blockly an:

                          erhöhe countDown um -1

                          falls countDown <= 0

                          1 Reply Last reply Reply Quote 0
                          • E
                            etproject last edited by

                            Habe -1 eingegeben. Jedoch keine Funktion.
                            6443_2.jpg

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

                              erhöhe etwas um -1

                              –>

                              erhöhe countDown um -1

                              falls countDown <= 0

                              https://forum.iobroker.net/viewtopic.php?f=21&t=17344#p181708

                              1 Reply Last reply Reply Quote 0
                              • E
                                etproject last edited by

                                Es funktioniert!!! 😄 Danke für die Mühe und Geduld!!!

                                Wünsche noch eine schöne Abend

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

                                  @etproject:

                                  Es funktioniert!!! `
                                  Dann markiere bitte das Thema im Betreff des ersten Beitrags als [gelöst].

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

                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  815
                                  Online

                                  31.9k
                                  Users

                                  80.2k
                                  Topics

                                  1.3m
                                  Posts

                                  3
                                  16
                                  1573
                                  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