Closed SanderM2 closed 1 year ago
After fiddling with for a while it suddenly started to validate without actually changing anything. Weird. But it's not working. I get this in my logs:
2022-09-15 16:05:02.809 DEBUG (SyncWorker_3) [custom_components.wemportal] Fetching api device data
2022-09-15 16:05:02.984 DEBUG (SyncWorker_3) [custom_components.wemportal] Fetching api parameters data
2022-09-15 16:05:03.772 DEBUG (SyncWorker_3) [custom_components.wemportal] Fetching fresh api data
2022-09-15 16:05:04.293 ERROR (MainThread) [custom_components.wemportal] Unexpected error fetching WemPortal update data: 'Modules'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/wemportal/coordinator.py", line 29, in _async_update_data
return await self.hass.async_add_executor_job(self.api.fetch_data)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/wemportal/wemportalapi.py", line 52, in fetch_data
self.fetch_api_data()
File "/config/custom_components/wemportal/wemportalapi.py", line 94, in fetch_api_data
self.get_data()
File "/config/custom_components/wemportal/wemportalapi.py", line 271, in get_data
for module in values["Modules"]:
KeyError: 'Modules'
2022-09-15 16:05:04.294 DEBUG (MainThread) [custom_components.wemportal] Finished fetching WemPortal update data in 1.645 seconds (success: False)
2022-09-15 16:05:04.294 ERROR (MainThread) [homeassistant.setup] Error during setup of component wemportal
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/wemportal/coordinator.py", line 29, in _async_update_data
return await self.hass.async_add_executor_job(self.api.fetch_data)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/wemportal/wemportalapi.py", line 52, in fetch_data
self.fetch_api_data()
File "/config/custom_components/wemportal/wemportalapi.py", line 94, in fetch_api_data
self.get_data()
File "/config/custom_components/wemportal/wemportalapi.py", line 271, in get_data
for module in values["Modules"]:
KeyError: 'Modules'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
result = await task
File "/config/custom_components/wemportal/__init__.py", line 65, in async_setup
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 178, in async_config_entry_first_refresh
raise ex
homeassistant.exceptions.ConfigEntryNotReady: 'Modules'
changing mode to 'web' works. Maybe the API changed and this integration needs updating?
Will take a closer look and let you know if I need any additional logs from you
I couldn't find any obvious bugs that could cause this issue. There were no problems reported by other users so the problem is probably specific to your type of device.
To confirm that the problem still persist, please change the mode back. Sometimes Weishaupt servers are unresponsive and this could lead to this type of errors. Let me know how it goes, so I know if I need to investigate further.
I’m using modbus instead. So this module is no longer installed in my HA system.
@SanderM2 can you explain that a bit more? how exactly is your setup now? how do you get the data from weishaupt heating into your home assistant instance?
I have a working HA system and I wanted to add this WEM Portal integration. As soon as I add it to my configuration and I go to "Developer tools" -> "Check configuration", it keeps spinning and never validates or invalidates the configuration.
Anyone else have this issue?
I have it in my configuration.yaml like this: