-
Notifications
You must be signed in to change notification settings - Fork 3
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
offen i have this error "Could not connect to {}".format(mac)" #21
Comments
Apologies for the delay responding. I was away for a while, but more importantly I am holding off making changes to this addon because it looks like support for Airthings devices is likely being brought into Home Assistant Core (see this pull request). I understand that it almost made it into 2022.09 and is currently slated to be included with 2022.10. The addition to Core includes the changes I made to use the new Bleak library, and is a better solution than this addon. For example, it will include device discovery, which is a much better user experience. Fingers crossed it will make it in and this addon will be rendered obsolete. |
But in fact that error appears for me too. I hope it is not related to Bleak, and we wont have the same error with Home Assistant Core |
I have a feeling this error happens when two or more devices used. Similar behavior I have for the component you mention (home-assistant/core#77284 I installed it as a custom component to check it out)
So as a result one sensor is added and used properly. For second one I get an error above. |
The error you are getting is more about the addon being overly verbose in its output. I am no bluetooth expert, but I have found connecting to devices to be a bit finicky, particularly when they are farther away. Therefore, often connections fail which is why there are a number of retries. In other news, it looks like the new Airthings BLE will be included in 2022.11 (see https://rc.home-assistant.io/blog/2022/10/26/release-202211/#new-integrations). I have not used it yet but, as mentioned before, I believe native support will provide a better and more reliable experience than my addon. |
@uowis I just updated and it works fine for me for two devices! (with using usb extension cable to move zigbee dongle away) |
yes it make the Job but, it will be better that work with MQTT to keep value,.. |
`[2022-08-28 18:33:49] DEBUG: Retrying d8:71:4d:96:c3:50
[2022-08-28 18:33:59] INFO: Not able to connect to d8:71:4d:96:c3:50
[2022-08-28 18:33:59] ERROR: Error getting device info for d8:71:4d:96:c3:50: Could not connect to d8:71:4d:96:c3:50
Traceback (most recent call last):
File "/src/airthings.py", line 273, in get_info
raise Exception("Could not connect to {}".format(mac))
Exception: Could not connect to d8:71:4d:96:c3:50
[2022-08-28 18:33:59] DEBUG: Disconnected.
[2022-08-28 18:33:59] DEBUG: Getting sensors...
[2022-08-28 18:33:59] DEBUG: Getting sensors for d8:71:4d:96:c3:50
[2022-08-28 18:33:59] DEBUG: Connecting to d8:71:4d:96:c3:50
[2022-08-28 18:34:09] DEBUG: Retrying d8:71:4d:96:c3:50`
The text was updated successfully, but these errors were encountered: