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) Geräte in bestimmten Zeiten laden.

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    (Gelöst) Geräte in bestimmten Zeiten laden.

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

      @paul53 said in Geräte in bestimmten Zeiten laden.:

      Die nächste Aufladung erfolgt nächsten Donnerstag bei diesem Vergleich:

      Oder Freitag? Weil 5. Tag kommt erst am Freitag, wenn es von heute Mitternacht mit Zählen anfängt?

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

        @andre1de sagte: wenn es von heute Mitternacht mit Zählen anfängt?

        Heute ist der Rest 1. Bezugsdatum ist nicht heute, sondern der 1.1.1970. Wenn erst am nächsten Freitag geladen werden soll, vergleiche mit 1.

        Blockly_temp.JPG

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

          @paul53
          Ach so, alles klar! Ich habe das Skript gerade gestartet – wenn ich alles richtig gemacht habe, sollte die Ladung am Donnerstag beginnen. Ich bin gespannt!

          Vielen lieben Dank erstmal! Allein wäre ich nie auf die Lösung gekommen.
          Jetzt brauche ich sogar keinen zusätzlichen Adapter mehr (operating-hours).

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

            @andre1de sagte: wenn ich alles richtig gemacht habe

            Bitte zeigen!

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

              @paul53 said in Geräte in bestimmten Zeiten laden.:

              Bitte zeigen!

              c887f496-1d41-45bd-afae-62bed6b7bc56-image.png

              02271039-1938-4303-9ff7-44f1b7df8add-image.png

              paul53 2 Replies Last reply Reply Quote 0
              • paul53
                paul53 @andre1de last edited by paul53

                @andre1de
                Der untere Teil innerhalb der Funktion passt nicht. Richtig:

                Blockly_temp.JPG

                Das "sonst" gehört zur Prüfung mit den vielen "und".

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

                  @paul53 Danke!
                  00c6dba7-383d-4aef-912e-c546c0d90ea4-image.png

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

                    @andre1de
                    Ein "Vereinfachung" auf einen DP besser so:

                    Blockly_temp.JPG

                    Ein Vergleich mit "wahr" ist sinnlos, da das Ergebnis eines jeden Vergleichs true oder false ist.

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

                      @paul53 So? Hab`s probiert, es funktioniert. 🙂
                      1.JPG

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

                        @andre1de
                        Um unnötiges Senden zu vermeiden, ergänze unten in der Funktion noch eine Prüfung:
                        falls Sollzustand != Istzustand

                        Blockly_temp.JPG

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

                          @paul53
                          Ok. Zugefügt:
                          Bildschirmfoto_28-7-2025_222749_192.168.178.30.jpeg

                          andre1de 1 Reply Last reply Reply Quote 0
                          • andre1de
                            andre1de @andre1de last edited by

                            @andre1de Das Aufladen wurde heute morgen ordentlich um 07:15 gestartet. Bei "keiner zuhause" wird das Laden angehalten und dann fortgesetzt, wenn jemand wieder zuhause ist.
                            Mal schauen, ob es abends angehalten wird, wenn 6 Stunden Aufladen abgelaufen sind. Aber erst funktioniert.

                            andre1de 1 Reply Last reply Reply Quote 0
                            • andre1de
                              andre1de @andre1de last edited by

                              Es hat alles einwandfrei funktioniert!
                              Danke noch einmal!

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

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              472
                              Online

                              32.0k
                              Users

                              80.4k
                              Topics

                              1.3m
                              Posts

                              3
                              33
                              479
                              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