core: Integration Wolflink: Error fetching wolflink data

The problem

I added the wolflink integration yesterday. It works until this morning. All data wont refresh anymore.

Environment

  • Home Assistant Core release with the issue: Home Assistant 2020.12.1
  • Last working Home Assistant Core release (if known): none
  • Operating environment (OS/Container/Supervised/Core): Home Assistant OS 5.8 (on RPi3B)
  • Integration causing this issue: wolflink
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/wolflink/

Problem-relevant configuration.yaml

Configured via integration UI

Traceback/Error logs

Logger: homeassistant.components.wolflink
Source: helpers/update_coordinator.py:166
Integration: Wolf SmartSet Service (documentation, issues)
First occurred: 2:16:39 (1 occurrences)
Last logged: 2:16:39
Error fetching wolflink data: Could not fetch values from server due to: {'Message': 'internal msg: ReadParameterValues error', 'ErrorCode': 4, 'ErrorType': 1}

Additional information

none

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 34 (9 by maintainers)

Most upvoted comments

Hmm. But reconnection should not cause such problems unless Wolf API is so clever that it holds session_id with your IP (I guess that your IP is changing everynight). Anyway I am in code since yesterday and if I have time I will do it today maybe at the weekend. The plan is:

  1. In 0.1.9 I added ReadParameterError so I have to support it in a way that I will restart the whole session under the hood and refresh all parameters
  2. Currently when updating sensor I am asking UpdateCoordinator about value for valueId those can change as you shown few post earlier. So I will try to keep an map for connection between parameterId and ValueId and if something go wrong refresh that map and have integration working.

The problem is that I am not able to test such feature so I will then ask you @ottelo9 to use custom component and check if 2:15 you still have issues 😃

Ok @ottelo9 you motivated me 😃 Sorry for the delay but I have a lot of things to do and since it worked as a custom component I had no time to merge it. I will create PR today. And login problem was at wolf side now it works fine.

Wired. Anyway I changed a name in manifest and here is another custom_component package. Now the name contains ‘Beta’ word. Sometimes HA needs more than one restart to have custom_component installed (I had such situation with HACS yesterday). And remember that that you should remove the old integration. @kgbvax do you also have such problems? wolflink2.zip

@adamkrol93 Okay, everything works! Big thanks for your hard work!

I guess. Since I do not want to do retries by myself and I would like to use Coordinator for this so I need to throw an exception.

Thanks, it works now! I will test it for 2 days…