core: Error in wolflink integration

The problem

integration cant start

What version of Home Assistant Core has the issue?

core-2024.1.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

integration: wolflink

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?

Logger: homeassistant.config_entries
Source: config_entries.py:406
First occurred: 22 января 2024 г. в 11:10:45 (4 occurrences)
Last logged: 08:27:21

Error setting up entry mwhome_wlf for wolflink
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, 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.11/site-packages/wolf_smartset/wolf_client.py", line 97, in fetch_parameters
    tab_views = desc[MENU_ITEMS][0][TAB_VIEWS]
                ~~~~^^^^^^^^^^^^
KeyError: 'MenuItems'

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 37 (7 by maintainers)

Most upvoted comments

Reload and working again.

Looks like the problem from OP is actually an unrelated older problem.

Everything from d3z1b3l’s comment onwards seems to be the problem identified by mtielen.

Which points to adamkrol93/wolf-smartset.

EDIT: Surely, there IS someone knowing Python, using Wolf appliances AND Homeassistant? Sadly, that’s not me; I already struggled to build the wolf-smartset package within a venv…

@janrothkegel Just to give you some feedback: seems to be working just fine (for now). Thanks!

https://community.smarthome-for-dummies.de/viewtopic.php?p=8751#p8751

IF ANYONE WONDERS:

Obviously you can’t have ism7mqtt and the smartset portal running in parallel. ISM7 tells you that it is connectet directly and doesn’t connect to the Smartset portal.

Meanwhile I implemented the OpenID authentication and sent a pull request for https://github.com/adamkrol93/wolf-smartset. Could @adamkrol93 please merge and update the dependency in an upcoming HA release?

@adamkrol93 I made my way through the Open ID jungle today. Shall I provide it to you so that you can integrate the new authentication method?

I did not perform any update and it is not working either. So this is not about HA but Wolf. By the way: This is what I (as an architect) would also do: Make people aware that the API is going to become deprecated soon by making it unstable.

Meanwhile, I had a look into the authentication of ioBroker and also the Wolf website/portal. There is roughly a plan how this might work. However, I need first learn how to build and run a development container… and Python ^^ And then it is uncertain whether the changes will be integrated by someone from the dev team…

Anyone else working on this right now?

Ism7mqtt bekomme ich leider nicht zum laufen

Nach dem Super Visor Update ging es wieder, nach dem Core Update leider nicht mehr

Reload and working again.

Holy shit you are right…

The token authenication stopped working. The website and app work again but this token implementation not as it was never ported over to the new method the website and mobile app use which is openid. In ioBroker adapter this implemented. Can anyone implement it so this integrations authentication is fixed again?

This is the error in the log:

Logger: homeassistant.config_entries Source: config_entries.py:406 First occurred: 11:17:05 AM (3 occurrences) Last logged: 11:43:00 AM

Error setting up entry Heating for wolflink Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 406, 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.11/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.11/site-packages/wolf_smartset/wolf_client.py”, line 35, in __request await self.__authorize() File “/usr/local/lib/python3.11/site-packages/wolf_smartset/wolf_client.py”, line 66, in __authorize await self.__authorize_and_session() File “/usr/local/lib/python3.11/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.11/site-packages/wolf_smartset/token_auth.py”, line 39, in token raise InvalidAuth wolf_smartset.token_auth.InvalidAuth

The endpoint used on HA Lib retruns this:

// 20240204120612 // https://www.wolf-smartset.com/portal/api/portal/CreateSession2

{ “Message”: “Der Portal-Server reagiert nicht. Bitte versuchen Sie es später nochmal.”, “ErrorCode”: 10, “ErrorType”: 1, “Errors”: null, “MessageParams”: null }