Hi guys!
I would need some help, please.
I’ve been runing hass.io on location x. I had problems with our ISP provider. they had innboxes and not modems, it was hard to work with new devices, also with rasp pi 3 connecting to innbox. But i had it working.
Now i’ve decided to move it to another location. So i’ve brought it to location y.
Now I can access to raspberry pi 3 (hass.io) from location y, but only via SSH. if i try to connect to it via browser to open UI, i can’t reach it… What can i do? Is there a thing called factory reset or something? I remember i even had problems to set it to work without SD card, to be booted only via hard drive. i dont want to go thru that again…
pleaseeee help
You haven’t said what the difference between X and Y is.
Sounds like you’re using SSL and maybe your old location router was using a static IP or the duckdns was in the router?
Try editing config.yaml to not use SSL anymore and set the base url to the IP address:8123
yes, on the location X, innbox has given the PI static IP. on location X they could set different static IP on device.
on new location i’ve opened ports to PI’s IP (but new location also has static IP - just one IP, not on device).
can you please advise how can i reach config.yaml via SSH? Also how can i set no to use SSL anymore?
Sorry, I am more like UI guy, not SSH guy
thanks for help!
Your description is extremely vague and confusing about your network layout.
If I knew, i would explain it better
I just knew on previous location, I had to call my ISP provider so they opened ports for me ( because I couldnt do anything on my own ). They have also set the PI a static IP. but then I also had a problem to reach the UI via mobile phone, because if i was on 4g , i reached it and when i switched mobile phone on wifi - the same network as PI, i couldn’t reach it…
that’s why i moved it to new location when i can control ports and everything… but now i can reach it via SSH, but can’t via UI ( probably hassio remembered old settings - but then again how come SSH works on a new IP).
If you had configured DuckDNS with certificates, your UI is only going to work from your DuckDNS hostname, and if it has not updated the DNS, it is still pointing to the old Public IP. It won’t work with an internal IP if you have SSL enabled on HASS. You need to edit the config.yaml to comment out the SSL option.
because SSH doesn’t care about what Hostname or how HASS is configured. It is SSH, just a service running on the system. Whatever IP the host has, SSH will work.
The fix, as has been explained, is to edit your config.yaml to not force the SSL on it.
when you are in your SSH session, ls
will list all files/directories in current directory. you should see either a config directory or configuration.yaml directly in the folder you landed in on SSH. I don’t remember the layout of the SSH user.
Comment out the SSL lines in configuration.yaml. You added them somehow, you need to comment them out or remove them altogether.
Did you have the SAMBA add-on configured prior to the move? You should be able to open a FILE EXPLORER and type in the address bar \\ipofhassio
and get to the share.
I will try that, thx. Althought i dont remember i had SSL mentoined in my configuration.yaml.
This was all us speculating that you had. Do you know anything that was in your configuration.yaml? Any http settings at all? ‘trusted_network’? anything? Is there some reason you’re spending days getting to the config to fix it?
The whole story:
I had it working a year ago (i think it was all in one version). On sd card and it was working quite ok. Sd card stopped working and i lost lots of work.
Then i had a pause like 6 months. Bought new sd card + external hdd and switched to hass.io. Tried with it. Managed to boot it via external hdd. Didnt manage to connect it on both 3g and same wifi as hass.io. stopped for another 4-5 months.
Now ive decided to try to make it alive again. This time at other location on which i know, ill have less problems with connection.
I will try to at least copy the configuration.yaml