Open LifeofDan-EL opened 7 months ago
Without Verbose
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.11/asyncio/tasks.py", line 489, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/__init__.py", line 531, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 141, in connect
async with async_timeout(timeout):
File "/usr/lib/python3.11/asyncio/timeouts.py", line 115, in __aexit__
raise TimeoutError from exc_val
TimeoutError
21:40:49 INFO [sampling] Bleak version 0.20.2
21:40:49 INFO [sampling] connecting bms JbdBt(70:3E:97:EB:2E:B7,battery1)
21:41:09 ERROR [sampling] battery1 error (#2): <class 'TimeoutError'>
Traceback (most recent call last):
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 204, in connect
reply = await self._bus.call(
^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/dbus_fast/aio/message_bus.py", line 390, 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/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/jbd.py", line 53, in connect
await super().connect(**kwargs)
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.11/asyncio/tasks.py", line 489, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/__init__.py", line 531, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 141, in connect
async with async_timeout(timeout):
File "/usr/lib/python3.11/asyncio/timeouts.py", line 115, in __aexit__
raise TimeoutError from exc_val
TimeoutError
21:41:09 INFO [sampling] Bleak version 0.20.2
21:41:09 ERROR [main] 1 exceptions occurred fetching BMSs
21:41:09 ERROR [main] Error (num 1, max 200) reading BMS:
21:41:09 ERROR [main] Stack: Traceback (most recent call last):
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 204, in connect
reply = await self._bus.call(
^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/dbus_fast/aio/message_bus.py", line 390, 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
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/jbd.py", line 53, in connect
await super().connect(**kwargs)
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.11/asyncio/tasks.py", line 489, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/__init__.py", line 531, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 141, in connect
async with async_timeout(timeout):
File "/usr/lib/python3.11/asyncio/timeouts.py", line 115, in __aexit__
raise TimeoutError from exc_val
TimeoutError
21:41:10 INFO [sampling] connecting bms JbdBt(70:3E:97:EB:2E:B7,battery1)
Hello, I find this add-on very useful and I appreciate the work you are doing. I have this issue that seems to pop up quite often, where the Add-on timeouts during sampling and even stop working after it has been working for a while. I use the JBD-SP16S020-L8S