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

[Issue] Error during integration setup: Failed to connect. Check provided settings. #1073

Closed
rapco opened this issue Feb 23, 2025 · 4 comments
Labels
bug Something isn't working integration more info needed Waiting on additional information to validate error or fix

Comments

@rapco
Copy link

rapco commented Feb 23, 2025

Hi,

I am getting the error "Connection test failed with exception <class 'OSError'> Args: [Errno 113] Host is unreachable" trying to setup my Bambu Lab A1 printer.

I get "Failed to connect. Check provided settings." at Setup Local Connection section

In the Home Assistant logs shows: Connection test failed with exception <class 'OSError'> Args: [Errno 113] Host is unreachable.

More info in the log
Logger: custom_components.bambu_lab.pybambu
Source: custom_components/bambu_lab/pybambu/bambu_client.py:704
integration: bambu_lab (documentation, issues)

@AdrianGarside
Copy link
Collaborator

The error indicates your home assistant cannot reach your printer. A few more details would help. Are you trying to connect in lan mode or with bambu cloud? Is the IP address pingable from your home assistant?

@greghesp greghesp added bug Something isn't working more info needed Waiting on additional information to validate error or fix integration labels Feb 23, 2025
@rapco
Copy link
Author

rapco commented Feb 24, 2025

Yeah! I got a thing in my network that HA is one subnet and all Wifi devices in another.

I was able to get it recognized by enabling peer to peer rounting that creates a havoc in my network. Pretty much making the network flat.

If I did it correctly I set up the Firewall to allow all communication between RM4 Pro and HA but does not detect it. Is there any trick to get it to work from a different sub net?

@AdrianGarside
Copy link
Collaborator

AdrianGarside commented Feb 24, 2025

It depends on your router. The minimal approach is to add an allow route for your home assistant to connect to just the printer IP on just the single 8883 port needed for MQTT. A1/P1 camera will need port 6000. X1 RTSP camera will need one of 322, 554 or 8554 - I'm not sure which these days. Or you could allow your HA to connect to any ports on the printer IP address. Make sure to use fixed IP addresses if you're doing this so it doesn't randomly stop working later.

@AdrianGarside
Copy link
Collaborator

Closing as this is a networking issue, not a bug.

@AdrianGarside AdrianGarside reopened this Feb 25, 2025
@AdrianGarside AdrianGarside closed this as not planned Won't fix, can't repro, duplicate, stale Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working integration more info needed Waiting on additional information to validate error or fix
Projects
None yet
Development

No branches or pull requests

3 participants