home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.03k stars 29.69k forks source link

Authentication broken with Wolf Smartset service #86200

Closed mtielen closed 1 year ago

mtielen commented 1 year ago

The problem

Authentication to the service doesn't work.

Initially I tried to reload it and it gave token authentication errors. Deleted the integration and tried re-adding it. During this on input of username and password it fails to authenticate to the service

Looks like Wolf changed their authentication urls when I had a quick look at the urls used. I can login to their cloud portal and it is all working.

What version of Home Assistant Core has the issue?

2023.1.5

What was the last working version of Home Assistant Core?

2023.1.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Wolf SmartSet Service

Link to integration documentation on our website

https://www.home-assistant.io/integrations/wolflink/

Diagnostics information

Logger: homeassistant.config_entries Source: components/wolflink/init.py:129 First occurred: January 18, 2023 at 11:39:10 PM (2 occurrences) Last logged: January 18, 2023 at 11:41:05 PM

Error setting up entry Heating for wolflink Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/wolflink/init.py", line 46, in async_setup_entry parameters = await fetch_parameters_init(wolf_client, gateway_id, device_id) File "/usr/src/homeassistant/homeassistant/components/wolflink/init.py", line 136, in fetch_parameters_init return await fetch_parameters(client, gateway_id, device_id) File "/usr/src/homeassistant/homeassistant/components/wolflink/init.py", line 129, in fetch_parameters fetched_parameters = await client.fetch_parameters(gateway_id, device_id) File "/usr/local/lib/python3.10/site-packages/wolf_smartset/wolf_client.py", line 95, in fetch_parameters desc = await self.request('get', 'api/portal/GetGuiDescriptionForGateway', params=payload) File "/usr/local/lib/python3.10/site-packages/wolf_smartset/wolf_client.py", line 35, in request await self.authorize() File "/usr/local/lib/python3.10/site-packages/wolf_smartset/wolf_client.py", line 66, in authorize await self.authorize_and_session() File "/usr/local/lib/python3.10/site-packages/wolf_smartset/wolf_client.py", line 70, in authorize_and_session self.tokens = await self.token_auth.token(session) File "/usr/local/lib/python3.10/site-packages/wolf_smartset/token_auth.py", line 39, in token raise InvalidAuth wolf_smartset.token_auth.InvalidAuth

Example YAML snippet

No response

Anything in the logs that might be useful for us?

The url currently used in the smartportal with all the authentication urls:
https://www.wolf-smartset.com/idsrv/.well-known/openid-configuration

As far as I could traceback the integration is using different urls.

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @adamkrol93, mind taking a look at this issue as it has been labeled with an integration (wolflink) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `wolflink` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign wolflink` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


wolflink documentation wolflink source (message by IssueLinks)

ZottelSEF commented 1 year ago

I have exactly the same issue

Miliamber commented 1 year ago

Can confirm same issue for me

janrothkegel commented 1 year ago

The iOS app seems to still work and there was no update. So I wonder why this happens. Would be grateful for a fix :-)

gwkanters commented 1 year ago

Same issue here ..

bimbam333 commented 1 year ago

Hi, i have the same problem. I haven't received any data since 01/18/23 8:55 PM. IOS app and login via web browser work. I deleted the integration and wanted to create it again, since then I get the error: "Invalid authentication".

tatadile commented 1 year ago

Same Problem with me

janrothkegel commented 1 year ago

I traced the network traffic in my browser using the developer tools. It seems that Wolf has changed the authentication procedure :-(

BirgerR commented 1 year ago

Same issue over here. I had some issues with the Android app connection yesterday evening and had to enter my credentials. I would confirm the change in authentication procedure...

testkandidat commented 1 year ago

Same issue here.

allgaeuer13 commented 1 year ago

I have exactly the same issue

tealc commented 1 year ago

Same problem here.

PeterHoge commented 1 year ago

Same problem here. Wolf Android App works

lifecooler commented 1 year ago

Same here

Chris72er commented 1 year ago

Same problem here, reboot doesn't help!

nemesis2912 commented 1 year ago

Same problem here

macirony commented 1 year ago

I have exactly the same issue

MeisterTR commented 1 year ago

also the same here

krkuhlmann commented 1 year ago

I have the same issue but beside the authentification method having changed I think the azure server backend also is blocking my SIP IP address, since I can't use the Android SmartSet App neither the https://www.wolf-smartset.com portal from any of my devices within my local area network anymore. If I use my mobile phone on the mobile network data plan (no wifi), everything works just fine - the app and the portal using chrome browser.

nemesis2912 commented 1 year ago

I have the same issue but beside the authentification method having changed I think the azure server backend also is blocking my SIP IP address, since I can't use the Android SmartSet App neither the https://www.wolf-smartset.com portal from any of my devices within my local area network anymore. If I use my mobile phone on the mobile network data plan (no wifi), everything works just fine - the app and the portal using chrome browser.

I can log on to wolf-smartset.com via my smartphone or another device on my local home Internet access without any problems. This does not seem to be the problem.

mtielen commented 1 year ago

The URL's have changed for authentication The apps (browser/mobile) using this file: https://www.wolf-smartset.com/idsrv/.well-known/openid-configuration to look up the url.

In the python code under this connector it's hard coded on a different url which doesn't exist any more to do the token auth. which is under /portal/connect/token2. I don't know if it's as simple of changing the url used or that they changed total flow. I'm sadly not a coder in python. The issue is not in the code in home assistant core but in the used dependency

SelmaUrban commented 1 year ago

FYI: manual parameter query with the browser token works, so it's just the login / authentication that changed

lifecooler commented 1 year ago

It works, since 6:37

Miliamber commented 1 year ago

can also confirm connection is up again

tatadile commented 1 year ago

confirm also working with me

mtielen commented 1 year ago

Yes they restored the /portal/connect/token2 url. So it works again until they change it again as the right implementation isn't used.

krkuhlmann commented 1 year ago

It is also working for me again. Even using app or portal from my local area network, so it seems I am not blocked anymore.

infocfc commented 1 year ago

Confirmed. I'll be switching to ism7mqtt, which can also write to the heating.

jatty commented 1 year ago

Same here - no functionality for two days, family drama included :-) - meanwhile it's working again.

Reudo commented 1 year ago

I don't know if it has anything to do with the latest HA Update but the Integration stopped working today. "wolf_smartset.token_auth.InvalidAuth" Readding also didnt work.

Login via Browser and App works.

Btw isn't it possible to seperate the Integration from the Cloud? And/or implement the information that are available in the expert layer?

wartungsmonteur commented 1 year ago

Kann ich auch bestätigen, es geht leider nichts mehr. Wolf hat gestern Abend Arbeiten an seinen Servern durchgeführt. Ich würde gern auf ism7mqtt umsteigen, kann bitte hier jemand die einem Laien und auch allen anderen betroffenen Usern genau erklären wie man es in den Home-Assistenten integriert. Vielen Dank.

ZottelSEF commented 1 year ago

Same here. Integration stopped working yesterday 20:52 CET.

bimbam333 commented 1 year ago

Hi,

Same here. It also doesn't work anymore since last night.

I'm also interested in a direct query without a cloud. Who can point out a way of querying the ISM7 directly?

wartungsmonteur commented 1 year ago

Guten Morgen Das geht damit, https://github.com/zivillian/ism7mqtt Ich weiß aber nicht wie man es richtig macht. Grüße

infocfc commented 1 year ago

Ich würde gern auf ism7mqtt umsteigen, kann bitte hier jemand die einem Laien und auch allen anderen betroffenen Usern genau erklären wie man es in den Home-Assistenten integriert. Vielen Dank.

Das wäre hier ziemlich Off Topic, ich würde da anfangen: https://github.com/b3nn0/hassio-addon-ism7mqtt

Und auch da fragen.

Das ist das Addon für HA, das auch ism7mqtt basiert. Damit läuft am Ende alles notwendige direkt im HASSOS, die einzige Aufgabe die man noch hat, ist die Parameter der eigenen anlage zu besorgen, das ist hier dokumentiert: https://github.com/zivillian/ism7mqtt

Ich kann nur sagen, es läuft perfekt, hundertmal zuverlässiger, und natürlich mit ungleich mehr Funktionen, weil es auch in die Anlage schreiben kann. Die Möglichkeiten die "dumme" Heizung damit richtig smart zu machen sind unendlich.

wartungsmonteur commented 1 year ago

Vielen Dank. Könntest du mich bitte direkt anschreiben per Email und mir dabei helfen. Ich bezahle diese Leistung auch gern. Ich bin unter info@wartungsmonteur.de erreichbar. Sorry wenn das hier nicht her gehört aber meine ganzen Anlagen sind offline. Vielen Dank.

Alox-K commented 1 year ago

Same problem here. did the update to Home Assistant 2023.4.5 yesterday. The addon stopped in the evening. Maybe there is a connection, not sure.

ZottelSEF commented 1 year ago

Same problem here. did the update to Home Assistant 2023.4.5 yesterday. The addon stopped in the evening. Maybe there is a connection, not sure.

Probably not. I didn't yet upgrade in the last weeks and have the same issue.

Alox-K commented 1 year ago

Ich würde gern auf ism7mqtt umsteigen, kann bitte hier jemand die einem Laien und auch allen anderen betroffenen Usern genau erklären wie man es in den Home-Assistenten integriert. Vielen Dank.

Das wäre hier ziemlich Off Topic, ich würde da anfangen: https://github.com/b3nn0/hassio-addon-ism7mqtt

Und auch da fragen.

Das ist das Addon für HA, das auch ism7mqtt basiert. Damit läuft am Ende alles notwendige direkt im HASSOS, die einzige Aufgabe die man noch hat, ist die Parameter der eigenen anlage zu besorgen, das ist hier dokumentiert: https://github.com/zivillian/ism7mqtt

Ich kann nur sagen, es läuft perfekt, hundertmal zuverlässiger, und natürlich mit ungleich mehr Funktionen, weil es auch in die Anlage schreiben kann. Die Möglichkeiten die "dumme" Heizung damit richtig smart zu machen sind unendlich.

Gibts da auch eine Möglichkeit mit Linkhome?

wartungsmonteur commented 1 year ago

Hallo Das Linkhome Modul muss eh verbaut sein. So wie ich das verstehe wird per mqtt die IP Adresse des Linkhome Moduls ism7 mit der Lösung von Apollon77 angesprochen und die Werte direkt ausgelesen in den Home-Assistenten

infocfc commented 1 year ago

Richtig. Man braucht ein ISM7, oder die aktuelle Version davon die jetzt Wolf Link Home heißt. Aber das braucht man ja immer, sonst geht die Cloud Lösung ja auch nicht. Der Author von ism7mqtt hat die "verschlüsselte" lokale Kommunikation mit dem Ding entschlüsselt, und ein Modul gebaut, dass diese Daten per MQTT sowohl lesend, aber erstmals eben auch schreibend verfügbar macht. Der Schritt zu Home Assistant ist von da nicht mehr weit die letzte Lücke schließt dann wie gesagt https://github.com/b3nn0/hassio-addon-ism7mqtt, was einerseits ism7mqtt direkt im HA laufen lässt, und die nötige Konfiguration der Geräte in HA vereinfacht.

lifecooler commented 1 year ago

Habe die Integration von Wolf gerade nochmal neu geladen. Sie kann sich wieder bei Wolf anmelden und die Daten kommen wieder an. Läuft also wieder.

ZottelSEF commented 1 year ago

Habe die Integration von Wolf gerade nochmal neu geladen. Sie kann sich wieder bei Wolf anmelden und die Daten kommen wieder an. Läuft also wieder.

Kann ich bestätigen. Geht seit ca. 1h wieder.

Confirmed. Works again since around 9:00

nemesis2912 commented 1 year ago

Hier kommen seit 08.29 Uhr ebenfalls wieder Daten an.

@infocfc: Beim erzeugen der parameter.json Datei für das mqtt Addon bekomme ich immer einen SQL Fehler im Windows. Irgedeine Idee was ich falsch machen könnte? Ich habe das parameter Programm von https://github.com/zivillian/ism7mqtt geladen und in einen Ordner auf dem Desktop koniert, SmartSet ist installiert und verbindet sich auch mit der Wolf Anlage.

Alox-K commented 1 year ago

Same here, it's working again. So apparently just some downtime of the wolf server. Thank you.

infocfc commented 1 year ago

@infocfc: Beim erzeugen der parameter.json Datei für das mqtt Addon bekomme ich immer einen SQL Fehler im Windows.

Keine Ahnung, bei mir gang das Problemlos. Ich würde den Autor "drüben" fragen, der antwortet ind er Regel extrem schnell.

Hier gibt es noch ein andere Möglichkeit, die Daten direkt aus dem ISM zu holen. Ich habe das nicht probiert.

https://github.com/zivillian/ism7mqtt/issues/43#issuecomment-1464893155

Reudo commented 1 year ago

Hier kommen seit 08.29 Uhr ebenfalls wieder Daten an.

@infocfc: Beim erzeugen der parameter.json Datei für das mqtt Addon bekomme ich immer einen SQL Fehler im Windows. Irgedeine Idee was ich falsch machen könnte? Ich habe das parameter Programm von https://github.com/zivillian/ism7mqtt geladen und in einen Ordner auf dem Desktop koniert, SmartSet ist installiert und verbindet sich auch mit der Wolf Anlage.

Bei mir das gleiche... Vielleicht frage ich dann mal in dem anderen Git

nemesis2912 commented 1 year ago

@reudo Problem gelöst. Nach der Installtaion von Microsoft® SQL Server® Compact 4.0 SP1 ließ sich die Datei erzeugen. Das Addon läuft jetzt bei mir auf dem HA :)

Reudo commented 1 year ago

@Reudo Problem gelöst. Nach der Installtaion von Microsoft® SQL Server® Compact 4.0 SP1 ließ sich die Datei erzeugen. Das Addon läuft jetzt bei mir auf dem HA :)

Super danke. Bei mir jetzt auch 👍 Sieht direkt schon tausendmal besser aus als mit dieser bescheidenen Cloud Integration

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.