Ankündigung

Einklappen
Keine Ankündigung bisher.

Indego Connect

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Haiphong
    antwortet
    Servus Andre,

    nur als Frage - ohne zu nerven - hast Du an dem Plugin bzgl. Single-Key-Identifikation eine Lösung die bei Dir schon läuft??

    Gruß, Jochen

    Einen Kommentar schreiben:


  • AndreK
    antwortet
    Hallo wvhn,

    danke für den Hinweis. Das Indego-Plugin ist aktuell "out of order" da die Single-Key-Identifikation geändert wurde. Hier arbeite ich an einer Lösung (hab ich auch - muss nur im Plugin/Web-IF) eingebaut werden. Sollte zur kommenden Saison auch klappen.
    In diesem Zug werde ich die HTML-Seite dann auch überarbeiten.

    Das "alte" Indego-Plugin kann aus meiner Sicht "ausglistetet" werden. Grundsätzlich würde es noch funktionieren - die API ist die gleiche.

    Auch der Author ( Marcov ) des "alten" Plugins wollte auf die neue Version im Zuge eines shNG-Updates umsteigen.

    Viele Grüße
    Andre

    Einen Kommentar schreiben:


  • wvhn
    antwortet
    AndreK Hallo Andre,

    ich habe im develop branch des Plugins einen PR, der die smartVISU-Widgets anpasst. Es werden unnötige Imports entfernt und die übrigen auf die Namespace-Methode umgestellt (siehe hier). Kannst Du das bei Gelegenheit einmal testen?

    Bei dem alten Indego-Plugin habe ich nichts gemacht, weil da die verwendeten Widgets überwiegend nicht mehr existieren. Zumindest die html-Seite sollte man IMHO mal löschen.

    Danke und Gruß
    Wolfram

    Einen Kommentar schreiben:


  • Haiphong
    antwortet
    Andre​ danke....,

    wenn ich was beitragen kann, sag was.

    Raspi, neu starten oder Browser Cache löschen bringt nix....

    Ablaufdatum Login sieht halt komisch aus:
    indego.jpg

    Einen Kommentar schreiben:


  • AndreK
    antwortet
    Hi Haiphong,

    bei mir läuft das Plugin mit Token-Refresh noch. Ein neues Login ist aktuell nicht möglich. Es wurde wohl etwas am Cookie-Handling verändert.
    Da muss ich mich auf die Suche machen. Das wird etwas länger dauern. Sobald es eine Lösung gibt gebe ich Bescheid.

    Viele Grüße
    Andre

    Einen Kommentar schreiben:


  • Haiphong
    antwortet
    Moin Andre,
    eigentlich wollte ich schon die ganze Zeit schreiben, daß Dein Plugin super läuft ......

    Aber jetzt seit dem 10.07 - warum auch immer - läuft nix mehr.
    Der Login bei Bosch ist abgelaufen ( neu berechnen bringt nix )

    Am 19-06 hat Bosch ein Update auf den Indego gesendet.
    Die bisherige Android App mußte ich auch aktualisieren.

    Hast Du eventuell eine Idee ??
    Code:
    2023-07-13 17:31:19 Type: GET    Result : 302 Url : https://identity.bosch.com/login?signin=9a6456665d7147348897ad628fa59413
    2023-07-13 17:31:19 Type: GET    Result : 404 Url : https://identity.bosch.com/connect/authorize?prompt=login&client_id=ciamids_12E7F9D5-613D-444A-ACD3-838E4D974396&redirect_uri=https%3a%2f%2fprodindego.b2clogin.com%2fprodindego.onmicrosoft.com%2foauth2%2fauthresp&response_type=code&scope=openid+profile+email&response_mode=form_post&nonce=aq6ecQbLQFfiFx4w246m3g%3d%3d&state=StateProperties%3deyJTSUQiOiJ4LW1zLWNwaW0tcmM6NzE5OGY2ZTUtOTIyZi00MjJjLThhNDMtZTQ5Zjg3NjZkMjIxIiwiVElEIjoiMmM3OTg4NzYtZGIwOS00NTc4LWIyOGEtMWQ4NmM1OWJjZjBmIiwiVE9JRCI6ImI4MTEzNjgxLWFlZjQtNDc0Yi05YmEyLTI1Mjk0Y2FhNDhmYyJ9
    2023-07-13 17:31:10 Type: GET    Result : 302 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/B2C_1A_signup_signin/api/CombinedSigninAndSignup/unified
    2023-07-13 17:31:10 Type: POST   Result : 200 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/B2C_1A_signup_signin/client/perftrace?tx=StateProperties=eyJUSUQiOiIyYzc5ODg3Ni1kYjA5LTQ1NzgtYjI4YS0xZDg2YzU5YmNmMGYifQ&p=B2C_1A_signup_signin
    2023-07-13 17:31:09 Type: GET    Result : 200 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/b2c_1a_signup_signin/oauth2/v2.0/authorize?redirect_uri=com.bosch.indegoconnect%3A%2F%2Flogin&client_id=65bb8c9d-1070-4fb4-aa95-853618acc876&response_type=code&state=j1A8L2zQMbolEja6yqbj4w&nonce=LtRKgCy_l1abdbKPuf5vhA&scope=openid%20profile%20email%20offline_access%20https%3A%2F%2Fprodindego.onmicrosoft.com%2Findego-mobile-api%2FIndego.Mower.User&code_challenge=iGz3HXMCebCh65NomBE5BbfSTBWE40xLew2JeSrDrF4&code_challenge_method=S256
    2023-07-13 12:03:53 Type: GET    Result : 302 Url : https://identity.bosch.com/login?signin=8602ded3001ae683ea7e482de0c019ef
    2023-07-13 12:03:53 Type: GET    Result : 404 Url : https://identity.bosch.com/connect/authorize?prompt=login&client_id=ciamids_12E7F9D5-613D-444A-ACD3-838E4D974396&redirect_uri=https%3a%2f%2fprodindego.b2clogin.com%2fprodindego.onmicrosoft.com%2foauth2%2fauthresp&response_type=code&scope=openid+profile+email&response_mode=form_post&nonce=8YsxBllauoNms9de1LNXLA%3d%3d&state=StateProperties%3deyJTSUQiOiJ4LW1zLWNwaW0tcmM6Nzg4NDBkMDUtNzJkOS00YzdmLWFmNmEtYjYyY2U3ZjM2ZmM4IiwiVElEIjoiMDJhOTE0M2ItNjEwOC00ODM5LTk1NjYtODY2MWFiODNlNzRkIiwiVE9JRCI6ImI4MTEzNjgxLWFlZjQtNDc0Yi05YmEyLTI1Mjk0Y2FhNDhmYyJ9
    2023-07-13 12:03:52 Type: GET    Result : 302 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/B2C_1A_signup_signin/api/CombinedSigninAndSignup/unified
    2023-07-13 12:03:52 Type: POST   Result : 200 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/B2C_1A_signup_signin/client/perftrace?tx=StateProperties=eyJUSUQiOiIwMmE5MTQzYi02MTA4LTQ4MzktOTU2Ni04NjYxYWI4M2U3NGQifQ&p=B2C_1A_signup_signin
    2023-07-13 12:03:52 Type: GET    Result : 200 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/b2c_1a_signup_signin/oauth2/v2.0/authorize?redirect_uri=com.bosch.indegoconnect%3A%2F%2Flogin&client_id=65bb8c9d-1070-4fb4-aa95-853618acc876&response_type=code&state=j1A8L2zQMbolEja6yqbj4w&nonce=LtRKgCy_l1abdbKPuf5vhA&scope=openid%20profile%20email%20offline_access%20https%3A%2F%2Fprodindego.onmicrosoft.com%2Findego-mobile-api%2FIndego.Mower.User&code_challenge=iGz3HXMCebCh65NomBE5BbfSTBWE40xLew2JeSrDrF4&code_challenge_method=S256
    2023-07-13 11:45:07 Type: GET    Result : 302 Url : https://identity.bosch.com/login?signin=c284abe86249ff2eba34f15e073b1a9e
    2023-07-13 11:45:07 Type: GET    Result : 404 Url : https://identity.bosch.com/connect/authorize?prompt=login&client_id=ciamids_12E7F9D5-613D-444A-ACD3-838E4D974396&redirect_uri=https%3a%2f%2fprodindego.b2clogin.com%2fprodindego.onmicrosoft.com%2foauth2%2fauthresp&response_type=code&scope=openid+profile+email&response_mode=form_post&nonce=L6Bed06MGqmkpoxQpYVFCA%3d%3d&state=StateProperties%3deyJTSUQiOiJ4LW1zLWNwaW0tcmM6OWQ5NGMzMGEtN2MxMS00NDIzLThmMzQtMzgxNzIwZGNmZTQ0IiwiVElEIjoiMDYyOGE5N2MtNDg1YS00ZTNiLTljNzMtZjRmZTEzZGRlNzI3IiwiVE9JRCI6ImI4MTEzNjgxLWFlZjQtNDc0Yi05YmEyLTI1Mjk0Y2FhNDhmYyJ9
    2023-07-13 11:45:02 Type: GET    Result : 302 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/B2C_1A_signup_signin/api/CombinedSigninAndSignup/unified
    2023-07-13 11:45:01 Type: POST   Result : 200 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/B2C_1A_signup_signin/client/perftrace?tx=StateProperties=eyJUSUQiOiIwNjI4YTk3Yy00ODVhLTRlM2ItOWM3My1mNGZlMTNkZGU3MjcifQ&p=B2C_1A_signup_signin
    2023-07-13 11:45:01 Type: GET    Result : 200 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/b2c_1a_signup_signin/oauth2/v2.0/authorize?redirect_uri=com.bosch.indegoconnect%3A%2F%2Flogin&client_id=65bb8c9d-1070-4fb4-aa95-853618acc876&response_type=code&state=j1A8L2zQMbolEja6yqbj4w&nonce=LtRKgCy_l1abdbKPuf5vhA&scope=openid%20profile%20email%20offline_access%20https%3A%2F%2Fprodindego.onmicrosoft.com%2Findego-mobile-api%2FIndego.Mower.User&code_challenge=iGz3HXMCebCh65NomBE5BbfSTBWE40xLew2JeSrDrF4&code_challenge_method=S256
    2023-07-12 19:22:01 Type: GET    Result : 302 Url : https://identity.bosch.com/login?signin=5d61fa8e5e8e70ca3f3a9eaa3001da1b​
    Zuletzt geändert von Haiphong; 14.07.2023, 11:04.

    Einen Kommentar schreiben:


  • AndreK
    antwortet
    Hallo Haiphong,

    Du hast in der /etc/plugin.yaml noch den alten Endpunkt stehen :
    Zitat von Haiphong Beitrag anzeigen
    https://api.indego.iot.bosch-si.com/api/v1
    korrekt ist dieser :
    Zitat von Haiphong Beitrag anzeigen
    https://api.indego-cloud.iot.bosch-si.com/api/v1
    Dann sollte das schon besser werden

    VG Andre

    Einen Kommentar schreiben:


  • Haiphong
    antwortet
    Ja, im Log steht ein Fehler "Max retries exceeded with url"

    Muß vermutlich noch etwas warten ....

    Code:
    2023-05-07  18:06:31 WARNING  plugins.indego4shng Problem fetching https://api.indego.iot.bosch-si.com/api/v1/alms/706603751/predictive/location: HTTPSConnectionPool(host='api.indego.iot.bosch-si.com', port=443): Max retries exceeded with url: /api/v1/alms/706603751/predictive/location (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0de688b0>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))
    2023-05-07  18:06:31 WARNING  plugins.indego4shng Problem fetching https://api.indego.iot.bosch-si.com/api/v1/alms/706603751/updates: HTTPSConnectionPool(host='api.indego.iot.bosch-si.com', port=443): Max retries exceeded with url: /api/v1/alms/706603751/updates (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0e6fd310>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))
    2023-05-07  18:06:31 WARNING  plugins.indego4shng Problem fetching https://api.indego.iot.bosch-si.com/api/v1/alms/706603751/automaticUpdate: HTTPSConnectionPool(host='api.indego.iot.bosch-si.com', port=443): Max retries exceeded with url: /api/v1/alms/706603751/automaticUpdate (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7eff743130>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))
    2023-05-07  18:06:31 WARNING  plugins.indego4shng Problem fetching https://api.indego.iot.bosch-si.com/api/v1/alms/706603751: HTTPSConnectionPool(host='api.indego.iot.bosch-si.com', port=443): Max retries exceeded with url: /api/v1/alms/706603751 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0e6a5370>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))
    2023-05-07  18:06:31 ERROR    plugins.indego4shng Device Data disconnected
    2023-05-07  18:06:37 WARNING  plugins.indego4shng Problem fetching https://api.indego.iot.bosch-si.com/api/v1/alms/706603751/state: HTTPSConnectionPool(host='api.indego.iot.bosch-si.com', port=443): Max retries exceeded with url: /api/v1/alms/706603751/state (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7efe681d90>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))
    ​
    Code:
    2023-05-07  18:07:07 WARNING  plugins.indego4shng Problem fetching https://api.indego.iot.bosch-si.com/api/v1/alms/706603751/state: HTTPSConnectionPool(host='api.indego.iot.bosch-si.com', port=443): Max retries exceeded with url: /api/v1/alms/706603751/state (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0e75ef10>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))
    2023-05-07  18:07:38 WARNING  plugins.indego4shng Problem fetching https://api.indego.iot.bosch-si.com/api/v1/alms/706603751/state: HTTPSConnectionPool(host='api.indego.iot.bosch-si.com', port=443): Max retries exceeded with url: /api/v1/alms/706603751/state (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7efe6a0040>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))
    ​
    Im Web-If steht:
    Code:
    2023-05-07 17:17:58 Type: POST   Result : 200 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/b2c_1a_signup_signin/oauth2/v2.0/token
    2023-05-07 17:15:56 Type: LOGIN  Result : 666 Url : Login to Sinlge-Key-ID successful done
    2023-05-07 17:15:56 Type: GET    Result : 200 Url : https://api.indego-cloud.iot.bosch-si.com/api/v1/alms
    2023-05-07 17:15:56 Type: POST   Result : 200 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/b2c_1a_signup_signin/oauth2/v2.0/token
    2023-05-07 17:15:55 Type: POST   Result : 302 Url : https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/oauth2/authresp
    2023-05-07 17:15:54 Type: POST   Result : 204 Url : https://identity.bosch.com/csp/report
    2023-05-07 17:15:54 Type: GET    Result : 200 Url : https://identity.bosch.com/connect/authorize?... ( gelöscht )
    2023-05-07 17:15:54 Type: GET    Result : 302 Url : https://identity.bosch.com/callback
    2023-05-07 17:15:54 Type: GET    Result : 302 Url : https://identity.bosch.com?
    2023-05-07 17:15:53 Type: POST   Result : 200 Url : https://singlekey-id.com/auth/api/v1/authentication/login
    2023-05-07 17:15:52 Type: POST   Result : 200 Url : https://singlekey-id.com/auth/api/v1/authentication/UserExists​
    Zuletzt geändert von Haiphong; 07.05.2023, 17:23.

    Einen Kommentar schreiben:


  • AndreK
    antwortet
    Hi Haiphong,

    eventuell kannst Du mal noch einen Blick ins Kommunikationsprotokoll vom Web-IF werfen. Dort wird angezeigt welche Daten gelesen werden.
    z.B. Wetter müsste aktuell sein. Falls nicht prüfe mal noch das smarthome-warnings.log. Eventuell habe ich eine Änderung übersehen mitzuteilen.

    Gruss Andre

    Einen Kommentar schreiben:


  • Haiphong
    antwortet
    Hallo Andre,

    Login läuft ....

    in der plugin.yaml war bereits alles lt. Beschreibung eingestellt
    Visu läuft noch nicht. ( Dateien hab ich lt. Beschreibung in die Verzeichnisse kopiert )
    Items sind auch - noch - nicht gefüllt...
    Übermittlung der der "location-data" an Bosch ergibt error
    Mal schauen wann er Daten von Bosch bekommt...

    Dank Dir
    image.png

    Einen Kommentar schreiben:


  • AndreK
    antwortet
    Hallo,

    das kann sein, ich hatte zuvor auf Bosch-ID umgestellt, die wurde ohne irgendein zutun auf Single-Key "upgegraded". Dadurch sind die Kontodaten
    wohl geblieben.

    Gruss Andre

    Einen Kommentar schreiben:


  • Haiphong
    antwortet
    Danke Andre,

    bei mir läuft - mit der alten / bisherigen - Anmeldung nix mehr. Weder Android-App noch Plugin...
    ( auch für die App mußte ich ein neues Konto anlegen. Gleicher User )

    Einen Kommentar schreiben:


  • AndreK
    antwortet
    Hallo Haiphong,

    der letzte Stand mit Single-Key-Id login lief jetzt 10 Tage ohne Probleme. Es ist ein PR gegen Develop gestellt. Wer bis zum Merge nicht warten möchte findet
    den letzten Stand auch hier.


    Bitte beachten : In der ./smarthome/etc/plugin.yaml muss der Eintrag für die URL aktualisiert werden, der Rest bleibt unverändert. (siehe Readme)
    Ab Version 4.0.0 wurde die Raum-Seite für den Indego (index.html) für die neuen Wetterdaten geändert.

    Viele Grüße
    Andre



    Einen Kommentar schreiben:


  • Haiphong
    antwortet
    Servus Andre,

    wenn Du einen neuen Stand hast, würde ich mich freuen .....

    Danke, für Deine Arbeit ....

    Einen Kommentar schreiben:


  • AndreK
    antwortet
    Hallo Marcov,

    ich habe den single-key-ID-Login soweit fertig. Anbei ein Textdatei mit den benötigen Funktionen.
    Die URL des neuen Endpoints lautet : 'https://api.indego-cloud.iot.bosch-si.com/api/v1/alms'

    Den Aufruf der API mit "/authenticate" entfällt. In der Datei ist auch eine Funktion für denToken-Refresh. Hier musst Du kurz vor Ablauf des Tokens einen neuen holen.
    Soll heißen einen Scheduler mit "expiration" -100 einbauen.

    In Step 17 findest Du ein Beispiel wie der Header für die neuen Aufrufe aussehen muss, "Context-ID" wird mit "Bearer" ersetzt.

    Die restlichen Funktionen sind geblieben. Bei Rückfragen melde dich.

    Ich werde den neuen Stand noch ein paar Tage testen bevor ich einen PR gegen "develop" stelle.

    Viele Grüße
    Andre
    Angehängte Dateien

    Einen Kommentar schreiben:

Lädt...
X