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

WolfLink with CWL2 "Fehler beim Einrichten: Überprüfe die Protokolle" #120227

Closed pacco81 closed 1 week ago

pacco81 commented 2 months ago

The problem

Hi ! My WolfLink Integration with CWL2-400 does not work: "Fehler beim Einrichten: Überprüfe die Protokolle" see log attached

Setup: ISM7i, BM-2, CWS2-400

With iobroker and the Wolf App the Connection is fine. With HA it never worked, even when iobroker and App are disconected.

Thank you !

This is the Error. see Full Log attached with redacted tokens.

`2024-06-23 09:58:58.554 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Wolflink for wolflink Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/wolflink/init.py", line 52, 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 140, in fetch_parameters_init return await fetch_parameters(client, gateway_id, device_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/wolflink/init.py", line 133, in fetch_parameters fetched_parameters = await client.fetch_parameters(gateway_id, device_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 115, in fetch_parameters result = [WolfClient._map_view(view) for view in tab_views] ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 186, in _map_view in view['SVGHeatingSchemaConfigDevices'][0]['parameters'] if 'unit' in unit])


`

<img width="1017" alt="Bildschirmfoto 2024-06-23 um 09 59 53" src="https://github.com/home-assistant/core/assets/29131107/8c2e2ba7-5cc4-4263-b500-e941c681110b">

[wolf log.txt](https://github.com/user-attachments/files/15943847/wolf.log.txt)

### What version of Home Assistant Core has the issue?

2024.6.4

### 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

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?

_No response_

### Additional information

_No response_
home-assistant[bot] commented 2 months ago

Hey there @adamkrol93, @mtielen, 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)

mtielen commented 2 months ago

This CWL2-400 is currently not supported by this integration. It only supports setups currently stated on the integration page. I had a quick look and the returned structure is different this is why the integration fails as it is looking for the heating device structure.

It would need to be developed to support device. I currently don't have time to get this done also I have no device so I couldn't test it. I would need access to your device if you would like to have this developed.

You could try an custom addon alternative https://github.com/b3nn0/hassio-addon-ism7mqtt by using this you will lose remote access via the wolf Smart set app and website but it's local.

pacco81 commented 2 months ago

Hi mtielen ! Thank you for the fast response ! I am happy to provide my Wolf CloudLogin to you for develepment, if you work on implementing CWL-2 in the future.

The Addon from b3nn0 is read only. My use Case would be to change the "Lüftungstufe" and start an "Intensive Stoßlüftung" via HA.

mtielen commented 2 months ago

This integration currently only supports viewing of values. It has no implementation for switching on any function of any device currently. I'm planning to look into this in the future but it's a lot of rework. If I would implement your device initially would also only be seeing the parameters. It won't help with your use case.

The addon has for the heating and solar also change options and is more complete. I don't know if the implemented anything for this device. Maybe you can post an issue on the ISM7MQTT github that they look into it if you want to go the local way.

@home-assistant close

Hoss0305 commented 3 weeks ago

Hello, I have just installed the "Wolf SmartSet Service" integration in the HA. The integration also recognized my Wolf device. It is the CWL-300 Excellent ventilation unit. However, I am getting an error message (Error during setup: Check the logs). The following is the error message from the logs:

  Logger: homeassistant.config_entries
  Quelle: config_entries.py:604
  Erstmals aufgetreten: 16:39:48 (3 Vorkommnisse)
  Zuletzt protokolliert: 16:44:02

  Error setting up entry CWL-300 Excellent for wolflink
  Traceback (most recent call last):
    File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
      result = await component.async_setup_entry(hass, self)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 52, 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 140, in fetch_parameters_init
      return await fetch_parameters(client, gateway_id, device_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 133, in fetch_parameters
      fetched_parameters = await client.fetch_parameters(gateway_id, device_id)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 115, in fetch_parameters
      tab_views = desc[MENU_ITEMS][0][TAB_VIEWS]
                  ~~~~^^^^^^^^^^^^
  KeyError: 'MenuItems'
  Logger: homeassistant.config_entries
  Quelle: config_entries.py:604
  Erstmals aufgetreten: 16:39:48 (3 Vorkommnisse)
  Zuletzt protokolliert: 16:44:02

  Error setting up entry CWL-300 Excellent for wolflink
  Traceback (most recent call last):
    File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
      result = await component.async_setup_entry(hass, self)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 52, 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 140, in fetch_parameters_init
      return await fetch_parameters(client, gateway_id, device_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 133, in fetch_parameters
      fetched_parameters = await client.fetch_parameters(gateway_id, device_id)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 115, in fetch_parameters
      tab_views = desc[MENU_ITEMS][0][TAB_VIEWS]
                  ~~~~^^^^^^^^^^^^
  KeyError: 'MenuItems'

Protokoll HA Core:

  2024-08-29 16:39:48.383 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry CWL-300 Excellent for wolflink
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 52, 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 140, in fetch_parameters_init
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 133, in fetch_parameters
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 115, in fetch_parameters
  2024-08-29 16:40:16.246 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry CWL-300 Excellent for wolflink
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 52, 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 140, in fetch_parameters_init
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 133, in fetch_parameters
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 115, in fetch_parameters
  2024-08-29 16:44:02.568 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry CWL-300 Excellent for wolflink
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 52, 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 140, in fetch_parameters_init
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 133, in fetch_parameters
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 115, in fetch_parameters
  2024-08-29 16:49:26.040 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry CWL-300 Excellent for wolflink
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 52, 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 140, in fetch_parameters_init
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 133, in fetch_parameters
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 116, in fetch_parameters
  result = [WolfClient._map_view(view) for view in tab_views]
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 187, in _map_view

Hopefully someone can help me and tell me why the integration is not working and reading the entities.

mtielen commented 3 weeks ago

@Hoss0305 The device is not support as it only supports Heating devices currently. The integration looks for certain elements in the returned json from Wolf webserver. These elements are not existing this is why you get the error. Some one need to develop the support for your device structure in this integration.

mtielen commented 1 week ago

@home-assistant close