Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Homematic Plug mit Script schalten

    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

    Homematic Plug mit Script schalten

    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      G4l4h4d @Homoran last edited by

      @Homoran sagte in Homematic Plug mit Script schalten:

      ann bitte die Zeit auf dem Server prüfen

      Wie prüfe ich denn die Zeit auf dem Server?

      Homoran paul53 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @G4l4h4d last edited by Homoran

        @G4l4h4d date

        da sollte dann nicht das herauskommen Fri 23 Oct 12:51:40 BST 2020

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

          @G4l4h4d sagte:

          Wie prüfe ich denn die Zeit auf dem Server?

          Per Script mit

          log(formatDate(new Date(), "hh:mm"));
          
          G 1 Reply Last reply Reply Quote 0
          • G
            G4l4h4d @paul53 last edited by

            @paul53 @Homoran ich glaube es liegt an der Zeit. Auf meinem Proxmox Server ist eine ganz andere Zeitzone angegeben.
            Ich schaue nachher wie ich diese aktualisieren kann.

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

              @G4l4h4d sagte in Homematic Plug mit Script schalten:

              wie ich diese aktualisieren kann.

              sudo dpkg-reconfigure tzdata

              G 1 Reply Last reply Reply Quote 1
              • G
                G4l4h4d @Homoran last edited by

                @Homoran @paul53 danke euch beiden für die Hilfe.
                Mit diesem Script und dem Plug von Philips habe ich es hinbekommen.

                schedule({hour: 17, minute: 33}, function () 
                { setState("hue.0.Hue_Smart_plug_1.on",false); });
                
                on("fullybrowser.0.192_168_178_34.Info.batteryLevel", function (dp) {
                   if(dp.state.val < 98 && !getState("hue.0.Hue_Smart_plug_1.on").val) { 
                      setState("hue.0.Hue_Smart_plug_1.on", true);
                   }
                });
                
                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @G4l4h4d last edited by

                  @G4l4h4d sagte in Homematic Plug mit Script schalten:

                  und dem Plug von Philips

                  mit HmIP nicht?

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    G4l4h4d @Homoran last edited by

                    @Homoran
                    doch der HMPI Plug funktioniert jetzt auch. Gerade probiert. Lag wohl doch daran das ich auf dem Server eine falsche Zeitangabe hatte.

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

                      @G4l4h4d sagte in Homematic Plug mit Script schalten:

                      Lag wohl doch daran das ich auf dem Server eine falsche Zeitangabe hatte.

                      für das zeitgesteuerte schalten und für das Ladungsgesteuerte hast du die <30 nicht angepasst 😉

                      und schon war die arme Steckdose schuld 😢

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        G4l4h4d @Homoran last edited by

                        @Homoran
                        hab es mittlerweile angepasst, aber Danke 👍
                        Einer ist immer der Schuldige 😊 aber zum Glück gibt es euch ja👍

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        878
                        Online

                        31.8k
                        Users

                        80.0k
                        Topics

                        1.3m
                        Posts

                        3
                        20
                        762
                        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