-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Asyncio errors in bleak #65
Comments
Hey, would you mind checking if the current git master is working for you? The only change to the released 0.2 is that the event loop should be now only created when none already exists (#58). Alternatively, as a stopgap solution you could pass the wanted connection class to use bluepy or gattlib instead of bleak, see https://github.com/rytilahti/python-eq3bt/blob/master/eq3bt/eq3cli.py#L33-L46 how the eq3cli does it. |
Hey, I checked out the master branch and executing everything again. But it still does not work.
|
Thanks for this pointer. I did so in my code and it works. However, there is a minor "inconvenience". The code looks now like this:
The class BTLEConnection and BleakConnection are not exposed via the |
I am using this module within HomeAssist and can confirm that the 'async error' prevents the HomeAssist plugin from working. With gattlib I can make it work most of the time (often get timeouts too) from CLI but I can not control which backend the HomeAssist plugin uses. |
I can confirm, that BLEAK connection is still not working with python-eq3bt installed from master branch.
However, it works well with backend bluepy.
As reported elsewhere, downgrading to 0.1.12 works:
I have two valves, both paired and trusted in bluetoothctl. One has firmware 1.46, the other 1.20. Both show the exact same behavior (bleak not working, bluepy working). It would be wonderful to have these valves working again in home-assistant (runs in docker on DietPi - variant of Debian). It stubbornly upgrades to 0.2. Do you need some additional info? I am ready to do some testing. |
I feel bad for mining this repo with links to my fork, but it looks like it's hard to find: https://github.com/dbuezas/eq3btsmart This one works in the latest home assistant versions and adds a bunch of improvements and goodies |
I understand dbuezas, but I am a simple user that needs that his TRV works. The breaking change in 2022.8 or .9 made me very unhappy. Your fork works and so does finally also my setup in HA again, thanks. |
@sqall01 you are right that the API is not the nicest, the problem is the optional dependencies I didn't want to force everyone to install. Constructing a nicer API would have required much more effort than I was willing to put into this project, especially as I'm not actively using these ever since I relinquished mine excluding one test device to you :-) @dbuezas feel free to create an issue (and/or a PR to the README) to inform homeassistant users about the state of affairs and a link to your custom integration. Also, if you wish to take over the maintainership of this project, or the homeassistant integration, I'd be very thankful for that. If you do not aim to get your custom integration to be included in the homeassistant core, please let me know. Also, if either of you wants to have a single pre-1.20 fw device, let me know and I'll find a way to get it to you. |
@rytilahti thank you! Yes, I intend to get it to the core once BTProxies start working, but my fork can't do cli at all so this repo should stay here :). |
@rytilahti it is unfortunate that you do not use the thermostats anymore. I have them all around my apartment and am quite happy with them. The heat control is self-build, but works like a charm. And funny thing is: I build it out of fun. But it actually now saved more money in heating costs than the hardware costed me while I was building it 😆 @dbuezas what the actual fuck? I just checked the prices for new thermostats. Around 75€ from the vendor. I should have bought more of them when they were around 20€ as they were when I bought them. |
Added notice to HA users and link to the custom component as suggested here rytilahti#65 (comment)
Added notice to HA users and link to the custom component as suggested here #65 (comment)
Hi,
I do not know if this issue is related to some of the already open ones since I do not use eq3cli. However, the underlying issue could be the same.
Since the switch to bleak, I can no longer connect to my thermostats. I can simply reproduce the error by executing:
The output is the following:
I am running a xubuntu 20.04 machine with
Python 3.8.10 (default, Jun 22 2022, 20:18:18)
and have the following packages installed in my python environment:Everything works fine if I downgrade to version
0.1.12
which uses bluepy.Well, since I thought this was a problem in bleak, I got involved in this issue hbldh/bleak#946 However, the maintainer says this is a problem in the asyncio loop of the
python-eq3bt
library (see here: hbldh/bleak#946 (comment) ).Thanks!
The text was updated successfully, but these errors were encountered: