core: Problem setting up Velbus integration
The problem
I can’t fully set up the Velbus integration in Home Assistant.
When trying to add the integration i get an “unknown error has occured” message after which it is added, but with the perpetual state of “Initializing”. Most of the velbus modules are then usable in Home Assistant, but none of the services that the integration should provide.
It takes a long time to get to this point as it is waiting for modules the whole time before giving up. At this point the log is filled with error messages whenever something is changed (eg on/off) but most of the thing work.
If i now restart Home Assistant none of the linked devices work anymore and a remove/add of the integration is needed.
What version of Home Assistant Core has the issue?
2022.11.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
Velbus
Link to integration documentation on our website
https://www.home-assistant.io/integrations/velbus
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2022-11-25 16:35:33.174 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform velbus is taking over 10 seconds.
2022-11-25 16:35:33.176 WARNING (MainThread) [homeassistant.components.button] Setup of button platform velbus is taking over 10 seconds.
2022-11-25 16:35:33.177 WARNING (MainThread) [homeassistant.components.climate] Setup of climate platform velbus is taking over 10 seconds.
2022-11-25 16:35:33.178 WARNING (MainThread) [homeassistant.components.cover] Setup of cover platform velbus is taking over 10 seconds.
2022-11-25 16:35:33.179 WARNING (MainThread) [homeassistant.components.light] Setup of light platform velbus is taking over 10 seconds.
2022-11-25 16:35:33.180 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform velbus is taking over 10 seconds.
2022-11-25 16:35:33.180 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform velbus is taking over 10 seconds.
2022-11-25 16:35:38.727 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 16:35:38.728 WARNING (MainThread) [velbus] Waiting for module 2
2022-11-25 16:35:38.729 WARNING (MainThread) [velbus] Waiting for module 3
2022-11-25 16:35:38.730 WARNING (MainThread) [velbus] Waiting for module 5
2022-11-25 16:35:38.731 WARNING (MainThread) [velbus] Waiting for module 6
2022-11-25 16:35:38.732 WARNING (MainThread) [velbus] Waiting for module 7
2022-11-25 16:35:38.732 WARNING (MainThread) [velbus] Waiting for module 8
2022-11-25 16:35:38.733 WARNING (MainThread) [velbus] Waiting for module 48
2022-11-25 16:35:38.734 WARNING (MainThread) [velbus] Waiting for module 49
2022-11-25 16:35:38.735 WARNING (MainThread) [velbus] Waiting for module 50
2022-11-25 16:35:38.735 WARNING (MainThread) [velbus] Waiting for module 51
...
2022-11-25 23:07:09.852 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:07:24.855 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:07:39.858 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:07:54.860 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:08:09.863 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:08:24.866 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:08:39.869 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:08:54.872 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:09:09.874 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:09:24.878 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:09:39.880 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:09:54.883 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:10:09.885 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:10:24.888 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:10:39.891 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:10:54.894 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:11:09.896 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:11:24.898 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:11:39.900 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:11:54.903 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:12:09.905 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:12:24.908 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:12:39.911 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:12:54.914 WARNING (MainThread) [velbus] Waiting for module 1
2022-11-25 23:13:09.551 ERROR (MainThread) [velbus] Not all modules are loaded within a timeout of 600 seconds, continuing with the loaded modules
....
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/velbusaio/protocol.py", line 169, in _process_message
await self._message_received_callback(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/controller.py", line 55, in _on_message_received
await self._handler.handle(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/handler.py", line 96, in handle
await (self._velbus.get_module(msg.address)).on_message(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/module.py", line 389, in on_message
await self._channels[channel].update({"led_state": "on"})
KeyError: 4
2022-11-26 07:00:42.333 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/velbusaio/protocol.py", line 169, in _process_message
await self._message_received_callback(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/controller.py", line 55, in _on_message_received
await self._handler.handle(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/handler.py", line 96, in handle
await (self._velbus.get_module(msg.address)).on_message(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/module.py", line 389, in on_message
await self._channels[channel].update({"led_state": "on"})
KeyError: 15
2022-11-26 07:05:44.092 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/velbusaio/protocol.py", line 169, in _process_message
await self._message_received_callback(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/controller.py", line 55, in _on_message_received
await self._handler.handle(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/handler.py", line 96, in handle
await (self._velbus.get_module(msg.address)).on_message(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/module.py", line 404, in on_message
await self._channels[channel].update({"led_state": "fast"})
KeyError: 15
2022-11-26 07:05:44.144 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/velbusaio/protocol.py", line 169, in _process_message
await self._message_received_callback(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/controller.py", line 55, in _on_message_received
await self._handler.handle(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/handler.py", line 96, in handle
await (self._velbus.get_module(msg.address)).on_message(msg)
File "/usr/local/lib/python3.10/site-packages/velbusaio/module.py", line 404, in on_message
await self._channels[channel].update({"led_state": "fast"})
KeyError: 15
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 26 (12 by maintainers)
@home-assistant close