-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Issue when updating to HA 2022.7.0 #59
Comments
Same issue here after update to 2022.7 |
Hi, as I see the issue is that bluepy is not competible with 3.10. Is there any suitable alternative? Best, |
Same issue |
Sorry no solution yet. I see that the core also uses bluepy for some components not sure how they handle that currently |
I made some research and found that currently they are not handling the dependancy of bluepy. |
Please take a look at the breaking changes section of the changelog for HA 2022.7. bluepy is not supported anymore and will not be in the future. The log recommends bleak as a replacement library for bluetooth. Do not update to 2022.7 if you want to use this integration in its current state, it will break because of missing dependencies. There is no workaround. This integration has to be adapted to a different support bluetooth library, e.g. mentioned bleak library. For the future I can advise you to at least read the breaking changes section before updating, this problem had to be expected. |
Good evening @fsaris. Did you have a time to check new approach or do you have already any plan for migration to new libraries? BR, |
Need to check if https://github.com/fsaris/home-assistant-awox/blob/main/custom_components/awox/awoxmeshlight/__init__.py can be updated to use bleak. I definitely want to get my light's working with the newer HA version. But will not be able to look into this for the next 5 weeks. Have a road trip planned and currently busy with the preparations. |
Enjoy the trip and come back in one piece! ;-) |
Note for self Some examples of an bleak implementation as reference: |
Hello fsaris, I hope you enjoy the roadtrip(where do you go??) have you been able to make any progress with the integration?? Thx in advance. |
First steps are taking this evening. I'm able to use Hope to make some more progress during the weekend. |
Just a comment to follow this thread and to give @fsaris kudos for this. |
Same, thank you for your work @fsaris |
Slowly making progress. Was able to turn on/off a light using the bleak library and ready the current status. But not able yet to trigger startNotify and control the light simultaneously. Looks like the light doesn't give the expected result that bluez/bleak expects. |
Hey fsaris, Many thanks for your work. Waiting eagerly on the update for my 'keukentafel' (kitchentable) lights! |
Make sure adapter is stopped on disconnect
I created a beta release could you maybe test this (see https://hacs.xyz/docs/faq/beta)? I couldn't change to bleak (yet) as I'm running into an issue that the lights do not seem to follow the BLE standard (hbldh/bleak#972). That's why I switched to pygatt for now. |
Going to test this tomorrow. Thanks |
Hey Frans, I've downloaded it and tested, but unforatuntly the state of the light entities stays off and is not switchable to on. |
Tested with a single light (ESpot 170) works fine for me, including states. |
@0546timm can you check the logs and post them here? Check the readme for enabling debug logging https://github.com/fsaris/home-assistant-awox#troubleshooting Did it work for you in a previous version? |
This will be fixed in one of the next updates |
Hey Frans, Yes, been happily using your intergration for a year or so! Was a bit bazzled when it stopped working, so I'm very happy you are willing to put all this effort into this getting it to work, many kudos! Yep, lights worked fine, they did not change position or network, can control them with the Awox app. What I didnt tried is resetting the bulbs and adding them to the app "freshly". But I guess that won't make any difference as I can control them over the app on my phone.
|
@0546timm could you also enable logging for gattpy by adding |
Sure, here you go.
|
@0546timm could you test the |
Working like a charm again! Many many thanks, you made my weekend already haha.
|
Sorry for the late reply. |
Hey Frans. I was also on vacation so wasnt able to test the beta sooner. Thank you very much and keep up the good work. |
Thanks Dude! I am new to HA (yesterday old) but I managed to get also my bulbs (https://www.eglo.com/en/bulb-11659.html) to work with the beta. I have two of them and both of them work with RGB, dimmer and so on. |
today a new core version is released, as soon as i install this the lights make only problems. sorry my english is not good |
@Marsupilami78 did you use the latest beta version? |
@fsaris |
Hi @Marsupilami78, |
is strange, with me there were so problems that the whole home assistant has started to lag. Am now back to 2022.6.6 |
@Marsupilami78 you are sure this integration was the reason for lagging? Did you run it without this integration? Could you enable debug logging I'm interested to know what part is causing the lag. And Maybe also check the processes on the host system to check if there is some bluetooth related process causing this. It's important you use the latest beta to test because the first version didn't correctly disconnected from the GATTTOOL process. |
Ok, then I will try again. But it may take a few days, had a tooth surgery and severe pain |
Also running 0.1.3b3 on HA 2022.9.4 and so far so good. I'm just getting started with it though so I can't tell how stable it will be. Tried one light and it worked. Planning to expose those through Emulated Hue for Logitech Harmony Hub to use them. Already did that with AVM Fritz!DECT 200 and that worked great so I reckon it should work too with Awox. @fsaris Fantastic work you are doing here. Even more so since it looks like you had to re-implement it all over the summer. |
Actually brightness control is already working from Logitech Harmony. |
Ok, I have not tested all 7 lights I have yet but at least 3 are working and one is not, the toggle switch is disabled for some reason. Can I force a new scan/discovery somehow? Other lights do come online really fast once they have power, this one remains disabled for some reason. It's also really close from the RPi and I can controller lights which are much further away. |
now everything is running fine, thank you for your great work. Home Assistant 2022.9.5 |
Resolved with release https://github.com/fsaris/home-assistant-awox/releases/tag/0.1.3 |
Hey @fsaris For some reason it can't find the BL Awox devices anymore. Even when I'm holding it next to the RPi. Logs just tell me it can't be found. I can see alot of devices it discovers but not my lightbulbs unfortunatly. Running your latest BETA build 0.1.4b5.
|
Got one ligt to connect but same as before it's dropping connection due to a timeout, is this something you can extend?
|
Hello @fsaris.
I have discovered a new issue when updating HA to 2022.7.0.
Unfortunatelly I have no logs because I have immediatelly rolled back to 2022.6.7 and aftetr rollback everything is fine.
Best guess, its something related to new Python 3.10 implemented in 2022.7.0.
Did you updated your HA to 2022.7.0? Can you please check what is broken after update?
Anyone else experiencing the same issue?
BR,
Michal
The text was updated successfully, but these errors were encountered: