Ankündigung

Einklappen
Keine Ankündigung bisher.

Miele@Home LBS for Homeserver (14360)

Einklappen
Dieser Beitrag wurde beantwortet.
X
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #61
    Also ab Zugriffstokens intern gespeichert werden, sieht man dem Baustein von außen nicht an.
    Könnte aber gut sein, dass das das Problem ist. Hatte aus versehen eine zyklisch Statusabfrage sowohl auf dem Geschirrspüler, als auch auf der neuen Kaffeemaschine, die ich mit 60 Sekunden Zykluszeit vorbelegt hatte. Da kommt schon was zusammen...

    Muss man da einfach nur ein paar Tage abwarten, oder ist die ClientID nun "verbrannte Erde"?

    LG
    Mike

    Kommentar


      #62
      Denke abwarten oder mal hinschreiben.

      Kleiner Tipp, den ich gerade noch gemerkt habe: Wenn man eine 0 auf einen GET-Eingang schreibt, dann fragt er auch ab. Also ein Trigger, egal was kommt. Dachte auch erst, der triggert nur bei ner 1. Hab daher auch noch n Filter gesetzt.

      Ich mache es am Stromverbrauch: Ist dieser >8w bei meiner WaMa, dann frage ich alle 15s, sonst nur alle 5m.

      (Der JSON-Parser macht bei mir aber auch Schwierigkeiten. Nicht nur die Sonderzeichen, auch staut sich wegen der Verkettung die Outputs. Meine Output-Queue läuft voll. Hab erstmal die Frequenz von der Miele-Abfrage auf die obrigen Werte verringert, schaue mir das aber mal an. - Kann auch an dem fehlenden Filter oben gelegen haben.)

      Vorteil: Konnte ein paar Plugins von mir optimieren :-)
      Zuletzt geändert von SvenB; 25.03.2023, 20:57.

      Kommentar


        #63
        Ich habe das aber richtig verstanden, dass ich der einzige bin der bei ehemals funktionierenden Login-Parametern (Client-ID, Client-Secret, UserID, Password) nun die Meldung "Unauthorized, probably Security Token expired. It will automatically renew next time." bekommt?

        Anscheinend gibt es bei Miele für die API keine telefonische Hotline und ich finde auch keine Support-Mailadresse.

        LG
        Mike

        Kommentar


          #64
          Hi guys, I am sorry I was not following this thread last weeks.

          To clearify a few things:
          • For some ports it doesn't matter if you trigger the ports with a zero or a one. Example: It will do the get_status action if triggered by a 0 as well as a 1. I thought this was handy. If it isn't, let me know and I will review it.
          • Rate limiting: I did many...many... testing and NEVER say any rate limiting in action. I have red the Documentation which says there is rate limiting in the API and a 503 error is displayed in that case, however, I never saw it.. I am also frequently checking several states, but didn't saw it. So for now, changes are very...very. small you hit that limit.
          • The "Unauthorized, probably Security Token expired. It will automatically renew next time." is not something bad. It always does this, especially the first time. This is because you login with a Client_ID and a Client_Secret, THEN Miele will give you a token with a time limit. That's what we call the 'Security Token'. When that token is expired, it's no problem, the LBS will login with the Client_ID and Client_Secret and request a new Security Token first. All requests/actions are done with this Security Token.. until it times out again... then a new one will be automatically requested. It's actually a bit more complex because there is a Security Token and a Refresh Token but I won't bother you with the details
          • There is a problem for most people with the UTF8 text/json output. This problem is especially arising when you have device names with umlauts or other (german, Dutch or French) characters in it. When you keep device names simple like 'Coffee Machine' or 'Washing Machine', it will be okay. Maybe there are a few German status texts with characters, I am not sure about that.
            The problem is that the Miele API (and also the Miele LBS) is doing all it's work in UTF-8, which is right in my opinion. But when you output this UTF-8 text/json to an LBS which doesn't understand UTF-8 but only ASCI, things will mess up. As far as I know, the JSON Parser building blocks do not correctly handle UTF-8.

          Kommentar


            #65
            Hello Roeller,
            Thank you for your detailed description. In the meantime I had contacted Miele Support for miele@home. They didn't find the error in the log files either. In addition to the error text "Unauthorized, probably Security Token expired. It will automatically renew next time." get no status output or any other output at all. But now a few days after contacting the Miele Support my logic is working again without having changed anything. Seems to be magic...
            ...or Miele changed something in my login account or fixed a bug.
            In any case, I'm happy that everything is working fine for me now.

            Regarding the JSON parser, I have a beta version from the programmer ("En3rGy"), that can handle UTF-8. I just tested it because the Miele logic works for me for now and it looks pretty good. The HS web browser debugger still contains control characters, but the correct German 'Umlaute' are correctly outputted on a visualization page.

            Best regards
            Mike​

            Kommentar


              #66
              Hi Roeller,
              I have a similar problem with the Miele Logic. From time to time (every few weeks) my setQueue decreases and every action happens delayed (for several minutes).
              I noticed this:

              image.png
              As you can see the error occured 4 times, since the last restart. Last restart ist 51 days ago.​
              It seems to me, that the Miele URL ist not reachable at this moment and because of this the Logic stucks. Because of this, the complete HomeServer process is delayed.
              Maybe I'm totally wrong with that, but can you modify the Logic Node in a way, that it does not stuck, when there are Problems with the Miele server?

              Kommentar


                #67
                Zitat von Schneidexe Beitrag anzeigen
                Hi Roeller,
                I have a similar problem with the Miele Logic. From time to time (every few weeks) my setQueue decreases and every action happens delayed (for several minutes).
                I noticed this:

                image.png
                As you can see the error occured 4 times, since the last restart. Last restart ist 51 days ago.​
                It seems to me, that the Miele URL ist not reachable at this moment and because of this the Logic stucks. Because of this, the complete HomeServer process is delayed.
                Maybe I'm totally wrong with that, but can you modify the Logic Node in a way, that it does not stuck, when there are Problems with the Miele server?
                Hello, same observation for me today. Miele had a severe issue on their cloud service today. Even the Miele app didn't function properly. My HS was almost frozen in operation and after a reboot it was taking forever to get into responsive state.
                Only after removing all the instances of the LBS I could get it responsive again.

                Kommentar


                  #68
                  hallo, ich habe vor ein paar Tagen diese Mail bekommen, vielleicht ist das ja relevant:
                  Technische Information
                  Miele App
                  Sehr geehrte Miele-Kundin, geehrter Miele-Kunde,
                  am 14.06.2023 werden Sie automatisch aus der Miele App ausgeloggt. Grund dafür ist ein technisches Update der Authentifizierung.
                  Damit Sie sich nach diesem Update wieder problemlos einloggen können, empfehlen wir Ihnen Folgendes:
                  • Aktualisieren Sie Ihre App auf die neueste Version. Dieser Schritt wird normalerweise automatisch durchgeführt und ist nur notwendig, wenn Sie die automatischen Updates deaktiviert haben. In diesem Fall können Sie die App über den App Store aktualisieren.
                  • Halten Sie Ihre Zugangsdaten bereit. Sie haben Ihr Passwort vergessen? Dann können Sie über die Miele-App ein neues Passwort anfordern.
                  Mit freundlichen Grüßen
                  Ihr Miele-App-Team

                  Kommentar


                    #69
                    Hallo,
                    ich war zwei Wochen weg, und habe eben festgestellt, das der Baustein bei mir keine Daten mehr empfängt. Das kann tatsächlich auf ein Problem mit einer Umstellung der API bez. des Anmeldeprozesses zu tun haben. Handy-App geht noch, aber die wurde glaube ich auch aktualisiert?

                    Kommentar


                      #70
                      Hallo zusammen,

                      habe anscheinden das selbe Problem wie im Beitrag #67.
                      Am 16.06.2023 war mein Homeserver auch eingefroren da konnte ich das Problem noch nicht lokalisieren.
                      Heute meldet Miele Wartungsarbeiten am Cloud Dienst (bis 18 Uhr) und wieder ist mein Homeserver wie eingefroren.

                      Gibt es da ein Bug im Baustein? Aktuell kann ich nichtmal den GLE aufrufen um einen Fehler zu lokalisieren.

                      Gruss David


                      Zur Info: HS funktionierte Ab ca. 18 Uhr wieder normal und der Miele cloud Dienst auch!
                      Zuletzt geändert von Kloppenberger; 15.07.2023, 08:34.

                      Kommentar


                        #71
                        Mein HS hing gestern auch. Aber weil die setQueue vollgelaufen ist, haben alle Bausteine Fehler geworfen und ich sehe nix vom Miele-Baustein. Aber passt zeitlich.

                        Hab mal in den Baustein reingeguckt. Ist aber scheinbar basierend auf der Technik von Nils entstanden. Weiß nicht, wie sich der Baustein verhält, wenn eine Methode "False" zurückgibt und danach es direkt via HSL1 auf nen Ausgang gesetzt wird. (Aber hab wenig Plan davon, kann auch sein, dass False immer verworfen wird).
                        Zuletzt geändert von SvenB; 15.07.2023, 08:07.

                        Kommentar


                          #72
                          MikeR, SvenB , Kloppenberger , walterweber, dany, Schneidexe
                          Miele recently had an maintenance window and some accounts were logged out.

                          I have just uploaded my newly developed version 1.5 which fixes several issues; like when the Miele API does not respond, when your internet connection has a hickup or multiple calls are done at once. This could all lead to a slow/hanging Homeserver which should be fixed now
                          . I also added the Miele robot vaccuum cleaner options (like Miele Scout RX1, RX2 and RX3) to it.

                          Changelog:

                          v1.5 21-07-2023 - Miele_14360_v1.5.zip
                          • Set timeout to 5 seconds to the Miele API, so the Homeserver will not become slow/overloaded/queued.
                          • Close all connections as to Miele API as soon as possible to keep memory free.
                          • Added vacuum cleaner options: Get Rooms and Set Map ID/Room ID to start cleaning in a specific room.
                          • Updated to be Python v3 compatible (for any future HS updates).
                          Zuletzt geändert von Roeller; 23.07.2023, 11:51.

                          Kommentar


                            #73
                            Hi Roeller,

                            the new version 1.5 fixed the problems i had. Now the Logic connects to the Miele Server, login worked and so on! Perfect!

                            Thank you very much
                            Mike

                            Kommentar


                              #74
                              Hi Roeller,

                              Using latest version of the building block. Worked for couple of weeks. Now it's failing with this error.

                              2024_06_03_15_21_13_192.168.0.240_hslist_SYSLOG_and_28_more_pages_Work_Microsoft_Edge.jpg

                              Any idea what the problem could be?

                              Kommentar


                                #75
                                Zitat von charlez Beitrag anzeigen
                                Hi Roeller,

                                Using latest version of the building block. Worked for couple of weeks. Now it's failing with this error.

                                2024_06_03_15_21_13_192.168.0.240_hslist_SYSLOG_and_28_more_pages_Work_Microsoft_Edge.jpg

                                Any idea what the problem could be?
                                Hi charlez, so you are doing a power on/off of a device and then you get this "The read operation timed out" error. Could it be the Miele being down or an internet connectivity problem? According to https://www.miele.com/developer/news.html , nothing has changed on the Miele API after 05 July 2023. So the behavior should have be the same. Their SSL certificate is between 4 january 2024 - 5 january 2025. So its not that they changed the certificate or something..

                                Tried other internet connection or possibility to check from another location?

                                Kommentar

                                Lädt...
                                X