Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Neustart eines ShellyTRV per Blockly

    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

    Neustart eines ShellyTRV per Blockly

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

      Ich habe das Problem das meine beiden Shelly TRV sich immer wieder aufhängen. Ich weiß inzwischen dass das wohl immer wieder mal passieren kann und recht häufig vorkommt. Als Abhilfe kann man den TRV über die API neu starten, was wirklich fehlerfrei funktioniert.

      Jetzt möchte ich gerne ein Mal pro Woche die Shelly per Blockly neu starten. Ich habe dazu folgendes Script erstellt:

      5c7b2a8c-f6a1-4397-8ffd-59ee86f13ae0-image.png

      22:06:54.425	info	javascript.0 (1295) script.js.common.ShellyTRV_Reboot: registered 0 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
      22:07:00.006	info	javascript.0 (1295) script.js.common.ShellyTRV_Reboot: request: http://192.168.199.81/reboot
      22:07:01.415	info	javascript.0 (1295) script.js.common.ShellyTRV_Reboot: <html> <head><title>lwIP - A Lightweight TCP/IP Stack</title></head> <body bgcolor="white" text="black"> <h1> <center>401 Unauthorized</center> </h1> </body> </html>
      

      Das Script scheint auch zu funktionieren, jedoch bekomme ich eine Fehlermeldung, anscheinend erwartet der Shelly eine Authentifizierung. Weiß jemand wie ich das lösen kann ohne die Authentifizierung im Shelly zu deaktivieren?

      Fabio 1 Reply Last reply Reply Quote 0
      • Fabio
        Fabio @funcarv3r last edited by

        @funcarv3r du musst in der URL den Nutzername und das Passwort mit übergeben.
        http://nutzername:passwort@192.168.199.81/reboot

        Grüße Fabio

        F 1 Reply Last reply Reply Quote 0
        • F
          funcarv3r @Fabio last edited by

          @fa-bio
          Funktioniert leider nicht, Fehlermeldung ist die Gleiche

          javascript.0 (1295) script.js.common.ShellyTRV_Reboot: <html> <head><title>lwIP - A Lightweight TCP/IP Stack</title></head> <body bgcolor="white" text="black"> <h1> <center>401 Unauthorized</center> </h1> </body> </html>
          
          Fabio 1 Reply Last reply Reply Quote 0
          • Fabio
            Fabio @funcarv3r last edited by

            @funcarv3r prüfe noch mal dein Passwort oder Nutzername.

            F 1 Reply Last reply Reply Quote 0
            • F
              funcarv3r @Fabio last edited by

              @fa-bio
              Username und Password sind definitiv richtig, aber kann es sein das die DeviceID <realm> mit in den Link eingefügt werden muss?

              Welche Daten müssen da rein? Die ID die im Shelle steht funktioniert nicht.

              Fabio 1 Reply Last reply Reply Quote 0
              • Fabio
                Fabio @funcarv3r last edited by Fabio

                @funcarv3r das ist mir nicht bekannt das das rein muss. Es sollte echt funktionieren. Sag mal hast du die URL mal in einem Browser getestet ob das geht? Schau auch mal hier rein https://shelly-api-docs.shelly.cloud/gen1/#shelly-trv
                und versuche mal den Request ohne Ergebnis und ohne Debug auszuführen und dabei auch mal in der Shelly Oberfläche schauen ob er rebootet.

                F 1 Reply Last reply Reply Quote 0
                • F
                  funcarv3r @Fabio last edited by

                  @fa-bio

                  wenn ich die url im Browser ohne Username:Password eintrage funktioniert es, wenn ich es Mit im Browser öffnen will kommt die Abfrage nach Username und Password

                  Fabio 1 Reply Last reply Reply Quote 0
                  • Fabio
                    Fabio @funcarv3r last edited by Fabio

                    @funcarv3r keine Ahnung. Wie kann das ohne Passwort funktionieren wenn du Passwort im TRV hinterlegt hast? Verstehe ich nicht. Sonst frag mal im Shelly Forum.
                    Grüße
                    Fabio

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

                      @funcarv3r sagte in Neustart eines ShellyTRV per Blockly:

                      Ich habe das Problem das meine beiden Shelly TRV sich immer wieder aufhängen.

                      …da du ja noch per HTTP rankommst, haben sich die TRVs ja nicht wirklich aufgehängt. Tatsächlich scheint es aber eine Art „Degradation“ zu geben, bei der dann über die API korruptes JSON zurückkommt. Aber der Shelly-Adapter funktioniert noch soweit, dass man das Ding über den DP ‚Reboot‘ noch neu starten kann. Wäre vielleicht auch bei dir die einfachste Lösung…
                      Ich habe allerdings auch schon den Effekt gehabt, dass der TRV komplett aus dem Wlan fliegt, dann geht natürlich nichts mehr ausser Reset am TRV… 😕

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

                      Support us

                      ioBroker
                      Community Adapters
                      Donate
                      FAQ Cloud / IOT
                      HowTo: Node.js-Update
                      HowTo: Backup/Restore
                      Downloads
                      BLOG

                      946
                      Online

                      31.9k
                      Users

                      80.2k
                      Topics

                      1.3m
                      Posts

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