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

Error setting up entry Wolf for wolflink #73317

Closed e0909 closed 1 year ago

e0909 commented 2 years ago

The problem

Im not sure since which updat the intergration is not working since update to 2022.6.4

What version of Home Assistant Core has the issue?

core-2022.6.4

What was the last working version of Home Assistant Core?

core-2022.6.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

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: components/wolflink/__init__.py:129
First occurred: June 9, 2022, 8:22:26 PM (2 occurrences)
Last logged: 12:02:04 PM

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

Additional information

Ive already removed the Intergtaion and tried to reinstall it.

probot-home-assistant[bot] commented 2 years 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! (message by CodeOwnersMention)


wolflink documentation wolflink source (message by IssueLinks)

Chris2834 commented 2 years ago

same here : exactly the same Error line at the end of log : KeyError: 'MenuItems'

recent updates: restored to core-2022.6.3 --> works again, but less stable as with former versions restored to core-2022-6.2 --> stable, no issues detected

Any idea?

e0909 commented 2 years ago

Working again with latest version.

infocfc commented 2 years ago

Broken again with core-2022.7.1

File "/usr/src/homeassistant/homeassistant/components/wolflink/init.py", line 46, in async_setup_entry File "/usr/src/homeassistant/homeassistant/components/wolflink/init.py", line 136, in fetch_parameters_init File "/usr/src/homeassistant/homeassistant/components/wolflink/init.py", line 129, in fetch_parameters

e0909 commented 2 years ago

working for me image

System Health

version core-2022.7.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.5
os_name Linux
os_version 5.15.32-v8
arch aarch64
timezone Europe/Berlin
config_dir /config
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 8.2 -- | -- update_channel | stable supervisor_version | supervisor-2022.07.0 agent_version | 1.2.1 docker_version | 20.10.14 disk_total | 118.5 GB disk_used | 11.9 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | File editor (5.3.3), SSH & Web Terminal (11.0.1), Samba share (10.0.0), MariaDB (2.5.0), InfluxDB (4.5.0), Grafana (7.6.0), Samba Backup (5.1.1), Check Home Assistant configuration (3.11.0)
Dashboards dashboards | 2 -- | -- resources | 1 views | 9 mode | storage
Recorder oldest_recorder_run | July 2, 2022, 6:09 AM -- | -- current_recorder_run | July 8, 2022, 4:18 PM estimated_db_size | 524.59 MiB database_engine | mysql database_version | 10.6.8
infocfc commented 2 years ago

Working for me again too, after the update to 2022.7.2. Might be coincidence, but a strange one. I restarted 2022.7.1 only minutes before the update, to no avail, and after the update to 7.2 it worked again right away. The wolf portal was available and working from my net all the time, of course I checked that first.

threadstone83 commented 1 year ago

I have the same problem. I have installed the newest version 2022.9.5 Here my log file:

Logger: homeassistant.config_entries
Source: components/wolflink/__init__.py:129
First occurred: 14:38:26 (1 occurrences)
Last logged: 14:38:26

Error setting up entry CWL-300 Excellent for wolflink
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, 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 98, in fetch_parameters
    result = [WolfClient._map_view(view) for view in tab_views]
  File "/usr/local/lib/python3.10/site-packages/wolf_smartset/wolf_client.py", line 98, in <listcomp>
    result = [WolfClient._map_view(view) for view in tab_views]
  File "/usr/local/lib/python3.10/site-packages/wolf_smartset/wolf_client.py", line 169, in _map_view
    in view['SVGHeatingSchemaConfigDevices'][0]['parameters'] if 'unit' in unit])
KeyError: 'parameters'
e0909 commented 1 year ago

The Wolf Cloud is currently down. I would suggest to wait until the service is available again. As soon as your Wolf SmartSet App is able to get the Data the integration will be able as well - I hope ;-)

threadstone83 commented 1 year ago

Here it is not down. I have access over the website (www.wolf-smartset.com) and with the app (https://play.google.com/store/apps/details?id=de.wolfheiztechnik.smartsetfacelift&hl=de&gl=US). Here everything works as it should but the error persists.

e0909 commented 1 year ago

Ok. There was an issue with my ism7. Rebooting solved the App connection issues. HA Integration is not working. Like you said. Rollback to 2022.9.4: the same issue.

Logger: homeassistant.config_entries Source: components/wolflink/init.py:129 First occurred: 4:48:49 PM (1 occurrences) Last logged: 4:48:49 PM

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

threadstone83 commented 1 year ago

Nobody who can help?

e0909 commented 1 year ago

maybe @adamkrol93 can help?

e0909 commented 1 year ago

@frenck, is ist maybe something core related? Just thinking - the former issue was solved after a core update...

JimGermany commented 1 year ago

I think I have the same problem now, but only since yesterday.

`Logger: homeassistant.config_entries Source: components/wolflink/init.py:129 First occurred: 13. Oktober 2022 um 18:53:06 (1 occurrences) Last logged: 13. Oktober 2022 um 18:53:06

Error setting up entry WolfOS for wolflink Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, 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 97, in fetch_parameters tab_views = desc[MENU_ITEMS][0][TAB_VIEWS] KeyError: 'MenuItems'`

Home Assistant 2022.9.7 Supervisor 2022.10.0 Operating System 9.0

Everything worked fine until yesterday. I haven’t made any updates to Home Assistant or changed anything on my LAN. Reinstalling the integration didn’t do anything - same Error. As I can see from the Wolf SmartSet app, there is a connection to the Wolf cloud.

Update: I made a new test installation (Proxmox with HA VM)

Home Assistant 2022.10.4 Supervisor 2022.10.0 Operating System 9.2 Frontend 20221010.0 - latest

Result: Same problem

Update 2: Problem solved Login Wolf Portal (Cloud) --> Remove the heating system there --> Add the heating system there again (a password with numbers, letters and lower and upper case is now required) --> Reinstall the Wolf integration --> Working

e0909 commented 1 year ago

@JimGermany Awesome!!! Works for me as well. Thanks a lot for sharing!

threadstone83 commented 1 year ago

@JimGermany Thanks for the information. But for me it didn't work. Did you set a new password? Because my existing password already meets the requirements.

JimGermany commented 1 year ago

Yes new PW. My old PW was without upper case and it still worked. But only when I had re-registered the system I need a new PW and the new PW then need upper cases.

Try to remove the heating system from the Wolf cloud and then register it again.

e0909 commented 1 year ago

Interesting... Removing&adding heating system on the Wolf Portal (Webpage) solved the issue with homeassistant but broke my Wolf Portal (Smartphone App) Connection. Removing&adding heating system on the Wolf Portal (Smartphone App) broke the home assistant connection again.

@JimGermany, do you use the smartphone app as well?

@threadstone83 , just to be detailed how it worked in my case

  1. Remove integration in Homeassistant
  2. Remove&add heating system on Wolf Portal (Webpage)
  3. Add integration again in HomeAssistant
JimGermany commented 1 year ago

I just tested this for you: No problem with Wolf SmartSet App on my phone.

Tests:

  1. Connection with Wolf SmartSet App to Wolf Cloud = OK + HA Wolf Integration = OK
  2. Logout Wolf Cloud and connection with Wolf SmartSet App to local IP = OK
  3. Reboot HA = 1 + 2 Still OK
e0909 commented 1 year ago

Thanks for testing. It seems that there was sync issue between the cloud/app.

  1. delete intergation
  2. delete heating system on Wolf Cloud and !LoggedOff!
  3. delete heating system on Smartphone App and LoggedOff
  4. Added heating system on SmartPhone App (I guess it will work as well when adding on the Wolf Cloud)
  5. Checked if heating System available on the Wolf Cloud -> Yes it is!
  6. Installed Integration. -> Working again :-)

Thanks again!!

threadstone83 commented 1 year ago

No, here it won't work. I have changed again the passwort of wolflink / wolf cloud and did it step by step like @e0909 wrote it, but it won't work. Do you have spaces in the name of your heating system (I have)? How long is your password (20 digits)? Is your heating system connected via ism7 or similar (mine is)?

JimGermany commented 1 year ago

I don't have spaces in the name of the heating system. The name consists only of letters PW = No special characters just numbers and letters. Password length is 16 characters. Wolf ISM7i (LAN over Powerline connection). WiFi sucks. :-)

threadstone83 commented 1 year ago

Now I have changed the name of the System (ventilation system / no heating system) to a name with only letters. - won't work Then I have changed the PW to only numbers and letters - won't work I tried (again a restart,...) - won't work

So for me I finish with that. I don't have the nerve to deal with it anymore.

JimGermany commented 1 year ago

I'm sorry for you. :-( Maybe take a break for a few days ;-) and then try the 6 steps mentioned by e0909 again.

infocfc commented 1 year ago

Based on the fact that I had the same issue before, and it went away with the next HA update on it's own, and that my password hasn't changed ever (and by coincidence follows the rules), I actually think there might be more to it than just the Password.

Personally, once I find the time again, try to bring this into HA: https://github.com/zivillian/ism7mqtt Finally a local solution that doesn't depend on the unreliable cloud service, and is capable of actually writing to the heating.

JimGermany commented 1 year ago

@threadstone83 The problem already existed in 2021 with the same "solution" from ollimagic

yes of course i can describe what i did i erased the Wolf heater System in my Webinterface https://www.wolf-smartset.com/ complete and added it new so after that i installed the integration new and it was working again.

Issue: https://github.com/home-assistant/core/issues/55780

BTW: Do you use HAOS, or HA in Docker or VM? I use HA in VM with Proxmox. Maybe there is (still) a rights issue problem between your current Home Assistant Installation and the Wolf Cloud?

If I were you, I would just simply install Home Assistant again as a test in a virtual machine and test it with this new HA-Installation.

threadstone83 commented 1 year ago

So, after some days I tried again. I did like you all wrote it. I removed my system from wolf-smartset.com, logged out, deleted my integration, added my system again at wolf-smartset.com and added a new integration. And.... I get the same error. I use HA in a VM on my Synology. Eventually I try a new, clean installation of HA. But not today :-)

threadstone83 commented 1 year ago

OK, I tried it directly. A complete new, clean installation with the latest VR-file from HA. After setup I installed directly and just the Wolf Smartset integration. And yeah - I get exakt the same error. So I will stop wasting my time and try iobroker. Nevertheless thank you for your help!!