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

Installation fails: Failed to Connect #81540

Closed
Plampi64 opened this issue Nov 4, 2022 · 10 comments
Closed

Installation fails: Failed to Connect #81540

Plampi64 opened this issue Nov 4, 2022 · 10 comments

Comments

@Plampi64
Copy link

Plampi64 commented Nov 4, 2022

The problem

Tried to install Airthings-BLE integration after deleted old Airthings from custom rep. Installation starts ok but after ten second it stops with error: Failed to connect.

Log:
2022-11-04 13:24:35.401 ERROR (MainThread) [homeassistant.components.airthings_ble.config_flow] Error connecting to and getting data from 80:6F:B0:3C:9C:68: 80:6F:B0:3C:9C:68 - 80:6F:B0:3C:9C:68 -> /org/bluez/hci0: Failed to connect:

What version of Home Assistant Core has the issue?

2022.11.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Airthings-BLE

Link to integration documentation on our website

No response

Diagnostics information

2022-11-04 13:24:35.401 ERROR (MainThread) [homeassistant.components.airthings_ble.config_flow] Error connecting to and getting data from 80:6F:B0:3C:9C:68: 80:6F:B0:3C:9C:68 - 80:6F:B0:3C:9C:68 -> /org/bluez/hci0: Failed to connect:

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Nov 4, 2022

Hey there @vincegio, mind taking a look at this issue as it has been labeled with an integration (airthings_ble) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of airthings_ble can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign airthings_ble Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


airthings_ble documentation
airthings_ble source
(message by IssueLinks)

@johntdyer
Copy link
Contributor

Same issue here

@johntdyer
Copy link
Contributor

Actually I take that back, I am pretty sure I saw that error at some point but now I've moved onto

2022-11-04 14:34:34.185 ERROR (MainThread) [homeassistant.components.airthings_ble.config_flow] Unknown error occurred from B0:91:22:75:E1:2C: 'date_time'

and also there is no auto-detect working

@johntdyer
Copy link
Contributor

Actually my issue seems to be related to the Generation 1 vs 2 model discussed #81498

@vincegio
Copy link
Contributor

Are you still having issues @Plampi64? Are you using a proxy?
It can fail to connect if the airthings device is already connected to something. I had this issue when developing and my phone connected to it for a longer period.

@Plampi64
Copy link
Author

Yes, just updated 2022.11.3 and still it does not work. There are no other devices using it due this is my vacation home and there is no people there just now. After updating got different error:

image

Now also Logfile is empty so no error anymore visible. Of course as this is "timeout" -error, might be that there are some issue with Airthings device itself that i cannot test now from home. But it is not an "out of battery" due i have separate powersource for Airthings installed.

Unfortunately i will be next time there on new year so have to wait....

@chicknlil
Copy link

I am also having a failed to connect issue with this integration.

It's worth noting that my bluetooth stick recently failed and it's replacement arrived today. It's been intialized and all other bluetooth devices are seeing it. This was the only one having issues, so I removed the integration(s), restarted, and attempted to readd them. The non BLE one added just fine with my account info, but doesn't provide near as much info as the BLE one does.

Logs:

Logger: homeassistant.components.airthings_ble.config_flow
Source: components/airthings_ble/config_flow.py:92
Integration: Airthings BLE (documentation, issues)
First occurred: 2:23:17 PM (1 occurrences)
Last logged: 2:23:17 PM
Logger: homeassistant.components.airthings_ble.config_flow
Source: components/airthings_ble/config_flow.py:147
Integration: Airthings BLE (documentation, issues)
First occurred: 2:24:59 PM (1 occurrences)
Last logged: 2:24:59 PM

Error connecting to and getting data from F4:60:77:75:EE:DE: F4:60:77:75:EE:DE - F4:60:77:75:EE:DE -> /org/bluez/hci0: Failed to connect:

Home Assistant 2022.11.3
Supervisor 2022.11.2
Operating System 9.3
Frontend 20221108.0 - latest

@Plampi64
Copy link
Author

Ok, now updated HA 2022.11.4 and original issue is back: Failed to connect.

2022-11-22 12:31:47.064 ERROR (MainThread) [homeassistant.components.airthings_ble.config_flow] Error connecting to and getting data from 80:6F:B0:3C:9C:68: 80:6F:B0:3C:9C:68 - 80:6F:B0:3C:9C:68 -> /org/bluez/hci0: Failed to connect:

@Plampi64
Copy link
Author

Plampi64 commented Jan 7, 2023

Problem solved. SO for some odd reason unknown, many BLE devices are not seen properly anymore by HA/Rapsberry. Connections are very weak and several disconnections happen alo with devices like Xiaomi thermometers that have worked properly before. So solution to this with Airthings was to bring Airthings physically near Raspberry when installing integration and now it worked. When i installed Airthings back to it's original place (that it has been last year), connection did not work anymore. So i noved Airthings 5m more near Raspberry and now it works as it should.

Just wonder, why/which state this Bluetooth issue has started as it seems to be another type of an issue with current HA/Raspberry....

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2023
@github-actions github-actions bot locked and limited conversation to collaborators May 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants