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.73k stars 29.98k forks source link

Wolf SmartSet Service - Error fetching wolflink data: Error communicating with API #104595

Closed Andes1984 closed 4 months ago

Andes1984 commented 10 months ago

The problem

I've been using the integration since September without any issues. Starting about 1 week ago, the sensors are getting unavailable more and more often during the day, coming back to normal without me changing or restarting anything.

I have a Wolf CHA-10, communicating through a ISM7 (Wolf Link Home) which is connected via WiFi. The network connection is stable all the time (checking with a watchdog).

During the unavailable times:

Having the debug mode of the integration activated, these log entries occur when the sensors become unavailable:

2023-11-27 15:53:56.946 ERROR (MainThread) [homeassistant.components.wolflink] Error fetching wolflink data: Error communicating with API:

And sometimes after a few minutes:

2023-11-27 15:57:17.721 DEBUG (MainThread) [homeassistant.components.wolflink] Finished fetching wolflink data in 6.713 seconds (success: False)

What version of Home Assistant Core has the issue?

core-2023.9.2

What was the last working version of Home Assistant Core?

core-2023.9.2

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Wolf SmartSet Service

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 10 months 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` Renames 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. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


wolflink documentation wolflink source (message by IssueLinks)

e0909 commented 10 months ago

Same here since yesterday.

e0909 commented 9 months ago

While the sensors was unavailable Ive tried to login to the Wolf-Service via the mobile app. The login took more then 30 seconds - this worked in the past faster. So I believe its more an issue on the Wolf-Service side. On the other side its maybe possible to increase the login-timeout in the integration?

lefgrter commented 9 months ago

Probably this is an issue from Wolf's side. The problem happened for the first time 3-4 days ago. In the begging the portal was down also as they were upgrading their server or something like that. After that interruptions started to occur more and more often. Hope they solve the issue soon.

Andes1984 commented 9 months ago

Maybe it is a performance issue at Wolf, since by now more and more heat pumps have been installed, and are operating now, maybe the amount of users simply is too high for their servers. Here's a screenshot showing the outages pretty good. In fact, they Only occur between around 10am and 3pm everyday. In the other hours there's no outage at all. Screenshot_20231129_200527

lefgrter commented 9 months ago

For sure they did something with their server a few days ago, I know it, as a week ago I was setting up my second heat pump and I was in contact with a technician of their representative in Greece. He had difficulties to work remotely from the portal and he confirmed me that something was going on with upgrading or something like that on the server side. Who knows. Hope they fix it soon or we sill need to find a way to get the data locally directly from the system. BTW interruptions here in Greece occurred mostly between 12:00-16:00. Time deference

Screenshot 2023-11-29 211401

!:)

Andes1984 commented 9 months ago

Now there seems to be a whole outage of the service at Wolf. I'm getting a 503 when trying to reach wolf-smartset.com:

Bildschirmfoto 2023-12-01 um 08 48 04

lefgrter commented 9 months ago

For me it is working now. I had a minor outage of a couple of minutes only

e0909 commented 9 months ago

Seems to be stable again.

Andes1984 commented 9 months ago

As always in the evening 😉

e0909 @.***> schrieb am Fr., 1. Dez. 2023, 20:37:

Seems to be stable again.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/104595#issuecomment-1836666526, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSNYTRUC5GBMTJEWTLUSWDYHIWWFAVCNFSM6AAAAAA74G4R52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZWGY3DMNJSGY . You are receiving this because you authored the thread.Message ID: @.***>

e0909 commented 9 months ago

Without any outage today. Ive seen the last error yesterday afternoon. May I was lucky and on the high-performance side of the cluster (-:

lefgrter commented 9 months ago

Screenshot_20231201_225836_Chrome Greek time around 13:00 was the worst period for today. Tomorrow will be better r day.... I hope:)

ottelo9 commented 9 months ago

On my side its actually working good. Wolf CGB-2-14 with ISM7 connected via Wifi.

Timieh commented 8 months ago

Here also no problems. Only some issues because of new internet provider.... Can't connect the linkhome again... what a pain on WiFi will probally get a ethernet cable trough the wall

bobynator93 commented 8 months ago

I have using the integration since the beginning of January. Since yesterday evening, I have been experiencing the problem described above. Has anyone else noticed this?

Andes1984 commented 8 months ago

@bobynator93: same here.

For me, the problems started about 9 p.m. German Time (UTC+1). One big outage for about 1 hour, and since then very much small outages, getting more and longer since about 7 a.m. this morning.

Additional information: yesterday and today, our local energy provider activated the so-called "EVU-Sperre" (energy lock for heat pumps) for the first time.

For those who don't know: in Germany, heat pumps must be registered with your local energy grid provider, and are equipped with a control receiver. Through the energy grid, the grid provider can shut down your heat pump for 2h maximum, 3 times a day maximum, in case that the grid stability is no longer provided due to weak grid parts and massive energy consumption. Since the usage of heat pumps has rapidly increased in the past 6-12 months in Germany, but the energy grids have not been optimized in the same period of time, this can happen more often now.

Wank-ster commented 8 months ago

image

Same here. Connection goes randomly On/Off. Pretty annoying if you have automations running based on these entities... Local connection would be awesome.

ottelo9 commented 8 months ago

Same here, live in Germany!

Timieh commented 8 months ago

@adamkrol93 can you support? Let us know how we can help you

Andes1984 commented 8 months ago

@Timieh I don't think that the code owner can help here. I suppose the issue is on Wolf's side again, as it was back in November/December.

ottelo9 commented 8 months ago

Maybe problems on Wolf side ?

Timieh commented 8 months ago

@Timieh I don't think that the code owner can help here. I suppose the issue is on Wolf's side again, as it was back in November/December.

But the logging on the Wolf side on the online smartset portal looks fine ? So maybe some webscraping issue or some? (I don't have too much knowledge about this)

Andes1984 commented 8 months ago

What does your logfiles say guys? When I opened the issue in November, the logs showed these entries:

2023-11-27 15:53:56.946 ERROR (MainThread) [homeassistant.components.wolflink] Error fetching wolflink data: Error communicating with API:

And sometimes after a few minutes:

2023-11-27 15:57:17.721 DEBUG (MainThread) [homeassistant.components.wolflink] Finished fetching wolflink data in 6.713 seconds (success: False)

I will have time later this evening to enable the debug mode of the integration and share my logs.

Wank-ster commented 8 months ago

@Andes1984

image

As already stated in some prevous post by someone the login in smartset portal with the app is possible but it takes a while... And this is noticeable quite clearly. Maybe the timeout within the integration is triggered too fast?

Andes1984 commented 8 months ago

@Serafigos

Just checked it on my cellphone, log message seems to be the same here. You could be right, since "device is Offline" is definetely wrong, I can access the Wolf Link Home's own interface in my LAN when HA logs state this log message.

In this case: @adamkrol93, could you maybe have a look?

ottelo9 commented 8 months ago

Today the connection is running fine.

Timieh commented 8 months ago

Sorry to misuse this part (offtopic: The installation formerly went perfectly fine on my other WiFi contract. With the new installation i'm unfornately not able to put some special characters in the SSID. So I need to to reconnect the Wolflink to my new WiFi again. The reception seems really bad when accesssing on AP mode to wolflink internaly and can't find my WiFi. WPS also no succes. Someone the golden idea? (Phone Wi-fi and signal strength tests looks like ok to perfect reception. )

muhkuh666 commented 7 months ago

I encounter problems connecting to Wolf Smart Service since today!

Andes1984 commented 7 months ago

Same here, a few days already

muhkuh666 @.***> schrieb am Mo., 26. Feb. 2024, 18:24:

I encounter problems connecting to Wolf Smart Service since today!

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/104595#issuecomment-1964701276, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSNYTXBBMN7X5HA2R3NZJ3YVTALLAVCNFSM6AAAAAA74G4R52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRUG4YDCMRXGY . You are receiving this because you were mentioned.Message ID: @.***>

ottelo9 commented 7 months ago

Same here

UPDATE Today the communication is working without problems ...

franky1808 commented 6 months ago

And again: The same fault. No connection. No data. Anyone else?

Andes1984 commented 6 months ago

Right now it's working but I also had some outages yesterday and during the night.

franky1808 @.***> schrieb am Fr., 8. März 2024, 13:00:

And again: The same fault. No connection. No data. Anyone else?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/104595#issuecomment-1985571349, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSNYTR5EFVIHQ7MFMGVIT3YXGR5LAVCNFSM6AAAAAA74G4R52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBVGU3TCMZUHE . You are receiving this because you were mentioned.Message ID: @.***>

travismarius commented 6 months ago

Same here. Outages started yesterday. Today happening every hour with 5min no connection. Will now Restart the wolflink ism7e

DieterChmod commented 6 months ago

I have the same issue. Interestingly, after logging into the smartset portal, the issue disappeared for now. By the way. First login to the smartset portal did not work. It returned an error, that too many connections were established. Maybe that helps.

ottelo9 commented 6 months ago

In my side no problems.

cyhyryiys commented 6 months ago

Can Not Connect smartset since 12.03.24. Can someone Tell me how to setze Holiday Modus in Dashboard, so it is possible to Ferien a time Range, for example 15.03-20.03.24? Thnx

msgrt commented 6 months ago

Is it possible that Wolf has limited the maximum request frequency and blocks the requesting IP if it is exceeded? If the connect from Home Assistant doesn't work, I can't access it via the browser and app either. As soon as I change the IP, access works again for 5-10 minutes, then nowhere again.

travismarius commented 6 months ago

Is it possible that Wolf has limited the maximum request frequency and blocks the requesting IP if it is exceeded? If the connect from Home Assistant doesn't work, I can't access it via the browser and app either. As soon as I change the IP, access works again for 5-10 minutes, then nowhere again.

I think you are right. Parallel Access from another IP (via LTE) ist working. Also the https://www.wolf-smartset.com/ Webpage ist not loading anymore.

DieterChmod commented 6 months ago

An alternative would be using "Wolf iSM8i Ethernet-Schnittstellenmodul Open Source" and https://github.com/marcschmiedchen/home-assistant-wolf_ism8 in Home Assistant. This does not seem to require the Wolf cloud, however it's 200 € more. Maybe this component and the one for ism8 could be merged together.

bobynator93 commented 6 months ago

Iam using this now. Works perfectly without cloud. https://github.com/b3nn0/hassio-addon-ism7mqtt

Andes1984 commented 6 months ago

Does anyone know the differences between the products Wolf Link Home, Wolf Link Pro, Ism8i and Ism7?

Tobias Friedrich @.***> schrieb am Mi., 13. März 2024, 13:59:

An alternative would be using "Wolf iSM8i Ethernet-Schnittstellenmodul Open Source" and https://github.com/marcschmiedchen/home-assistant-wolf_ism8 in Home Assistant. This does not seem to require the Wolf cloud, however it's 200 € more. Maybe this component and the one for ism8 could be merged together.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/104595#issuecomment-1994351684, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSNYTQBMOXCCIM347FJNOLYYBETXAVCNFSM6AAAAAA74G4R52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJUGM2TCNRYGQ . You are receiving this because you were mentioned.Message ID: @.***>

Wank-ster commented 6 months ago

Iam using this now. Works perfectly without cloud. https://github.com/b3nn0/hassio-addon-ism7mqtt

If you use this you can’t use the Wolf app anymore. It is either or, not both in parallel. I tried it and also ran into some issues that for example „1x warmwasser“ can’t be triggered through HA - read only. So if you want to trigger or set anything remote you won’t be able to.

Also the entity „Betriebsart“ wasn’t available which is crucial to me.

Really annoying what’s happens right now and I can also confirm that access from HA is blocked but access through lte/webportal is possible.

travismarius commented 6 months ago

Iam using this now. Works perfectly without cloud. https://github.com/b3nn0/hassio-addon-ism7mqtt

Thanks! That is much better, link stays local and exactly what i was searching. My tests to parallel use the Wolf iOS App with Wolf Cloud Credentials are working! But HomeAssistant is my Main Tool, so glad it is now working without Wolf Cloud.

bobynator93 commented 6 months ago

Iam using this now. Works perfectly without cloud. https://github.com/b3nn0/hassio-addon-ism7mqtt

If you use this you can’t use the Wolf app anymore. It is either or, not both in parallel. I tried it and also ran into some issues that for example „1x warmwasser“ can’t be triggered through HA - read only. So if you want to trigger or set anything remote you won’t be able to.

Also the entity „Betriebsart“ wasn’t available which is crucial to me.

Really annoying what’s happens right now and I can also confirm that access from HA is blocked but access through lte/webportal is possible.

On my side both is working 🤷🏼‍♂️

e0909 commented 6 months ago

Iam using this now. Works perfectly without cloud. https://github.com/b3nn0/hassio-addon-ism7mqtt

Thanks! That is much better, link stays local and exactly what i was searching. My tests to parallel use the Wolf iOS App with Wolf Cloud Credentials are working! But HomeAssistant is my Main Tool, so glad it is now working without Wolf Cloud.

Would you like to share how you installed the addon? Im not that experienced and cannot find any Installation guide. Im using the Home Assistant Operating System on PI4

muhkuh666 commented 6 months ago

WH

Iam using this now. Works perfectly without cloud. https://github.com/b3nn0/hassio-addon-ism7mqtt

If you use this you can’t use the Wolf app anymore. It is either or, not both in parallel. I tried it and also ran into some issues that for example „1x warmwasser“ can’t be triggered through HA - read only. So if you want to trigger or set anything remote you won’t be able to. Also the entity „Betriebsart“ wasn’t available which is crucial to me. Really annoying what’s happens right now and I can also confirm that access from HA is blocked but access through lte/webportal is possible.

On my side both is working 🤷🏼‍♂️

How did you do the installation? Which Firmware is your ISM7?

travismarius commented 6 months ago

Iam using this now. Works perfectly without cloud. https://github.com/b3nn0/hassio-addon-ism7mqtt

Thanks! That is much better, link stays local and exactly what i was searching. My tests to parallel use the Wolf iOS App with Wolf Cloud Credentials are working! But HomeAssistant is my Main Tool, so glad it is now working without Wolf Cloud.

Would you like to share how you installed the addon? Im not that experienced and cannot find any Installation guide. Im using the Home Assistant Operating System on PI4

Of course, it took me also time to get it working.

  1. Go to Settings -> Add Ons and install "Mosquitto broker" and Start it
  2. Go to Settings -> Integrations and install "MQTT" It will ask you if it should use the local "Mosquitto broker" Add-On - click Yes
  3. Go to Settings -> Add Ons "Add On Store" (bottom right) -> Repository (Top Right) -> Add "https://github.com/b3nn0/hassio-addon-ism7mqtt" Repository
  4. Add the "Ism7MQTT" Add-On and Configure it for your WOLFLINK (Name, IP, Password) -> Open the Add-On -> TAB "Configure"

When you start the Add-On Ism7MQTT it will configure all Entities for your WOLF.

My ISM7 is on FW 3.00

e0909 commented 6 months ago

Iam using this now. Works perfectly without cloud. https://github.com/b3nn0/hassio-addon-ism7mqtt

Thanks! That is much better, link stays local and exactly what i was searching. My tests to parallel use the Wolf iOS App with Wolf Cloud Credentials are working! But HomeAssistant is my Main Tool, so glad it is now working without Wolf Cloud.

Would you like to share how you installed the addon? Im not that experienced and cannot find any Installation guide. Im using the Home Assistant Operating System on PI4

Of course, it took me also time to get it working.

  1. Go to Settings -> Add Ons and install "Mosquitto broker" and Start it
  2. Go to Settings -> Integrations and install "MQTT" It will ask you if it should use the local "Mosquitto broker" Add-On - click Yes
  3. Go to Settings -> Add Ons "Add On Store" (bottom right) -> Repository (Top Right) -> Add "https://github.com/b3nn0/hassio-addon-ism7mqtt" Repository
  4. Add the "Ism7MQTT" Add-On and Configure it for your WOLFLINK (Name, IP, Password) -> Open the Add-On -> TAB "Configure"

When you start the Add-On Ism7MQTT it will configure all Entities for your WOLF.

My ISM7 is on FW 3.00

Thanks a lot for sharing! I really appreciate it! 🥇

wow, so much more options and information's!

Smartset App (Android) is working as well from the same Network and LTE.

image

muhkuh666 commented 6 months ago

Mine is FW 1.60 I do not get it running

Andes1984 commented 6 months ago

The ism7mqtt option sounds great, I will test that this evening!

In the meantime, I cannot connect to Wolf SmartSet Service integration anymore, from 11:00 am this morning (German Time) on I can see the following in my HomeAssistant logs:

Logger: homeassistant.config_entries Source: config_entries.py:444 First occurred: 13:32:32 (5 occurrences) Last logged: 16:13:20

Error setting up entry Wolf CHA-10 for wolflink Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, 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 135, in fetch_parameters_init return await fetch_parameters(client, gateway_id, device_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/wolflink/init.py", line 128, in fetch_parameters fetched_parameters = await client.fetch_parameters(gateway_id, device_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/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.12/site-packages/wolf_smartset/wolf_client.py", line 35, in request await self.authorize() File "/usr/local/lib/python3.12/site-packages/wolf_smartset/wolf_client.py", line 66, in authorize await self.authorize_and_session() File "/usr/local/lib/python3.12/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.12/site-packages/wolf_smartset/token_auth.py", line 39, in token raise InvalidAuth wolf_smartset.token_auth.InvalidAuth

I did not change my login credentials, furthermore I am able to login to wolf-smartset.com with my known credentials and I am able to use the Android app with these credentials. Very strange...