Internal Access

How can I get internal access restored after successfully configuring DuckDNS?
mydomain.duckdns.org:8123 successfully reaches my installation, but I know from experience this will only last until my certificate expires. This means my installation lives for 90 days and then I have to rebuild from backups, over and over again.
I’ve never been able to get internal and external access both working, so I must be missing something.
I’d like to get either 192.168.x.x:8123 or homeassistant.local:8123 working again so I can get a new certificate when the current one expires.
The only thing I can find that might point in the right direction is the following error information under settings->network in the UI:
Invalid local network URL
You have configured an HTTPS certificate in Home Assistant. This means that your internal URL needs to be set to a domain covered by the certificate.
But nothing I add to the internal URL box seems to work and I have no idea what to add to either my configuration.yaml or the duckdns configuration to add an internal URL.

Anyone know what I’m missing?

I assume you are talking about the Companion App?

You can’t use an internal URL with that and DuckDNS, unless you set up a reverse proxy. You can still access the ip address using a web browser though as you can add a security exception to your web browser.

You also do not need this “local access” for renewing your Letsencrypt certificate.

How can I renew the certificate without any access to the UI then? I haven’t found a way to do that through the CLI.

In simplistic terms, use “192.168.1.1” (your local ip address) for local access and “https://…ducksomthing.com” for the remote access.

Those are both local addresses. I’m not an expert, but forget about a fancy name for the local part; just use the IP address.

I’m dumbfounded on this one unless you’re trying to do something like, “https:/homeassistant.local:8123” which won’t work without your own router.

I hope this helps.

MrGrey.

You don’t have to. It happens automatically.

It does not renew automatically. It expires after 90 days without fail. I get error messages trying to load the UI saying the certificate is expired on all platforms and browsers. All of my problems go away if I can find a way to make it renew either automatically or from the CLI.

Then there is something amiss with the way you have set it up because it should update automatically.

Start by checking this: Certificate Update Duck DNS - #10 by RyanRayNeff