Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Risco Local Integration Problem #130660

Open
03397 opened this issue Nov 14, 2024 · 0 comments
Open

Risco Local Integration Problem #130660

03397 opened this issue Nov 14, 2024 · 0 comments

Comments

@03397
Copy link

03397 commented Nov 14, 2024

The problem

Every time I restart my Home Assistant my Risco Local Integration takes between 3-30min to load correctly(Panel Agility 4 with multisocket network card).
It fails and then restarts again, This is happening for some time now with no apparent error message.
However, I have managed to capture this error message. Keep in mind that I played around with Maximum Concurrent Connection with no difference

2024-11-14 23:22:32.214 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry MyHome Alarm for risco
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
return await fut
^^^^^^^^^
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/pyrisco/local/risco_socket.py", line 111, in send_command
return await asyncio.wait_for(future, 10)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
async with timeouts.timeout(timeout):
File "/usr/local/lib/python3.12/asyncio/timeouts.py", line 115, in aexit
raise TimeoutError from exc_val

TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/pyrisco/local/risco_socket.py", line 39, in connect
panel_id = int(await self.send_result_command('RID'), 16)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyrisco/local/risco_socket.py", line 101, in send_result_command
command = await self.send_command(command)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyrisco/local/risco_socket.py", line 113, in send_command
raise OperationError(f'Timeout in command: {command}')
pyrisco.common.OperationError: Timeout in command: RID
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/risco/init.py", line 71, in async_setup_entry
return await _async_setup_local_entry(hass, entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/risco/init.py", line 84, in _async_setup_local_entry
await risco.connect()
File "/usr/local/lib/python3.12/site-packages/pyrisco/local/risco_local.py", line 30, in connect
await self._rs.connect()
File "/usr/local/lib/python3.12/site-packages/pyrisco/local/risco_socket.py", line 49, in connect
await self._close()
File "/usr/local/lib/python3.12/site-packages/pyrisco/local/risco_socket.py", line 151, in _close
await asyncio.sleep(5)
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 665, in sleep
return await future

What version of Home Assistant Core has the issue?

2024.11.1

What was the last working version of Home Assistant Core?

It never worked

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Risco

Link to integration documentation on our website

No response

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant