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

Victron shunt #255

Open
Homekit-Josh opened this issue Aug 28, 2024 · 0 comments
Open

Victron shunt #255

Homekit-Josh opened this issue Aug 28, 2024 · 0 comments

Comments

@Homekit-Josh
Copy link

File "/app/venv/lib/python3.12/site-packages/bleak/backends/scanner.py", line 205, in find_device_by_address
return await cls.find_device_by_filter(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.12/site-packages/bleak/backends/scanner.py", line 234, in find_device_by_filter
async with cls(detection_callback=apply_filter, **kwargs):
File "/app/venv/lib/python3.12/site-packages/bleak/backends/scanner.py", line 79, in aenter
await self.start()
File "/app/venv/lib/python3.12/site-packages/bleak/backends/bluezdbus/scanner.py", line 115, in start
reply = await self._bus.call(
^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.12/site-packages/dbus_next/aio/message_bus.py", line 305, in call
await future
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/app/main.py", line 36, in fetch_loop
if await fn():
^^^^^^^^^^
File "/app/main.py", line 319, in fn
cannot connect to Victron shunt.

raise exceptions[0]

File "/app/main.py", line 314, in fn
await t()
File "/app/bmslib/sampling.py", line 155, in call
s = await self._sample_inner()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/bmslib/sampling.py", line 227, in _sample_inner
async with bms:
File "/app/bmslib/bt.py", line 345, in aenter
await self.connect()
File "/app/bmslib/models/victron.py", line 84, in connect
await super().connect(timeout=timeout)
File "/app/bmslib/bt.py", line 237, in connect
await self._connect_client(timeout=timeout)
File "/app/bmslib/bt.py", line 186, in _connect_client
await asyncio.wait_for(self.client.connect(timeout=timeout), timeout=timeout + 1)
File "/usr/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
async with timeouts.timeout(timeout):
File "/usr/lib/python3.12/asyncio/timeouts.py", line 115, in aexit
raise TimeoutError from exc_val
TimeoutError

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