Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world

Local Access Issue

Hi All, I cannot keep the connection stable to my pi. I put HAOS on a pi5 and I managed to get logged in on the app eventually and everytime I leave and come back it cannot reconnect.

It says it needs to refresh external IP but I only use it locally so I cant see why it would need this and I have location access allowed so it should know I am home.

I am also attempting to access on local IP 8321 and failing.

View original on lemmy.world
11

13 replies

It says it needs to refresh external IP but I only use it locally so I cant see why it would need this and I have location access allowed so it should know I am home.

The HA app on your smartphone needs to refresh its exernal ip address (not your pi). It still thinks it's on mobile connection (or even is if your wifi coverage is odd) or at least in a different network than your pi running HA (vpn?).

For me, closing and re-opening the app works if I encounter that message.

2

Okay makes sense, it doesnt improve with closing and trying again but it does if I power down and power up the pi which is far from ideal.

I think I can reserve IPs on my router so I could ensure they are always the same.

May also be a mesh issue, I have an ISP booster and it seems to cause issues with hue bridge too.

1
lemmy.zip

There isn’t a lot of detail in the post but are you using http or https? By default it only does http and some browser/device settings force https.

2

Hi yes, it is http. I have had connection but without changing anything or leaving the house, I will open the app to that message.

1

Are you using a VPN by any chance? Proton VPN on Android needs LAN connections enabled for a stable connection

2
feddit.uk

Ok, you're going to need to give us more to work on here...

Ie, I could be assuming the Pi has ethernet cable to the router and you're trying to access it via a desktop PC which is also cabled to the router? I'm guessing at least one of those assumptions are wrong...

Are you trying to access it from a webpage, or the Home Assistant app?

First up, how comfortable are you with command line? I'd run a continuous ping to the Pi and just see what happens there first...if that's flaking out, your network or Pi has issues and you need to fix that before anything else.

If you're accessing the Pi from a phone, is it only connected to the local wifi or are you also connected to a VPN, or does the phone keep auto-connecting to a nearby Starbucks, etc...

1
Squizzyreply
lemmy.world

It is set on wifi, trying to access by android app. When that fails I try mobile browsers but it has mostly been the same issue.

I am not knowledgeable on cli but I am trying and learning so I can get there but its trial and plenty of errors without much understanding of the logic.

All local no other networks nearby.

1
feddit.uk

Ok, next check your wifi signal strength is ok.

If you have a laptop / PC open the cli and use ping with the Pi's IP address.

If not, get a ping app on your phone (I used vernet from Fdroid), check the settings have a really high number of pings (ie 60) and ping your Pi...

If the ping times out or the response times are all over the place with , then it's either your wifi or something else on the Pi / phone.

I presume your only running home assistant on that Pi, nothing else?

1

Yes jhst the pi, I have a sispicion that the ISP wifi booster is causing it too though as it sometimes messes with hue bridge but the SSID and password are the same so it sbould be interchangeable

1

I think a bit of additional diagnosis would be needed. Is it still running automations? Can you ping it? I had for example my IP banned, which resulted in similar issues (has to be manually enabled in the http integration, I believe). And it rarely happens, but Raspberry Pis can also crash and become unresponsive. You could tell by nothing happening in the home anymore. Or maybe it somehow changed IP addresses? Does it have a static address or does the router do weird things with DHCP? Does http://homeassistant.lan:8123/ work and then also stops working?

2

Yeah, I hoped I had fumbled it but I tried on a browser too and it didnt work. If I put the pi on the monitor it shows as active with the correct IP.

I didnt change anything from leaving the housr and returning so it should have attempted the same port as worked previously.

1

How is the raspberry pi connected to the router? Have you used it for other projects in the past? What are you using for storage? Is the storage name brand or the cheapest thing you could buy? Did you use the storage for something else first? If yes how long? Have you connected the raspberry pi to a monitor and checked the logs/ made sure it's running properly? Did you set a static ip address in HomeAssistant or set a static reservation in your router?

What steps have you taken to troubleshoot?

1

You reached the end