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

    #31
    Ja auf der Miele 3rd party API Homepage sehe ich den auch....aber nicht im GLE mit dem LBS.
    Oder übersehe ich etwas ?

    Kommentar


      #32
      Nee, jetzt bin ich bei Dir.... Manchmal dauert es etwas! Das scheint wirklich nicht implementiert zu sein.

      Kommentar


        #33
        Gibt es denn im HS die Möglichkeit ein JSON - Befehl auszulesen ? Hat Gira da eine Funktion ?
        Oder gibt es eine andere Möglichkeit den Wert zu bekommen ?

        Kommentar


          #34
          Ja geht auf mehreren Wegen, über die Websiteabfrage und es gibt auch im Downloadbereich einen JSON Parser

          Kommentar


            #35
            Websitenabfrage wird sicher schwierig, da man sicher ein Token oder ähnlichs für die Authentifizierung benötigt.

            Kommentar


              #36
              Wenn ich es richtig verstehe, zerlegt der JSON Parser den Text und man bekommt di benötigten Info´s raus.
              In meinem Fall bezgl. Restzeit, wird diese ja gar nich an den Baustein vor Roeller übertragen.....somit bekomme ich die Restzeit nicht auf den BUS.

              Kommentar


                #37
                Hi, the Remaining Time should be at Output-5 (State), when you trigger it with Get_State (Input 11).

                As I see in your screenshot, the JSON is not ended with } which means you are not seeing all.. Can you write it to a Log archive or something Or maybe it doesn't show Line breaks or ony the first 60 characters.. ?

                On output4 (ident info) I also see the device name being Cut-off, it shows: "value_localized":"Tr

                Zuletzt geändert von Roeller; 04.07.2022, 22:22.

                Kommentar


                  #38
                  Hello Roeller,

                  i can write a log on the API side from Miele in the format "json" .
                  Is this helpful for you ?
                  Or which log-file do you mean ?

                  Regards
                  Florian

                  Kommentar


                    #39
                    Ich komme hier einfach nicht weiter .
                    Kann mir jemand hier noch ein Tip geben wie ich es lösen könnte ?

                    Kommentar


                      #40
                      Zitat von Rennradflo Beitrag anzeigen
                      Hello Roeller,

                      i can write a log on the API side from Miele in the format "json" .
                      Is this helpful for you ?
                      Or which log-file do you mean ?

                      Regards
                      Florian
                      You can enable DEBUG mode and then check the debug page of the HS. I don't know what you mean with 'write a log on the API side from Miele'.
                      Did you tried the latest version v1.4 ?

                      Kommentar


                        #41
                        Yes i have your newest version 1.4 in usage.
                        Which entry/rubric do you need from the hslist debug side to check ?

                        Kommentar


                          #42
                          Hi Roller,
                          first of all: Thanks for your great stuff!

                          I integrated the Miele logic 1.4 in my project, works fine in the end.
                          I figured out, that authorization in the HS just started working, after some request via the Miele 3rd Party developed website.

                          Furthermore, the json parser logic node (11087) seems to be buggy, when trying to get a certain value, stored in an array, like the "remainingTime". I downloaded the project from github and wil, try to fix it.

                          Kommentar


                            #43
                            Hi Schneidexe good to hear you are using it!

                            I figured out, that authorization in the HS just started working, after some request via the Miele 3rd Party developed website.
                            Did you see my video? (i know it's long) but I thought somewhere I mention that you have to go to the Miele developer website and login, and only the FIRST time of login/authenticate you have to AGREE to some rules.. once that is done.. it should work. Maybe I should mention that in the readme.

                            After contacting Miele, they told me that when you request a new API key.. the old one doesn't work anymore.. so that is also something to remember.

                            About the JSON logic. Maybe it's easier to get a simple text/search/replace logic and search only for the stuff you want? I am not sure if there is already a regex logic? Otherwise.. if you have anything in mind.. let me know.

                            Kommentar


                              #44
                              Hi Roeller,
                              sorry, I didn't watch your Video ;-)

                              Maybe for single values a simple text search is easier, but I wanted to mess around with json, because I never did before. I found the bug in the json parser logic, fixed it for me and reported a bug on GitHub. The "Array Index" is not evaluated because of a typo.
                              Now everything works fine.

                              I would like to build a logic node for my Miele washing machine, which evaluates the json from your logic node and directly returns several information.

                              Kommentar


                                #45
                                Hello Roeller et al.
                                ,
                                really good job.
                                In the end I got all the little problems under control, except for one that actually has nothing to do with your LBS, but maybe someone can give me a practical tip. I only use the LBS for visualization at first. For this I process the A5 state info with several of the JSON parsers (LBS 11087 V1.3 from the download area) both cascaded for the different values and cascaded for sub-values.
                                That also works great. The only problem that I can't solve: If there are German umlauts in the JSON structure (e.g. "beer glasses" or "device care"), the JSON parser exits.
                                Do you replace the umlauts at A5 State Info with another component beforehand, or does it all work for you. Or how do you solve that?

                                Regards
                                Mike​

                                Kommentar

                                Lädt...
                                X