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

1.81 update causes instability #275

Open
kikuman opened this issue Feb 3, 2025 · 7 comments
Open

1.81 update causes instability #275

kikuman opened this issue Feb 3, 2025 · 7 comments

Comments

@kikuman
Copy link

kikuman commented Feb 3, 2025

Home Assistant says Battery becomes unavailable every minute after 1.81 update. Didn't have this issue with 1.80
Thank you!

ANT-16ZMB0TB140A
by ANT
Firmware: 16ZMUB00-220501A
Hardware: 16ZMB0TB140A

BEGIN
2af0a32d_batmon_2025-02-03T00-25-09.680Z.log
END

@fl4p
Copy link
Owner

fl4p commented Feb 3, 2025

did you try to downgrade back to 1.80 ?
It might be related to the bleak upgrade to 0.22.3

@cliftonarms
Copy link

I am also getting extensive device not found errors where v1.80 was very stable. How do I roll back to 1.8 ?

16:53:22 ERROR [sampling] BMS_8 error (#71): device 'dev_A5_C2_37_13_28_7B' not found
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 229, in _sample_inner
async with bms:
^^^
File "/app/bmslib/bt.py", line 344, in aenter
await self.connect()
File "/app/bmslib/models/jbd.py", line 51, in connect
await super().connect(**kwargs)
File "/app/bmslib/bt.py", line 236, in connect
await self._connect_client(timeout=timeout)
File "/app/bmslib/bt.py", line 185, in _connect_client
await asyncio.wait_for(self.client.connect(timeout=timeout), timeout=timeout + 1)
File "/usr/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
return await fut
^^^^^^^^^
File "/app/venv/lib/python3.12/site-packages/bleak/init.py", line 615, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.12/site-packages/bleak/backends/bluezdbus/client.py", line 184, in connect
watcher = manager.add_device_watcher(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.12/site-packages/bleak/backends/bluezdbus/manager.py", line 605, in add_device_watcher
self._check_device(device_path)
File "/app/venv/lib/python3.12/site-packages/bleak/backends/bluezdbus/manager.py", line 203, in _check_device
raise BleakError(f"device '{device_path.split('/')[-1]}' not found")
bleak.exc.BleakError: device 'dev_A5_C2_37_13_28_7B' not found

@fl4p
Copy link
Owner

fl4p commented Feb 3, 2025

hi, I just pushed an update which reverts the bleak version to the state of 1.80 .
Please upgrade and report here.

If you want to downgrade: https://github.com/fl4p/batmon-ha/blob/master/doc/Downgrade.md

@oguzcav
Copy link

oguzcav commented Feb 4, 2025

I was very happy with the new bleak, with 6 pieces of JK_PB2A16S20P s. I had similar issues with the older bleak. So, I'm skipping the update. I'm running 2025.1.4 on an i5 laptop, plain HA OS install, with an external BT dongle with 5 meters usb extension.

@kikuman
Copy link
Author

kikuman commented Feb 4, 2025

My ANT 16ZMB0TB140A are now working fine with 1.82
Thank you!

@cliftonarms
Copy link

1.82 has run all night with no issues - thankyou.

@fl4p
Copy link
Owner

fl4p commented Feb 4, 2025

I was very happy with the new bleak, with 6 pieces of JK_PB2A16S20P s. I had similar issues with the older bleak. So, I'm skipping the update. I'm running 2025.1.4 on an i5 laptop, plain HA OS install, with an external BT dongle with 5 meters usb extension.

@oguzcav did you notice any difference with version 1.81 ?

@cliftonarms @kikuman thanks for the feedback!

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

4 participants