I have had Home Assistant working with DuckDNS and a Letsencrypt SSL certificate for months now.
Ever since I set this up, I am no longer able to access Home Assistant locally. This is fine by me, however last week I was not able to log in because of a certificate error. Fortunately the error disappeared after I cut the power to my NUC and rebooted.
This got me thinking, how do I access Home Assistant in case of problems with DuckDNS or for instance an SSL certificate that has expired? Is there a way to allow local access through the default URL and port and have this side by side with DuckDNS for remote access?
For me the best way is to use PiHole local DNS record just set your domain (like myhomeassistant.duckdns.org) to the local IP adress of HA and then if you use for example: myhomeassistant.duckdns.org:8123 (you need to incloude the port number in the adress in browser or app) within your local network you will get HA page without going through duckdns serwers. This will work great if there is a problem with duckdns and with your local network everything will work fester.
Yes HA is running. I can access it through duck DNS just fine. That’s why I don’t understand. I should be able to access it through the external IP and port but I can’t. Is there some setting/configuration in HA preventing me from doing this?