Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. [gelöst]Zufälliges schalten nach Sonnenuntegang

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    6
    1
    252

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    9
    1
    242

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    900

[gelöst]Zufälliges schalten nach Sonnenuntegang

Scheduled Pinned Locked Moved Skripten / Logik
16 Posts 3 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    etproject
    wrote on last edited by
    #4

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

    1 Reply Last reply
    0
    • E Offline
      E Offline
      etproject
      wrote on last edited by
      #5

      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
      0
      • DutchmanD Offline
        DutchmanD Offline
        Dutchman
        Developer Most Active Administrators
        wrote on last edited by
        #6

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

        Sent from my iPhone using Tapatalk

        1 Reply Last reply
        0
        • E Offline
          E Offline
          etproject
          wrote on last edited by
          #7

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

          1 Reply Last reply
          0
          • paul53P Offline
            paul53P Offline
            paul53
            wrote on last edited by
            #8

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

            erhöhe countDown um -1

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

            1 Reply Last reply
            0
            • E Offline
              E Offline
              etproject
              wrote on last edited by
              #9

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

              1 Reply Last reply
              0
              • paul53P Offline
                paul53P Offline
                paul53
                wrote on last edited by
                #10

                @etproject:

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

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

                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  etproject
                  wrote on last edited by
                  #11

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

                  1 Reply Last reply
                  0
                  • paul53P Offline
                    paul53P Offline
                    paul53
                    wrote on last edited by
                    #12

                    @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

                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                    1 Reply Last reply
                    0
                    • E Offline
                      E Offline
                      etproject
                      wrote on last edited by
                      #13

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

                      1 Reply Last reply
                      0
                      • paul53P Offline
                        paul53P Offline
                        paul53
                        wrote on last edited by
                        #14

                        erhöhe etwas um -1

                        –>

                        erhöhe countDown um -1

                        falls countDown <= 0

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

                        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                        1 Reply Last reply
                        0
                        • E Offline
                          E Offline
                          etproject
                          wrote on last edited by
                          #15

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

                          Wünsche noch eine schöne Abend

                          1 Reply Last reply
                          0
                          • paul53P Offline
                            paul53P Offline
                            paul53
                            wrote on last edited by
                            #16

                            @etproject:

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

                            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                            1 Reply Last reply
                            0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            282

                            Online

                            32.8k

                            Users

                            82.8k

                            Topics

                            1.3m

                            Posts
                            Community
                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                            ioBroker Community 2014-2025
                            logo
                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Home
                            • Recent
                            • Tags
                            • Unread 0
                            • Categories
                            • Unreplied
                            • Popular
                            • GitHub
                            • Docu
                            • Hilfe